php7 httpd cphalcon php-config make configure autoconf WebSite
https://ftp.fau.de/cygwin/x86_64/release/php/httpd-mod_php7/httpd-mod_php7-7.3.7-1.tar.xz
rate 6.0 (out of max 9) Apr 10, 2023 a user visible when you logged in

comments below more
may need 3.4.5 as azure
phalcon => enabled
Author => Phalcon Team and contributors
Version => 3.4.5

https://github.com/phalcon/cphalcon/archive/refs/tags/v3.4.5.zip
Apr 12, 2023 by a user visible when you logged in
php /srv/www/html/jdm/public/index.php 
PHP Fatal error:  Uncaught BadMethodCallException: Wrong number of parameters in /srv/www/html/jdm/public/index.php:151
Stack trace:
#0 /srv/www/html/jdm/public/index.php(151): Phalcon\Mvc\Application->handle()
#1 {main}
  thrown in /srv/www/html/jdm/public/index.php on line 151
Apr 12, 2023 not rated by a user visible when you logged in
gcc -shared .libs/phalcon.o -lphp7.dll -l:json.dll.a -mtune=native -O2 -o .libs/phalcon.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/phalcon.dll.a
Apr 12, 2023 not rated by a user visible when you logged in
do it step by step instead of ./install

gcc -I. -I/home/james/phalcon_php7.3/cphalcon-4.1.2/build/php7/64bits -DPHP_ATOM_INC -I/home/james/phalcon_php7.3/cphalcon-4.1.2/build/php7/64bits/include -I/home/james/phalcon_php7.3/cphalcon-4.1.2/build/php7/64bits/main -I/home/james/phalcon_php7.3/cphalcon-4.1.2/build/php7/64bits -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DPHALCON_RELEASE -DHAVE_CONFIG_H -mtune=native -O2 -fomit-frame-pointer -c /home/james/phalcon_php7.3/cphalcon-4.1.2/build/php7/64bits/phalcon.zep.c -DDLL_EXPORT -DPIC -o .libs/phalcon.o

gcc -shared .libs/phalcon.o -lphp7 -mtune=native -O2 -o .libs/phalcon.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/phalcon.dll.a

may try -L php7.dll
Apr 12, 2023 by a user visible when you logged in
build php-json from source:
/php-7.3.7/ext/json
phpize && ./configure && make
Apr 12, 2023 not rated by a user visible when you logged in
grep -r php_json_ /json-c-build/
empty
Apr 12, 2023 not rated by a user visible when you logged in
also errors:
phalcon.zep.c undefined reference to `php_json_decode_ex' and php_json_encode :(
asked here https://github.com/orgs/phalcon/discussions/15433 
Apr 12, 2023 by a user visible when you logged in
not source in previous and the dll needs php7ts.dll => not found
source here: https://github.com/phalcon/cphalcon/archive/refs/tags/v4.1.2.zip
67M lots smaller than latest cphalcon code
Apr 12, 2023 website by a user visible when you logged in
https://github.com/phalcon/cphalcon/releases/download/v4.1.2/phalcon_x64_vc15_php7.3_4.1.2+5275.zip
more closer
Apr 12, 2023 not rated by a user visible when you logged in
https://github.com/phalcon/cphalcon/releases/tag/v3.4.5
still exist
Apr 12, 2023 not rated by a user visible when you logged in
replaced with own built mbstring.dll - the same error
Apr 12, 2023 not rated by a user visible when you logged in
looks mbstring.dll downloaded from cygwin worked somehow.  new issue:
[Wed Apr 12 07:38:18.915296 2023] [php7:error] [pid 188] [client 192.168.0.10:50709] PHP Fatal error:  Uncaught BadMethodCallException: Wrong number of parameters in /srv/www/html/jdm/public/index.php:151\nStack trace:\n#0 /srv/www/html/jdm/public/index.php(151): Phalcon\\Mvc\\Application->handle()\n#1 {main}\n  thrown in /srv/www/html/jdm/public/index.php on line 151
Apr 12, 2023 not rated by a user visible when you logged in
try php7.3.7 source
https://www.php.net/distributions/php-7.3.7.tar.gz
uncompressed 163M
Apr 12, 2023 by a user visible when you logged in
trying 
https://github.com/kkos/oniguruma/releases/download/v6.9.8/onig-6.9.8.tar.gz
Apr 12, 2023 not rated by a user visible when you logged in
PHP Warning:  PHP Startup: Unable to load dynamic library 'mbstring.dll' (tried: /usr/lib/php/20180731/mbstring.dll (No such file or directory), /usr/lib/php/20180731/mbstring.dll.dll (No such file or directory)) in Unknown on line 0
Apr 12, 2023 not rated by a user visible when you logged in
no difference  - still can not build mbstring from php-src
try 
https://ftp.fau.de/cygwin/x86_64/release/php/php-mbstring/php-mbstring-7.3.7-1.tar.xz
Apr 12, 2023 not rated by a user visible when you logged in
https://ftp.fau.de/cygwin/x86_64/release/onig/onig-6.9.4-1-src.tar.xz
build from source
Apr 12, 2023 not rated by a user visible when you logged in
https://ftp.fau.de/cygwin/x86_64/release/onig/libonig-devel/libonig-devel-6.9.4-1.tar.xz

pkg-config --list-all |grep onig
still can not ./configure
Apr 12, 2023 not rated by a user visible when you logged in
./configure: line 4483: syntax error near unexpected token `ONIG,'
./configure: line 4483: `    PKG_CHECK_MODULES(ONIG, oniguruma)'

not alone https://github.com/vcftools/vcftools/issues/53 .  php has issues 
Apr 12, 2023 website by a user visible when you logged in
no longer in https://pecl.php.net/package/mbstring

git clone https://github.com/php/php-src.git
700M !
cd php-src/ext/mbstring
phpize
./configure
make
extension=mbstring.so/dll
Apr 11, 2023 by a user visible when you logged in
$ php /srv/www/html/jdm/public/index.php 
PHP Warning:  Invalid callback , no array or string given in /srv/www/html/jdm/public/index.php on line 10
PHP Fatal error:  Uncaught RuntimeException: Call to undefined function mb_strtolower() in /srv/www/html/jdm/public/index.php:10
Stack trace:
#0 [internal function]: Phalcon\Config->setData('database', Array)
#1 [internal function]: Phalcon\Collection->init(Array)
#2 [internal function]: Phalcon\Collection->__construct(Array)
#3 /srv/www/html/jdm/public/index.php(10): Phalcon\Config\Adapter\Ini->__construct('/srv/www/html/j...')
#4 {main}
  thrown in /srv/www/html/jdm/public/index.php on line 10
$config = new Phalcon\Config\Adapter\Ini(__DIR__ . '/../app/config/config.ini');
Apr 11, 2023 by a user visible when you logged in
http://192.168.0.3/phpinfo.php shows phalcon now
however,  http://192.168.0.3/jdm/
tail -f /var/log/httpd/error_log 
[Tue Apr 11 20:45:58.371310 2023] [core:notice] [pid 32464] AH00052: child pid 32485 exit signal Segmentation fault (11)
Apr 11, 2023 not rated by a user visible when you logged in
php -m
[PHP Modules]
Core
date
dom
filter
hash
json
libxml
mysqlnd
openssl
pcre
PDO
phalcon
psr
readline
Reflection
session
SPL
standard
xml
Apr 11, 2023 not rated by a user visible when you logged in
https://pecl.php.net/get/psr-1.2.0.tgz
phpize ./configure make
Apr 11, 2023 not rated by a user visible when you logged in
managed to build phalcon.dll
however:

PHP Warning:  Cannot load module 'phalcon' because required module 'psr' is not loaded in Unknown on line 0
Apr 11, 2023 not rated by a user visible when you logged in
remove php_json_ in files phalcon.zep.c string.c and string.h
Apr 11, 2023 not rated by a user visible when you logged in
320 -rw-r--r-- 1 james None 324550 Apr 11 13:41 libjson-c.a
288 -rwxr-xr-x 1 james None 293207 Apr 11 13:40 cygjson-c-5.dll
 96 -rw-r--r-- 1 james None  94598 Apr 11 13:40 libjson-c.dll.a

unfortunately, they don't have json_decode json_encode cphalcon needs :(
Apr 11, 2023 by a user visible when you logged in
try
https://github.com/json-c/json-c
mkdir json-c-build
cd json-c-build
cmake ../json-c
Apr 11, 2023 not rated by a user visible when you logged in
dlltool -d json.dll -l libjson.a
dlltool: Syntax error in def file json.dll:0
Apr 11, 2023 not rated by a user visible when you logged in
dlltool -d json.dll -l libjson.a
Apr 11, 2023 not rated by a user visible when you logged in
/home/james/json-1.2.1/JSON_parser.h:4:10: fatal error: ext/standard/php_smart_str.h: No such file or directory
    4 | #include "ext/standard/php_smart_str.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

it is too old and the file no longer exists
Apr 11, 2023 by a user visible when you logged in
download php-json source from: https://pecl.php.net/get/json-1.2.1.tgz
phpize
./configure
make
Apr 11, 2023 not rated by a user visible when you logged in
https://ftp.fau.de/cygwin/x86_64/release/php/php-7.3.7-1.tar.xz
no json lib
https://ftp.fau.de/cygwin/x86_64/release/php/php-7.3.7-1-src.tar.xz no json either :(
https://ftp.fau.de/cygwin/x86_64/release/php/php-devel/php-devel-7.3.7-1.tar.xz has some json header files
Apr 11, 2023 by a user visible when you logged in
removed json in ext/config.m4 made no difference and still
phalcon.zep.c undefined reference to php_json_decode_ex
Apr 11, 2023 not rated by a user visible when you logged in
To fix this error, you should make sure that the library (php-json) you are trying to load was built and installed using libtool. If it was not, you may need to rebuild the library using libtool or find an alternative way to load the library at runtime.
Apr 11, 2023 not rated by a user visible when you logged in
make: *** [Makefile:198: phalcon.la] Error 1
Usage: /home/james/cphalcon/build/php7/64bits/libtool [OPTION]... [MODE-ARG]...
Try 'libtool --help' for more information.
libtool:   error: libraries can '-dlopen' only libtool libraries: -DHAVE_CONFIG_H
Apr 11, 2023 not rated by a user visible when you logged in
new warning
cc1: warning: unrecognized gcc debugging option: l
Apr 11, 2023 not rated by a user visible when you logged in
php-json only has dynamic library dll
so, modify install script and add -dlopen

libtool: compile:  gcc -I. -I/home/james/cphalcon/build/php7/64bits -DPHP_ATOM_INC -I/home/james/cphalcon/build/php7/64bits/include -I/home/james/cphalcon/build/php7/64bits/main -I/home/james/cphalcon/build/php7/64bits -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DPHALCON_RELEASE -dlopen -DHAVE_CONFIG_H -mtune=native -O2 -fomit-frame-pointer -dlopen -fvisibility=hidden -c /home/james/cphalcon/build/php7/64bits/phalcon.zep.c  -DDLL_EXPORT -DPIC -o .libs/phalcon.o

-  export CFLAGS="-mtune=native -O2 -fomit-frame-pointer"
+  export CFLAGS="-mtune=native -O2 -fomit-frame-pointer -dlopen"
-export CPPFLAGS="-DPHALCON_RELEASE"
+export CPPFLAGS="-DPHALCON_RELEASE -dlopen"
-	export CFLAGS="-O2 -fomit-frame-pointer $BFLAGS"
+	export CFLAGS="-O2 -fomit-frame-pointer $BFLAGS -dlopen"
-		export CFLAGS="-O2"
+		export CFLAGS="-O2 -dlopen"
Apr 11, 2023 not rated by a user visible when you logged in
https://ftp.fau.de/cygwin/x86_64/release/php/php-json/php-json-7.3.7-1.tar.xz
Apr 10, 2023 not rated by a user visible when you logged in
libtool: link: gcc -shared  .libs/phalcon.o   -lphp7  -mtune=native -O2   -o .libs/phalcon.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/phalcon.dll.a
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: .libs/phalcon.o:phalcon.zep.c:(.text+0x1a206): undefined reference to `php_json_decode_ex'
/usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: .libs/phalcon.o:phalcon.zep.c:(.text+0x41bb9c): undefined reference to `php_json_encode'
Apr 10, 2023 by a user visible when you logged in
cp -p /php7_dev/usr/lib/libphp7.dll.a /usr/lib/
/php7_httpd/usr/lib/httpd/modules/libphp7.so /usr/lib/
Apr 10, 2023 not rated by a user visible when you logged in
finally it completed:
*** Warning: linker path does not have real file for library -lphp7.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libphp7 but no candidates were found. (...for file magic test)

*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module phalcon.  Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.

Installing shared extensions:     /usr/lib/php/20180731/
cp: cannot stat 'modules/*.dll': No such file or directory
make: *** [Makefile:90: install-modules] Error 1

Thanks for compiling Phalcon!
Build succeed: Please restart your web server to complete the installation
Apr 10, 2023 not rated by a user visible when you logged in
looks the following hangs:
libtool: compile:  gcc -I. -I/home/james/cphalcon/build/php7/64bits -DPHP_ATOM_INC -I/home/james/cphalcon/build/php7/64bits/include -I/home/james/cphalcon/build/php7/64bits/main -I/home/james/cphalcon/build/php7/64bits -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DPHALCON_RELEASE -DHAVE_CONFIG_H -mtune=native -O2 -fomit-frame-pointer -c /home/james/cphalcon/build/php7/64bits/phalcon.zep.c  -DDLL_EXPORT -DPIC -o .libs/phalcon.o
Apr 10, 2023 not rated by a user visible when you logged in
wget https://ftp.fau.de/cygwin/x86_64/release/pcre2/libpcre2-devel/libpcre2-devel-10.40-1.tar.zst

tar --use-compress-program=unzstd -tvf libpcre2-devel-10.40-1.tar.zst 
Apr 10, 2023 not rated by a user visible when you logged in
/usr/include/php/ext/pcre/php_pcre.h:27:10: fatal error: pcre2.h: No such file or directory
Apr 10, 2023 not rated by a user visible when you logged in
configure will be generated by "bash install"
Apr 10, 2023 not rated by a user visible when you logged in
look apt-cyg install make 
not reliable
Apr 10, 2023 not rated by a user visible when you logged in
                                                                                                                                                       C:/cygwin64/make4/usr/bin/make.exe: error while loading shared libraries: cygguile-3.0-1.dll: cannot open shared object file: No such file or directory

Thanks for compiling Phalcon!
Build succeed: Please restart your web server to complete the installation
Apr 10, 2023 by a user visible when you logged in
did (need to be admin):
/cygdrive/c/Users/james/Desktop/setup-x86_64.exe -q -P autoconf
Apr 10, 2023 by a user visible when you logged in
apt-cyg install autoconf
export PHP_AUTOCONF=/usr/bin/autoconf
new error downloaded from https://github.com/phalcon):
james@Upquark ~/cphalcon/build
$ bash install
Configuring for:
PHP Api Version:         20180731
Zend Module Api No:      20180731
Zend Extension Api No:   320180731
ac-wrapper: Unable to locate any usuable version of autoconf.
 	I tried these versions: 2.71:2.7 2.69:2.5 2.13:2.1 2.68:2.5 2.67:2.5 2.66:2.5 2.65:2.5 2.64:2.5 2.63:2.5 2.62:2.5 2.61:2.5 2.60:2.5 2.59:2.5 
 	With a base name of '/usr/bin/autoconf'.
install: line 136: ./configure: No such file or directory
Apr 10, 2023 by a user visible when you logged in
gcc-tools-epoch2-autoconf-2.64-2.tar.bz2 has no configure :(
this hangs: git clone http://git.sv.gnu.org/r/autoconf.git
Apr 10, 2023 by a user visible when you logged in
need https://ftp.fau.de/cygwin/x86_64/release/make/make-4.4.1-2.tar.xz
other make command not exist
C:/cygwin64/make4/usr/bin/make.exe: error while loading shared libraries: cygguile-3.0-1.dll: cannot open shared object file: No such file or directory
asus only has:
/bin/cygguile-2.0-22.dll
/usr/bin/cygguile-2.0-22.dll
Apr 10, 2023 by a user visible when you logged in
php-config missing 
https://ftp.fau.de/cygwin/x86_64/release/php/php-devel/php-devel-7.3.7-1.tar.xz

and did:
ln -s /php7_dev/usr/include/php /usr/include/
ln -s /php7_dev/usr/lib/php/build /usr/lib/php/
Apr 10, 2023 by a user visible when you logged in
http://192.168.0.3/phpinfo.php works now
Apr 10, 2023 not rated by a user visible when you logged in
solar-panels
more comments