Ubuntu 22.04 - Can't compile php 5.6, 7.0 or 7.2 : Cannot find OpenSSL's libraries

Hi and thank you for you work :) !
I followed the recommandation you wrote on #1263 and compiled ssl 1.1. It worked as a charm for PHP 7.4 compilation. But now for :

php 5.6
php 7.0
php 7.2

I have the following issue (I tried several options with +openssl):
checking for pkg-config... /usr/bin/pkg-config

configure: error: Cannot find OpenSSL's libraries

Output
export PKG_CONFIG_PATH=$HOME/openssl-1.1.1i/bin/lib/pkgconfig && phpbrew --debug install 5.6 +default
===> phpbrew will now build 5.6.40
---> Parsing variants from command arguments '+default'
===> Loading and resolving variants...
Checking distribution checksum...
Checksum matched: ffd025d34623553ab2f7fd8fb21d0c9e6f9fa30dc565ca03a1d7b763023fba00
===> Distribution file was successfully extracted, skipping...
Source Directory: /opt/phpbrew/build/php-5.6.40
Found existing Makefile, running make clean to ensure everything will be rebuilt.
You can append --no-clean option after the install command if you don't want to rebuild.
===> Running make clean: /usr/bin/make -C '/opt/phpbrew/build/php-5.6.40' --quiet 'clean'
Running Command:/usr/bin/make -C '/opt/phpbrew/build/php-5.6.40' --quiet 'clean'
Writing variant info to /opt/phpbrew/php/php-5.6.40/phpbrew.variants
===> Checking patches...
Checking patch for replace apache php module name with custom version name
Checking patch for replace freetype-config with pkg-config on php older than 7.4
Enabled variants: [xml, opcache, bcmath, bz2, calendar, cli, ctype, dom, fileinfo, filter, ipc, json, mbregex, mbstring, mhash, pcntl, pcre, pdo, pear, phar, posix, readline, sockets, tokenizer, curl, openssl, zip]
Disabled variants: []
Found existing build.log, renaming it to /opt/phpbrew/build/php-5.6.40/build.log.1655303990
===> Configuring 5.6.40...

Use tail command to see what's going on:
   $ tail -F '/opt/phpbrew/build/php-5.6.40/build.log'

./configure '--cache-file=/opt/phpbrew/cache/config.cache' '--prefix=/opt/phpbrew/php/php-5.6.40' '--with-config-file-path=/opt/phpbrew/php/php-5.6.40/etc' '--with-config-file-scan-dir=/opt/phpbrew/php/php-5.6.40/var/db' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--with-libdir=lib/x86_64-linux-gnu' '--enable-dom' '--enable-libxml' '--with-libxml-dir=/usr' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--enable-opcache' '--enable-bcmath' '--with-bz2=/usr' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-fileinfo' '--enable-filter' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-json' '--enable-mbregex' '--enable-mbstring' '--with-mhash=/usr' '--enable-pcntl' '--enable-pdo' '--with-pear=/opt/phpbrew/php/php-5.6.40/lib/php/pear' '--enable-posix' '--with-readline=/usr' '--enable-sockets' '--with-curl=/usr' '--with-openssl=/root/openssl-1.1.1i/bin' '--enable-zip' 'PKG_CONFIG_PATH=/root/openssl-1.1.1i/bin/lib/pkgconfig' >> '/opt/phpbrew/build/php-5.6.40/build.log' 2>&1
Error: Configure failed:
The last 5 lines in the log file:
checking for DSA_get_default_method in -lssl... no

checking for X509_free in -lcrypto... yes

checking for RAND_egd... no

checking for pkg-config... /usr/bin/pkg-config

configure: error: Cannot find OpenSSL's libraries

Expected Result
Install complete

Command
export PKG_CONFIG_PATH=$HOME/openssl-1.1.1i/bin/lib/pkgconfig && phpbrew --debug install 5.6 +default
export PKG_CONFIG_PATH=$HOME/openssl-1.1.1i/bin/lib/pkgconfig && phpbrew --debug install 7.0 +default
export PKG_CONFIG_PATH=$HOME/openssl-1.1.1i/bin/lib/pkgconfig && phpbrew --debug install 7.2 +default

Build Log
See on top
Platform
OS: Ubuntu 22.04
Running PHP:
PHP 8.1.2 (cli) (built: Apr  7 2022 17:46:26) (NTS)
Installing PHP:

5.6
7.0
7.2

Thank you very much & have a great day

Closed because I verify that above solution can be worked successfully.
Please feel free to reply the comment or reopen issue if having any updated problem :).

I also simplify the above steps:
cd $HOME
wget https://www.openssl.org/source/openssl-1.1.1i.tar.gz

tar xzf $HOME/openssl-1.1.1i.tar.gz
cd openssl-1.1.1i

./config --prefix=$PWD/bin -fPIC shared
make -j 4
sudo make install

cd $HOME
export PKG_CONFIG_PATH=$HOME/openssl-1.1.1i/bin/lib/pkgconfig
phpbrew install 7.0 +default -- --with-openssl --with-openssl-dir=$HOME/openssl-1.1.1i/bin

Hi @peter279k I'm following your guide here to install it on Ubuntu 22.04 clean install and it still fails to find openssl

phpbrew install 7.0 +default -- --with-openssl --with-openssl-dir=$HOME/openssl-1.1.1i/bin

root@dserver1 ~ # phpbrew install 7.0 +default -- --with-openssl --with-openssl-dir=$HOME/openssl-1.1.1i/bin
*WARNING* You're running phpbrew as root/sudo. Unless you're going to install system-wide phpbrew, this might cause problems.
===> phpbrew will now build 7.0.33
===> Loading and resolving variants...
Downloading https://www.php.net/distributions/php-7.0.33.tar.bz2 via php stream
===> Extracting /root/.phpbrew/distfiles/php-7.0.33.tar.bz2 to /root/.phpbrew/build/tmp.1681133256/php-7.0.33
===> Moving /root/.phpbrew/build/tmp.1681133256/php-7.0.33 to /root/.phpbrew/build/php-7.0.33
Running make clean to ensure everything will be rebuilt.
Makefile not found in path /root/.phpbrew/build/php-7.0.33
===> Checking patches...
Checking patch for replace apache php module name with custom version name
Checking patch for replace freetype-config with pkg-config on php older than 7.4
Checking patch for fix readline detection on PHP 5.3 to PHP 7.1
---> Applying patch...
patching file ext/readline/config.m4

Done.
1 changes patched.
Need to run buildconf
Forcing buildconf
Removing configure caches
buildconf: checking installation...
buildconf: autoconf version 2.71 (ok)
rebuilding configure
configure.in:15: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead
aclocal.m4:2664: PHP_CONFIG_NICE is expanded from...
configure.in:19: warning: The macro `AC_CONFIG_HEADER' is obsolete.
configure.in:19: You should run autoupdate.
./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from...
configure.in:213: warning: The macro `AC_AIX' is obsolete.
configure.in:213: You should run autoupdate.
./lib/autoconf/specific.m4:540: AC_AIX is expanded from...
configure.in:225: warning: The macro `AC_TRY_LINK' is obsolete.
configure.in:225: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
aclocal.m4:301: PHP_RUNPATH_SWITCH is expanded from...
configure.in:248: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.in:248: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
Zend/Zend.m4:423: warning: The macro `AC_TRY_COMPILE' is obsolete.
Zend/Zend.m4:423: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
sapi/cli/config.m4:13: warning: The macro `AC_TRY_LINK' is obsolete.
sapi/cli/config.m4:13: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
sapi/fpm/config.m4:561: warning: The macro `AC_TRY_COMPILE' is obsolete.
sapi/fpm/config.m4:561: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
sapi/fpm/config.m4:22: AC_FPM_PRCTL is expanded from...
sapi/fpm/config.m4:562: warning: The macro `AC_TRY_LINK' is obsolete.
sapi/fpm/config.m4:562: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
sapi/fpm/config.m4:34: AC_FPM_CLOCK is expanded from...
sapi/fpm/config.m4:562: warning: The macro `AC_TRY_RUN' is obsolete.
sapi/fpm/config.m4:562: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
sapi/fpm/config.m4:34: AC_FPM_CLOCK is expanded from...
sapi/fpm/config.m4:563: warning: The macro `AC_TRY_COMPILE' is obsolete.
sapi/fpm/config.m4:563: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
sapi/fpm/config.m4:104: AC_FPM_TRACE is expanded from...
sapi/fpm/config.m4:563: warning: The macro `AC_TRY_RUN' is obsolete.
sapi/fpm/config.m4:563: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
sapi/fpm/config.m4:104: AC_FPM_TRACE is expanded from...
sapi/fpm/config.m4:564: warning: The macro `AC_TRY_LINK' is obsolete.
sapi/fpm/config.m4:564: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
sapi/fpm/config.m4:296: AC_FPM_BUILTIN_ATOMIC is expanded from...
sapi/fpm/config.m4:565: warning: The macro `AC_TRY_COMPILE' is obsolete.
sapi/fpm/config.m4:565: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
sapi/fpm/config.m4:314: AC_FPM_LQ is expanded from...
sapi/fpm/config.m4:566: warning: The macro `AC_TRY_COMPILE' is obsolete.
sapi/fpm/config.m4:566: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
sapi/fpm/config.m4:348: AC_FPM_SYSCONF is expanded from...
sapi/fpm/config.m4:567: warning: The macro `AC_TRY_COMPILE' is obsolete.
sapi/fpm/config.m4:567: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
sapi/fpm/config.m4:361: AC_FPM_TIMES is expanded from...
sapi/fpm/config.m4:568: warning: The macro `AC_TRY_COMPILE' is obsolete.
sapi/fpm/config.m4:568: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
sapi/fpm/config.m4:374: AC_FPM_KQUEUE is expanded from...
sapi/fpm/config.m4:569: warning: The macro `AC_TRY_COMPILE' is obsolete.
sapi/fpm/config.m4:569: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
sapi/fpm/config.m4:398: AC_FPM_PORT is expanded from...
sapi/fpm/config.m4:570: warning: The macro `AC_TRY_COMPILE' is obsolete.
sapi/fpm/config.m4:570: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
sapi/fpm/config.m4:421: AC_FPM_DEVPOLL is expanded from...
sapi/fpm/config.m4:571: warning: The macro `AC_TRY_COMPILE' is obsolete.
sapi/fpm/config.m4:571: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
sapi/fpm/config.m4:446: AC_FPM_EPOLL is expanded from...
sapi/fpm/config.m4:572: warning: The macro `AC_TRY_COMPILE' is obsolete.
sapi/fpm/config.m4:572: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
sapi/fpm/config.m4:482: AC_FPM_POLL is expanded from...
sapi/fpm/config.m4:573: warning: The macro `AC_TRY_COMPILE' is obsolete.
sapi/fpm/config.m4:573: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
sapi/fpm/config.m4:508: AC_FPM_SELECT is expanded from...
sapi/fpm/config.m4:574: warning: The macro `AC_TRY_LINK' is obsolete.
sapi/fpm/config.m4:574: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
sapi/fpm/config.m4:539: AC_FPM_APPARMOR is expanded from...
configure.in:424: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:424: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:1670: PHP_EBCDIC is expanded from...
configure.in:427: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:427: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:2035: PHP_C_BIGENDIAN is expanded from...
configure.in:430: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:430: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:2886: PHP_TEST_WRITE_STDOUT is expanded from...
configure.in:449: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:449: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
configure.in:450: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:450: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
configure.in:451: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:451: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
configure.in:452: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:452: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
configure.in:453: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:453: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
configure.in:454: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:454: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
configure.in:456: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:456: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
configure.in:464: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:464: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
configure.in:464: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:464: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
configure.in:470: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.in:470: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.in:548: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.in:548: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
aclocal.m4:1761: PHP_FOPENCOOKIE is expanded from...
configure.in:548: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:548: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1761: PHP_FOPENCOOKIE is expanded from...
configure.in:550: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.in:550: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
aclocal.m4:1709: PHP_BROKEN_GLIBC_FOPEN_APPEND is expanded from...
configure.in:550: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:550: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
aclocal.m4:1709: PHP_BROKEN_GLIBC_FOPEN_APPEND is expanded from...
configure.in:558: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.in:558: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
aclocal.m4:1324: PHP_MISSING_TIME_R_DECL is expanded from...
configure.in:559: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.in:559: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
aclocal.m4:1472: PHP_MISSING_FCLOSE_DECL is expanded from...
configure.in:561: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.in:561: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:1415: PHP_TM_GMTOFF is expanded from...
configure.in:562: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.in:562: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
aclocal.m4:1429: PHP_STRUCT_FLOCK is expanded from...
configure.in:563: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.in:563: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
aclocal.m4:1450: PHP_SOCKLEN_T is expanded from...
configure.in:572: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:572: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
aclocal.m4:1069: _PHP_CHECK_SIZEOF is expanded from...
aclocal.m4:1115: PHP_CHECK_SIZEOF is expanded from...
configure.in:573: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:573: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
aclocal.m4:1069: _PHP_CHECK_SIZEOF is expanded from...
aclocal.m4:1115: PHP_CHECK_SIZEOF is expanded from...
configure.in:574: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:574: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
aclocal.m4:1069: _PHP_CHECK_SIZEOF is expanded from...
aclocal.m4:1115: PHP_CHECK_SIZEOF is expanded from...
configure.in:580: warning: The macro `AC_TRY_LINK' is obsolete.
configure.in:580: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
aclocal.m4:3045: PHP_CHECK_BUILTIN_EXPECT is expanded from...
configure.in:582: warning: The macro `AC_TRY_LINK' is obsolete.
configure.in:582: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
aclocal.m4:3063: PHP_CHECK_BUILTIN_CLZ is expanded from...
configure.in:584: warning: The macro `AC_TRY_LINK' is obsolete.
configure.in:584: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
aclocal.m4:3081: PHP_CHECK_BUILTIN_CTZL is expanded from...
configure.in:586: warning: The macro `AC_TRY_LINK' is obsolete.
configure.in:586: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
aclocal.m4:3099: PHP_CHECK_BUILTIN_CTZLL is expanded from...
configure.in:589: warning: The macro `AC_STRUCT_ST_BLKSIZE' is obsolete.
configure.in:589: You should run autoupdate.
./lib/autoconf/types.m4:1000: AC_STRUCT_ST_BLKSIZE is expanded from...
configure.in:598: warning: The macro `AC_STRUCT_ST_RDEV' is obsolete.
configure.in:598: You should run autoupdate.
./lib/autoconf/types.m4:1038: AC_STRUCT_ST_RDEV is expanded from...
configure.in:605: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.in:605: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:1621: PHP_SOCKADDR_CHECKS is expanded from...
configure.in:608: warning: The macro `AC_TRY_LINK' is obsolete.
configure.in:608: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
configure.in:704: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:704: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
configure.in:708: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:708: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
configure.in:708: warning: The macro `AC_TRY_LINK' is obsolete.
configure.in:708: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
configure.in:754: warning: The macro `AC_TRY_LINK' is obsolete.
configure.in:754: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
configure.in:765: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.in:765: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:1647: PHP_DECLARED_TIMEZONE is expanded from...
configure.in:766: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:766: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:1169: PHP_TIME_R_TYPE is expanded from...
configure.in:766: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:766: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2962: _AC_RUN_IFELSE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2981: AC_RUN_IFELSE is expanded from...
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:1169: PHP_TIME_R_TYPE is expanded from...
configure.in:767: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:767: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:1357: PHP_READDIR_R_TYPE is expanded from...
configure.in:767: warning: The macro `AC_TRY_CPP' is obsolete.
configure.in:767: You should run autoupdate.
./lib/autoconf/general.m4:2762: AC_TRY_CPP is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2962: _AC_RUN_IFELSE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2981: AC_RUN_IFELSE is expanded from...
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:1357: PHP_READDIR_R_TYPE is expanded from...
configure.in:772: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.in:772: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:2832: PHP_CRYPT_R_STYLE is expanded from...
ext/date/lib/timelib.m4:67: warning: The macro `AC_TRY_COMPILE' is obsolete.
ext/date/lib/timelib.m4:67: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/date/lib/timelib.m4:14: TL_CHECK_INT_TYPE is expanded from...
ext/date/lib/timelib.m4:68: warning: The macro `AC_TRY_COMPILE' is obsolete.
ext/date/lib/timelib.m4:68: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/date/lib/timelib.m4:14: TL_CHECK_INT_TYPE is expanded from...
ext/libxml/config0.m4:18: warning: The macro `AC_TRY_RUN' is obsolete.
ext/libxml/config0.m4:18: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1959: PHP_TEST_BUILD is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:2536: PHP_SETUP_LIBXML is expanded from...
ext/curl/config.m4:81: warning: The macro `AC_TRY_RUN' is obsolete.
ext/curl/config.m4:81: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
ext/curl/config.m4:108: warning: The macro `AC_TRY_RUN' is obsolete.
ext/curl/config.m4:108: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
ext/dba/config.m4:369: warning: The macro `AC_TRY_LINK' is obsolete.
ext/dba/config.m4:369: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
ext/dba/config.m4:11: PHP_TEMP_LDFLAGS is expanded from...
ext/dba/config.m4:233: PHP_DBA_DB_CHECK is expanded from...
ext/dba/config.m4:402: warning: The macro `AC_TRY_LINK' is obsolete.
ext/dba/config.m4:402: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
ext/dba/config.m4:11: PHP_TEMP_LDFLAGS is expanded from...
ext/dba/config.m4:233: PHP_DBA_DB_CHECK is expanded from...
ext/dba/config.m4:435: warning: The macro `AC_TRY_LINK' is obsolete.
ext/dba/config.m4:435: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
ext/dba/config.m4:11: PHP_TEMP_LDFLAGS is expanded from...
ext/dba/config.m4:233: PHP_DBA_DB_CHECK is expanded from...
ext/dba/config.m4:486: warning: The macro `AC_TRY_LINK' is obsolete.
ext/dba/config.m4:486: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
ext/dba/config.m4:11: PHP_TEMP_LDFLAGS is expanded from...
ext/dom/config.m4:19: warning: The macro `AC_TRY_RUN' is obsolete.
ext/dom/config.m4:19: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1959: PHP_TEST_BUILD is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:2536: PHP_SETUP_LIBXML is expanded from...
ext/fileinfo/config.m4:17: warning: The macro `AC_TRY_RUN' is obsolete.
ext/fileinfo/config.m4:17: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
ext/gd/config.m4:364: warning: The macro `AC_TRY_RUN' is obsolete.
ext/gd/config.m4:364: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1959: PHP_TEST_BUILD is expanded from...
ext/hash/config.m4:21: warning: The macro `AC_TRY_RUN' is obsolete.
ext/hash/config.m4:21: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:2035: PHP_C_BIGENDIAN is expanded from...
ext/iconv/config.m4:41: warning: The macro `AC_TRY_LINK' is obsolete.
ext/iconv/config.m4:41: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
ext/iconv/config.m4:53: warning: The macro `AC_TRY_RUN' is obsolete.
ext/iconv/config.m4:53: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
ext/iconv/config.m4:73: warning: The macro `AC_TRY_LINK' is obsolete.
ext/iconv/config.m4:73: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
ext/iconv/config.m4:86: warning: The macro `AC_TRY_LINK' is obsolete.
ext/iconv/config.m4:86: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
ext/iconv/config.m4:131: warning: The macro `AC_TRY_RUN' is obsolete.
ext/iconv/config.m4:131: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
ext/iconv/config.m4:163: warning: The macro `AC_TRY_RUN' is obsolete.
ext/iconv/config.m4:163: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
ext/iconv/config.m4:194: warning: The macro `AC_TRY_COMPILE' is obsolete.
ext/iconv/config.m4:194: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
ext/imap/config.m4:131: warning: The macro `AC_TRY_COMPILE' is obsolete.
ext/imap/config.m4:131: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
ext/imap/config.m4:151: warning: The macro `AC_TRY_COMPILE' is obsolete.
ext/imap/config.m4:151: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
ext/imap/config.m4:227: warning: The macro `AC_TRY_RUN' is obsolete.
ext/imap/config.m4:227: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1959: PHP_TEST_BUILD is expanded from...
ext/imap/config.m4:24: PHP_IMAP_TEST_BUILD is expanded from...
ext/imap/config.m4:235: warning: The macro `AC_TRY_RUN' is obsolete.
ext/imap/config.m4:235: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1959: PHP_TEST_BUILD is expanded from...
ext/imap/config.m4:24: PHP_IMAP_TEST_BUILD is expanded from...
ext/imap/config.m4:242: warning: The macro `AC_TRY_RUN' is obsolete.
ext/imap/config.m4:242: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1959: PHP_TEST_BUILD is expanded from...
ext/imap/config.m4:277: warning: The macro `AC_TRY_RUN' is obsolete.
ext/imap/config.m4:277: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1959: PHP_TEST_BUILD is expanded from...
ext/imap/config.m4:24: PHP_IMAP_TEST_BUILD is expanded from...
ext/json/config.m4:10: warning: The macro `AC_HEADER_STDC' is obsolete.
ext/json/config.m4:10: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
ext/ldap/config.m4:198: warning: The macro `AC_TRY_COMPILE' is obsolete.
ext/ldap/config.m4:198: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/mbstring/config.m4:367: warning: The macro `AC_TRY_RUN' is obsolete.
ext/mbstring/config.m4:367: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/mbstring/config.m4:67: PHP_MBSTRING_SETUP_MBREGEX is expanded from...
ext/mbstring/config.m4:367: warning: The macro `AC_HEADER_TIME' is obsolete.
ext/mbstring/config.m4:367: You should run autoupdate.
./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from...
ext/mbstring/config.m4:67: PHP_MBSTRING_SETUP_MBREGEX is expanded from...
ext/mbstring/config.m4:367: warning: The macro `AC_TRY_LINK' is obsolete.
ext/mbstring/config.m4:367: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
ext/mbstring/config.m4:67: PHP_MBSTRING_SETUP_MBREGEX is expanded from...
ext/odbc/config.m4:204: warning: The macro `AC_TRY_RUN' is obsolete.
ext/odbc/config.m4:204: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1959: PHP_TEST_BUILD is expanded from...
ext/opcache/config.m4:32: warning: The macro `AC_TRY_RUN' is obsolete.
ext/opcache/config.m4:32: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
ext/opcache/config.m4:102: warning: The macro `AC_TRY_RUN' is obsolete.
ext/opcache/config.m4:102: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
ext/opcache/config.m4:154: warning: The macro `AC_TRY_RUN' is obsolete.
ext/opcache/config.m4:154: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
ext/opcache/config.m4:209: warning: The macro `AC_TRY_RUN' is obsolete.
ext/opcache/config.m4:209: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
ext/opcache/config.m4:278: warning: The macro `AC_TRY_RUN' is obsolete.
ext/opcache/config.m4:278: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
ext/opcache/config.m4:348: warning: The macro `AC_TRY_RUN' is obsolete.
ext/opcache/config.m4:348: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
ext/opcache/config.m4:364: warning: The macro `AC_TRY_RUN' is obsolete.
ext/opcache/config.m4:364: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
ext/pdo_odbc/config.m4:103: warning: back quotes and double quotes must not be escaped in: Unknown ODBC flavour $pdo_odbc_flavour
ext/pdo_odbc/config.m4:103:                       include and lib dirs are looked for under 'dir'.
ext/pdo_odbc/config.m4:103:
ext/pdo_odbc/config.m4:103:                       'flavour' can be one of:  ibm-db2, iODBC, unixODBC, generic
ext/pdo_odbc/config.m4:103:                       If ',dir' part is omitted, default for the flavour
ext/pdo_odbc/config.m4:103:                       you have selected will be used. e.g.:
ext/pdo_odbc/config.m4:103:
ext/pdo_odbc/config.m4:103:                         --with-pdo-odbc=unixODBC
ext/pdo_odbc/config.m4:103:
ext/pdo_odbc/config.m4:103:                       will check for unixODBC under /usr/local. You may attempt
ext/pdo_odbc/config.m4:103:                       to use an otherwise unsupported driver using the \"generic\"
ext/pdo_odbc/config.m4:103:                       flavour.  The syntax for generic ODBC support is:
ext/pdo_odbc/config.m4:103:
ext/pdo_odbc/config.m4:103:                         --with-pdo-odbc=generic,dir,libname,ldflags,cflags
ext/pdo_odbc/config.m4:103:
ext/pdo_odbc/config.m4:103:                       When built as 'shared' the extension filename is always pdo_odbc.so
ext/posix/config.m4:17: warning: The macro `AC_TRY_RUN' is obsolete.
ext/posix/config.m4:17: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
ext/posix/config.m4:35: warning: The macro `AC_TRY_COMPILE' is obsolete.
ext/posix/config.m4:35: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/recode/config.m4:34: warning: The macro `AC_TRY_LINK' is obsolete.
ext/recode/config.m4:34: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/libs.m4:100: AC_CHECK_LIB is expanded from...
aclocal.m4:1847: PHP_CHECK_LIBRARY is expanded from...
ext/session/config.m4:12: warning: The macro `AC_TRY_RUN' is obsolete.
ext/session/config.m4:12: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1220: PHP_DOES_PWRITE_WORK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:1280: PHP_PWRITE_TEST is expanded from...
ext/session/config.m4:13: warning: The macro `AC_TRY_RUN' is obsolete.
ext/session/config.m4:13: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1249: PHP_DOES_PREAD_WORK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:1302: PHP_PREAD_TEST is expanded from...
ext/simplexml/config.m4:18: warning: The macro `AC_TRY_RUN' is obsolete.
ext/simplexml/config.m4:18: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1959: PHP_TEST_BUILD is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:2536: PHP_SETUP_LIBXML is expanded from...
ext/soap/config.m4:18: warning: The macro `AC_TRY_RUN' is obsolete.
ext/soap/config.m4:18: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1959: PHP_TEST_BUILD is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:2536: PHP_SETUP_LIBXML is expanded from...
ext/sockets/config.m4:10: warning: The macro `AC_TRY_COMPILE' is obsolete.
ext/sockets/config.m4:10: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/sockets/config.m4:23: warning: The macro `AC_TRY_COMPILE' is obsolete.
ext/sockets/config.m4:23: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
ext/sockets/config.m4:32: warning: The macro `AC_TRY_COMPILE' is obsolete.
ext/sockets/config.m4:32: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/sockets/config.m4:47: warning: The macro `AC_TRY_COMPILE' is obsolete.
ext/sockets/config.m4:47: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/standard/config.m4:6: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:6: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/standard/config.m4:62: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:62: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/standard/config.m4:87: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:87: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/standard/config.m4:112: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:112: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/standard/config.m4:147: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:147: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/standard/config.m4:179: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:179: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/standard/config.m4:210: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:210: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/standard/config.m4:250: warning: The macro `AC_TRY_COMPILE' is obsolete.
ext/standard/config.m4:250: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/standard/config.m4:266: warning: The macro `AC_TRY_COMPILE' is obsolete.
ext/standard/config.m4:266: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/standard/config.m4:404: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:404: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
ext/standard/config.m4:404: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:404: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
ext/standard/config.m4:404: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:404: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
ext/standard/config.m4:405: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:405: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
ext/standard/config.m4:405: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:405: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
ext/standard/config.m4:405: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:405: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
ext/standard/config.m4:406: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:406: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
ext/standard/config.m4:406: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:406: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
ext/standard/config.m4:406: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:406: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
ext/standard/config.m4:407: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:407: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
ext/standard/config.m4:407: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:407: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
ext/standard/config.m4:407: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:407: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
ext/standard/config.m4:408: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:408: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
ext/standard/config.m4:408: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:408: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
ext/standard/config.m4:408: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:408: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
ext/standard/config.m4:414: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:414: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
ext/standard/config.m4:414: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:414: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
ext/standard/config.m4:414: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:414: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1902: PHP_CHECK_FUNC_LIB is expanded from...
aclocal.m4:1936: PHP_CHECK_FUNC is expanded from...
ext/standard/config.m4:419: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:419: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/standard/config.m4:450: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:450: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/standard/config.m4:484: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:484: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/standard/config.m4:519: warning: The macro `AC_TRY_RUN' is obsolete.
ext/standard/config.m4:519: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/standard/config.m4:556: warning: The macro `AC_TRY_COMPILE' is obsolete.
ext/standard/config.m4:556: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/standard/config.m4:585: warning: The macro `AC_TRY_COMPILE' is obsolete.
ext/standard/config.m4:585: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
ext/sysvsem/config.m4:12: warning: The macro `AC_TRY_COMPILE' is obsolete.
ext/sysvsem/config.m4:12: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
ext/wddx/config.m4:26: warning: The macro `AC_TRY_RUN' is obsolete.
ext/wddx/config.m4:26: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1959: PHP_TEST_BUILD is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:2536: PHP_SETUP_LIBXML is expanded from...
ext/xml/config.m4:27: warning: The macro `AC_TRY_RUN' is obsolete.
ext/xml/config.m4:27: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1959: PHP_TEST_BUILD is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:2536: PHP_SETUP_LIBXML is expanded from...
ext/xmlreader/config.m4:19: warning: The macro `AC_TRY_RUN' is obsolete.
ext/xmlreader/config.m4:19: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1959: PHP_TEST_BUILD is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:2536: PHP_SETUP_LIBXML is expanded from...
ext/xmlrpc/config.m4:39: warning: The macro `AC_TRY_RUN' is obsolete.
ext/xmlrpc/config.m4:39: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1959: PHP_TEST_BUILD is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:2536: PHP_SETUP_LIBXML is expanded from...
ext/xmlrpc/config.m4:82: warning: The macro `AC_HEADER_STDC' is obsolete.
ext/xmlrpc/config.m4:82: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
ext/xmlrpc/libxmlrpc/acinclude.m4:13: XMLRPC_HEADER_CHECKS is expanded from...
ext/xmlrpc/libxmlrpc/xmlrpc.m4:1: XMLRPC_CHECKS is expanded from...
ext/xmlrpc/config.m4:82: warning: The macro `AC_HEADER_TIME' is obsolete.
ext/xmlrpc/config.m4:82: You should run autoupdate.
./lib/autoconf/headers.m4:743: AC_HEADER_TIME is expanded from...
ext/xmlrpc/libxmlrpc/acinclude.m4:18: XMLRPC_TYPE_CHECKS is expanded from...
ext/xmlrpc/libxmlrpc/xmlrpc.m4:1: XMLRPC_CHECKS is expanded from...
ext/xmlwriter/config.m4:19: warning: The macro `AC_TRY_RUN' is obsolete.
ext/xmlwriter/config.m4:19: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
aclocal.m4:1959: PHP_TEST_BUILD is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:2536: PHP_SETUP_LIBXML is expanded from...
configure.in:1142: warning: The macro `ac_cv_prog_gcc' is obsolete.
configure.in:1142: You should run autoupdate.
./lib/autoconf/c.m4:440: ac_cv_prog_gcc is expanded from...
Zend/Zend.m4:29: LIBZEND_BASIC_CHECKS is expanded from...
configure.in:1142: warning: The macro `AC_TYPE_SIGNAL' is obsolete.
configure.in:1142: You should run autoupdate.
./lib/autoconf/types.m4:776: AC_TYPE_SIGNAL is expanded from...
Zend/Zend.m4:29: LIBZEND_BASIC_CHECKS is expanded from...
configure.in:1142: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.in:1142: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
Zend/Zend.m4:7: LIBZEND_CHECK_INT_TYPE is expanded from...
Zend/Zend.m4:29: LIBZEND_BASIC_CHECKS is expanded from...
configure.in:1142: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:1142: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
Zend/acinclude.m4:68: AC_ZEND_BROKEN_SPRINTF is expanded from...
Zend/Zend.m4:29: LIBZEND_BASIC_CHECKS is expanded from...
configure.in:1142: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.in:1142: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
Zend/acinclude.m4:47: ZEND_FP_EXCEPT is expanded from...
Zend/Zend.m4:29: LIBZEND_BASIC_CHECKS is expanded from...
configure.in:1142: warning: The macro `AC_TRY_LINK' is obsolete.
configure.in:1142: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
Zend/acinclude.m4:120: ZEND_CHECK_FLOAT_PRECISION is expanded from...
Zend/Zend.m4:29: LIBZEND_BASIC_CHECKS is expanded from...
configure.in:1142: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:1142: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
Zend/Zend.m4:29: LIBZEND_BASIC_CHECKS is expanded from...
configure.in:1144: warning: The macro `AC_TRY_RUN' is obsolete.
configure.in:1144: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
Zend/Zend.m4:154: LIBZEND_OTHER_CHECKS is expanded from...
configure.in:1428: warning: The macro `AC_LANG_C' is obsolete.
configure.in:1428: You should run autoupdate.
./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
aclocal.m4:5848: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:5847: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:3187: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:3169: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:3156: AC_PROG_LIBTOOL is expanded from...
configure.in:1428: warning: The macro `AC_LANG_C' is obsolete.
configure.in:1428: You should run autoupdate.
./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:3678: _LT_AC_LOCK is expanded from...
aclocal.m4:4305: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
aclocal.m4:5848: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:5847: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:3187: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:3169: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:3156: AC_PROG_LIBTOOL is expanded from...
configure.in:1428: warning: The macro `AC_TRY_LINK' is obsolete.
configure.in:1428: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
aclocal.m4:3678: _LT_AC_LOCK is expanded from...
aclocal.m4:4305: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
aclocal.m4:5848: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:5847: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:3187: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:3169: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:3156: AC_PROG_LIBTOOL is expanded from...
configure.in:1428: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
aclocal.m4:4305: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
aclocal.m4:5848: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:5847: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:3187: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:3169: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:3156: AC_PROG_LIBTOOL is expanded from...
configure.in:1428: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
aclocal.m4:4305: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
aclocal.m4:5848: _LT_AC_LANG_C_CONFIG is expanded from...
aclocal.m4:5847: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
aclocal.m4:3187: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:3169: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:3156: AC_PROG_LIBTOOL is expanded from...
configure.in:1428: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist
aclocal.m4:5038: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:3187: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:3169: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:3156: AC_PROG_LIBTOOL is expanded from...
configure.in:1428: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: output file \`$ofile' does not exist
aclocal.m4:5038: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:3187: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:3169: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:3156: AC_PROG_LIBTOOL is expanded from...
configure.in:1428: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script
aclocal.m4:5038: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:3187: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:3169: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:3156: AC_PROG_LIBTOOL is expanded from...
configure.in:1428: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: output file \`$ofile' does not look like a libtool script
aclocal.m4:5038: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:3187: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:3169: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:3156: AC_PROG_LIBTOOL is expanded from...
configure.in:1428: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'
aclocal.m4:5038: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:3187: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:3169: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:3156: AC_PROG_LIBTOOL is expanded from...
configure.in:1428: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'
aclocal.m4:5038: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:3187: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:3169: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:3156: AC_PROG_LIBTOOL is expanded from...
configure.in:1428: warning: back quotes and double quotes must not be escaped in: tag name \"$tagname\" already exists
aclocal.m4:5038: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:3187: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:3169: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:3156: AC_PROG_LIBTOOL is expanded from...
configure.in:1428: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete.
configure.in:1428: You should run autoupdate.
./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from...
aclocal.m4:5930: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:5929: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:5038: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:3187: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:3169: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:3156: AC_PROG_LIBTOOL is expanded from...
configure.in:1428: warning: back quotes and double quotes must not be escaped in: $as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
aclocal.m4:4305: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
aclocal.m4:5930: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:5929: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:5038: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:3187: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:3169: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:3156: AC_PROG_LIBTOOL is expanded from...
configure.in:1428: warning: back quotes and double quotes must not be escaped in: $as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
aclocal.m4:4305: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
aclocal.m4:5930: _LT_AC_LANG_CXX_CONFIG is expanded from...
aclocal.m4:5929: AC_LIBTOOL_LANG_CXX_CONFIG is expanded from...
aclocal.m4:5038: _LT_AC_TAGCONFIG is expanded from...
aclocal.m4:3187: AC_LIBTOOL_SETUP is expanded from...
aclocal.m4:3169: _AC_PROG_LIBTOOL is expanded from...
aclocal.m4:3156: AC_PROG_LIBTOOL is expanded from...
configure.in:1548: warning: AC_OUTPUT should be used without arguments.
configure.in:1548: You should run autoupdate.
rebuilding main/php_config.h.in
autoheader: warning: autoconf input should be named 'configure.ac', not 'configure.in'
===> Configuring 7.0.33...

Use tail command to see what's going on:
   $ tail -F '/root/.phpbrew/build/php-7.0.33/build.log'

Error: Configure failed:
The last 5 lines in the log file:
checking for Kerberos support... no

checking whether to use system default cipher list instead of hardcoded value... no

checking for RAND_egd... no

checking for pkg-config... /usr/bin/pkg-config

configure: error: Cannot find OpenSSL's libraries

Please checkout the build log file for more details:
         tail /root/.phpbrew/build/php-7.0.33/build.log
</details>

Which commands you execute? I only see you run the phpbrew install 7.0 +default -- --with-openssl --with-openssl-dir=$HOME/openssl-1.1.1i/bin command, and it's not good enough to reproduce the issue step by step.

I executed
cd $HOME
wget https://www.openssl.org/source/openssl-1.1.1i.tar.gz

tar xzf $HOME/openssl-1.1.1i.tar.gz
cd openssl-1.1.1i

./config --prefix=$PWD/bin -fPIC shared
make -j 4
sudo make install

cd $HOME
export PKG_CONFIG_PATH=$HOME/openssl-1.1.1i/bin/lib/pkgconfig
phpbrew install 7.0 +default -- --with-openssl --with-openssl-dir=$HOME/openssl-1.1.1i/bin

Then phpbrew install 7.0 +default -- --with-openssl --with-openssl-dir=$HOME/openssl-1.1.1i/bin
Finally I retried the same after reading above about CURL and tried the other way as well
cd $HOME
wget https://www.openssl.org/source/openssl-1.1.1i.tar.gz

tar xzf $HOME/openssl-1.1.1i.tar.gz
cd openssl-1.1.1i

./config -fPIC shared
make -j 4
sudo make install

# Make the symbolic link about libssl1.1 library
sudo ln -s /usr/local/lib/libssl.so.1.1 /usr/lib/x86_64-linux-gnu/libssl.so.1.1
sudo ln -s /usr/local/lib/libcrypto.so.1.1 /lib/x86_64-linux-gnu/libcrypto.so.1.1
sudo ln -s /usr/local/ssl/include/openssl /usr/local/include/openssl

# By default, the system-wide libcurl package in Ubuntu 22.04 will be with OpenSSL3.x.
# It will be failed to compile PHP 5.6, PHP 7.0, PHP7.1, PHP7.2 and PHP7.3 from source with OpenSSL 1.1.x and cURL extensions.
# To resolve that, it should build cURL from source with OpenSSL 1.1.x version.
# And remove the libssl3 (`libssl-dev`) package.
sudo apt-get purge libssl-dev

cd $HOME
wget http://curl.haxx.se/download/curl-7.58.0.tar.bz2
tar -xvjf curl-7.58.0.tar.bz2
cd curl-7.58.0
./configure --with-ssl=/usr/local/ssl
make -j 8
sudo make install
sudo ldconfig
/usr/local/bin/curl --version

# Here are the cURL version information outputs to verify above command
curl 7.58.0 (x86_64-pc-linux-gnu) libcurl/7.58.0 OpenSSL/1.1.1i zlib/1.2.11
Release-Date: 2018-01-24
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy

and finally
phpbrew install 7.2 +default -- --with-curl=/usr/local --with-openssl --with-openssl-dir=/usr/local

I did a new attempt with installing at /opt
OpenSSL
Download the OpenSSL-1.1.1i source code from the official website:

wget https://www.openssl.org/source/openssl-1.1.1i.tar.gz

Extract the source code:

tar -xf openssl-1.1.1i.tar.gz

Change directory to the extracted source code:

cd openssl-1.1.1i

Configure the build to install in /opt/openssl/1.1.1i:

./config --prefix=/opt/openssl/1.1.1i -fPIC shared

Compile and install the software:

make
sudo make install

root@dserver1 ~/.phpbrew/build/php-7.2.34 # /opt/openssl/1.1.1i/bin/openssl version
OpenSSL 1.1.1i  8 Dec 2020

CURL
Download the source code for Curl 7.58 and extract it:

wget https://curl.se/download/curl-7.58.0.tar.gz
tar -zxvf curl-7.58.0.tar.gz

Configure Curl with OpenSSL by specifying the location of the OpenSSL installation directory using the --with-ssl flag:

cd curl-7.58.0
./configure --prefix=/opt/curl/7.58 --with-ssl=/opt/openssl/1.1.1i

Build and install Curl:

make
sudo make install

root@dserver1 ~/.phpbrew/build/php-7.2.34 # /opt/curl/7.58/bin/curl -V
curl 7.58.0 (x86_64-pc-linux-gnu) libcurl/7.58.0 OpenSSL/1.1.1i zlib/1.2.11 brotli/1.0.9
Release-Date: 2018-01-24
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz brotli TLS-SRP UnixSockets HTTPS-proxy

And it still fails
export PKG_CONFIG_PATH=$HOME/openssl-1.1.1i/bin/lib/pkgconfig
phpbrew --debug install 7.2 +default -- --with-curl=/opt/curl/7.58 --with-openssl --with-openssl-dir=/opt/openssl/1.1.1i/
*WARNING* You're running phpbrew as root/sudo. Unless you're going to install system-wide phpbrew, this might cause problems.
===> phpbrew will now build 7.2.34
---> Parsing variants from command arguments '+default'
===> Loading and resolving variants...
Checking distribution checksum...
Checksum matched: 0e5816d668a2bb14aca68cef8c430430bd86c3c5233f6c427d1a54aac127abcf
===> Distribution file was successfully extracted, skipping...
Source Directory: /root/.phpbrew/build/php-7.2.34
Writing variant info to /root/.phpbrew/php/php-7.2.34/phpbrew.variants
Running make clean to ensure everything will be rebuilt.
Makefile not found in path /root/.phpbrew/build/php-7.2.34
===> Checking patches...
Checking patch for replace apache php module name with custom version name
Checking patch for replace freetype-config with pkg-config on php older than 7.4
Checking patch for fix readline detection on PHP 5.3 to PHP 7.1
---> Applying patch...
patching file ext/readline/config.m4
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file ext/readline/config.m4.rej

Patch failed
0 changes patched.
Enabled variants: [xml, opcache, bcmath, bz2, calendar, cli, ctype, dom, fileinfo, filter, ipc, json, mbregex, mbstring, mhash, pcntl, pcre, pdo, pear, phar, posix, readline, sockets, tokenizer, curl, openssl, zip]
Disabled variants: []
Found existing build.log, renaming it to /root/.phpbrew/build/php-7.2.34/build.log.1681216385
===> Configuring 7.2.34...

Use tail command to see what's going on:
   $ tail -F '/root/.phpbrew/build/php-7.2.34/build.log'

./configure '--cache-file=/root/.phpbrew/cache/config.cache' '--prefix=/root/.phpbrew/php/php-7.2.34' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--with-libdir=lib/x86_64-linux-gnu' '--enable-dom' '--enable-libxml' '--with-libxml-dir=/usr' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--enable-opcache' '--enable-bcmath' '--with-bz2=/usr' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-fileinfo' '--enable-filter' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-json' '--enable-mbregex' '--enable-mbstring' '--with-mhash=/usr' '--enable-pcntl' '--with-pcre-dir=/usr' '--enable-pdo' '--with-pear=/root/.phpbrew/php/php-7.2.34/lib/php/pear' '--enable-posix' '--with-readline=/usr' '--enable-sockets' '--with-curl=/usr/local' '--with-openssl=/usr/local' '--enable-zip' '--with-config-file-path=/root/.phpbrew/php/php-7.2.34/etc/cli' '--with-config-file-scan-dir=/root/.phpbrew/php/php-7.2.34/var/db/cli' 'PKG_CONFIG_PATH=/root/openssl-1.1.1i/bin/lib/pkgconfig' >> '/root/.phpbrew/build/php-7.2.34/build.log' 2>&1
Error: Configure failed:
The last 5 lines in the log file:
checking for Kerberos support... no

checking whether to use system default cipher list instead of hardcoded value... no

checking for RAND_egd... no

checking for pkg-config... /usr/bin/pkg-config

configure: error: Cannot find OpenSSL's libraries

Please checkout the build log file for more details:
         tail /root/.phpbrew/build/php-7.2.34/build.log

I noticed that the --with-curl=/opt/curl/7.58 --with-openssl --with-openssl-dir=/opt/openssl/1.1.1i/ are not added in the configure command if you check it as it appears in the logs
It's
./configure
'--cache-file=/root/.phpbrew/cache/config.cache'
'--prefix=/root/.phpbrew/php/php-7.2.34'
'--disable-all'
'--enable-phar'
'--enable-session'
'--enable-short-tags'
'--enable-tokenizer'
'--with-pcre-regex'
'--with-zlib=/usr'
'--with-libdir=lib/x86_64-linux-gnu'
'--enable-dom'
'--enable-libxml'
'--with-libxml-dir=/usr'
'--enable-simplexml'
'--enable-xml'
'--enable-xmlreader'
'--enable-xmlwriter'
'--with-xsl'
'--enable-opcache'
'--enable-bcmath'
'--with-bz2=/usr'
'--enable-calendar'
'--enable-cli'
'--enable-ctype'
'--enable-fileinfo'
'--enable-filter'
'--enable-shmop'
'--enable-sysvsem'
'--enable-sysvshm'
'--enable-sysvmsg'
'--enable-json'
'--enable-mbregex'
'--enable-mbstring'
'--with-mhash=/usr'
'--enable-pcntl'
'--with-pcre-dir=/usr'
'--enable-pdo'
'--with-pear=/root/.phpbrew/php/php-7.2.34/lib/php/pear'
'--enable-posix'
'--with-readline=/usr'
'--enable-sockets'
'--with-curl=/usr/local'
'--with-openssl=/usr/local'
'--enable-zip'
'--with-config-file-path=/root/.phpbrew/php/php-7.2.34/etc/cli'
'--with-config-file-scan-dir=/root/.phpbrew/php/php-7.2.34/var/db/cli' 'PKG_CONFIG_PATH=/opt/openssl-1.1.1i/bin/lib/pkgconfig'

While it should be
./configure
'--cache-file=/root/.phpbrew/cache/config.cache'
'--prefix=/root/.phpbrew/php/php-7.2.34'
'--disable-all'
'--enable-phar'
'--enable-session'
'--enable-short-tags'
'--enable-tokenizer'
'--with-pcre-regex'
'--with-zlib=/usr'
'--with-libdir=lib/x86_64-linux-gnu'
'--enable-dom'
'--enable-libxml'
'--with-libxml-dir=/usr'
'--enable-simplexml'
'--enable-xml'
'--enable-xmlreader'
'--enable-xmlwriter'
'--with-xsl'
'--enable-opcache'
'--enable-bcmath'
'--with-bz2=/usr'
'--enable-calendar'
'--enable-cli'
'--enable-ctype'
'--enable-fileinfo'
'--enable-filter'
'--enable-shmop'
'--enable-sysvsem'
'--enable-sysvshm'
'--enable-sysvmsg'
'--enable-json'
'--enable-mbregex'
'--enable-mbstring'
'--with-mhash=/usr'
'--enable-pcntl'
'--with-pcre-dir=/usr'
'--enable-pdo'
'--with-pear=/root/.phpbrew/php/php-7.2.34/lib/php/pear'
'--enable-posix'
'--with-readline=/usr'
'--enable-sockets'
'--with-curl=/opt/curl/7.58/'
'--with-openssl=/opt/openssl/1.1.1i/'
'--enable-zip'
'--with-config-file-path=/root/.phpbrew/php/php-7.2.34/etc/cli'
'--with-config-file-scan-dir=/root/.phpbrew/php/php-7.2.34/var/db/cli' 'PKG_CONFIG_PATH=/opt/openssl-1.1.1i/bin/lib/pkgconfig'

I faced the same problem. Please, who can help with it? I need the   7.2 version of PHP to set up my project on Ubuntu 22.04

Perhaps the above issues is similar with this.

Were the instructions you gave in the earlier posts based on version 1.2.x ?

Were the instructions you gave in the earlier posts based on version 1.2.x ?

That's right.

I'm trying to build with the above command now to see if phpbrew 1.2.8 will work to verify that's the case.
Here's the result and it seems it worked
phpbrew --debug install 7.2 +default +openssl=/opt/openssl/1.1.1i -- --with-curl=/opt/curl/7.58 --with-openssl
*WARNING* You're running phpbrew as root/sudo. Unless you're going to install system-wide phpbrew, this might cause problems.
===> phpbrew will now build 7.2.34
---> Parsing variants from command arguments '+default +openssl=/opt/openssl/1.1.1i -- --with-curl=/opt/curl/7.58 --with-openssl'
===> Loading and resolving variants...
Checking distribution checksum...
Checksum matched: 0e5816d668a2bb14aca68cef8c430430bd86c3c5233f6c427d1a54aac127abcf
===> Distribution file was successfully extracted, skipping...
Source Directory: /root/.phpbrew/build/php-7.2.34
Found existing Makefile, running make clean to ensure everything will be rebuilt.
You can append --no-clean option after the install command if you don't want to rebuild.
===> Running make clean: /usr/bin/make -C '/root/.phpbrew/build/php-7.2.34' --quiet 'clean'
Running Command:/usr/bin/make -C '/root/.phpbrew/build/php-7.2.34' --quiet 'clean'
Writing variant info to /root/.phpbrew/php/php-7.2.34/phpbrew.variants
Running make clean to ensure everything will be rebuilt.
===> Running make clean: /usr/bin/make -C '/root/.phpbrew/build/php-7.2.34' --quiet 'clean'
Running Command:/usr/bin/make -C '/root/.phpbrew/build/php-7.2.34' --quiet 'clean'
===> Checking patches...
Checking patch for replace apache php module name with custom version name
Checking patch for replace freetype-config with pkg-config on php older than 7.4
Checking patch for fix readline detection on PHP 5.3 to PHP 7.1
---> Applying patch...
patching file ext/readline/config.m4
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file ext/readline/config.m4.rej

Patch failed
0 changes patched.
Enabled variants: [openssl, xml, opcache, bcmath, bz2, calendar, cli, ctype, dom, fileinfo, filter, ipc, json, mbregex, mbstring, mhash, pcntl, pcre, pdo, pear, phar, posix, readline, sockets, tokenizer, curl, zip]
Disabled variants: []
Found existing build.log, renaming it to /root/.phpbrew/build/php-7.2.34/build.log.1681218203
===> Configuring 7.2.34...

Use tail command to see what's going on:
   $ tail -F '/root/.phpbrew/build/php-7.2.34/build.log'

./configure '--cache-file=/root/.phpbrew/cache/config.cache' '--prefix=/root/.phpbrew/php/php-7.2.34' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--with-libdir=lib/x86_64-linux-gnu' '--with-openssl' '--enable-dom' '--enable-libxml' '--with-libxml-dir=/usr' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--enable-opcache' '--enable-bcmath' '--with-bz2=/usr' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-fileinfo' '--enable-filter' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-json' '--enable-mbregex' '--enable-mbstring' '--with-mhash=/usr' '--enable-pcntl' '--with-pcre-dir=/usr' '--enable-pdo' '--with-pear=/root/.phpbrew/php/php-7.2.34/lib/php/pear' '--enable-posix' '--with-readline=/usr' '--enable-sockets' '--with-curl=/usr/local' '--enable-zip' '--with-curl=/opt/curl/7.58' '--with-config-file-path=/root/.phpbrew/php/php-7.2.34/etc/cli' '--with-config-file-scan-dir=/root/.phpbrew/php/php-7.2.34/var/db/cli' >> '/root/.phpbrew/build/php-7.2.34/build.log' 2>&1
===> Checking patches...
Checking patch for php5.3.x on 64bit machine when intl is enabled.
Checking patch for openssl dso linking patch
Checking patch for php5.6 with openssl 1.1.x patch.
===> Building...
make >> '/root/.phpbrew/build/php-7.2.34/build.log' 2>&1
Build finished: 6.3 minutes.
Installing...
---> Creating php.ini
---> Copying /root/.phpbrew/build/php-7.2.34/php.ini-development
---> Found date.timezone is not set, patching...
Initializing pear config...
config-set succeeded
config-set succeeded
config-set succeeded
Enabling pear auto-discover...
config-set succeeded
Source directory: /root/.phpbrew/build/php-7.2.34
Congratulations! Now you have PHP with 7.2.34 as php-7.2.34
PHP Fatal error:  Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in phar:///usr/local/bin/phpbrew/src/PhpBrew/Command/InstallCommand.php:580
Stack trace:
#0 phar:///usr/local/bin/phpbrew/src/PhpBrew/Command/InstallCommand.php(580): implode()
#1 [internal function]: PhpBrew\Command\InstallCommand->execute()
#2 phar:///usr/local/bin/phpbrew/vendor/corneltek/cliframework/src/CommandBase.php(846): call_user_func_array()
#3 phar:///usr/local/bin/phpbrew/vendor/corneltek/cliframework/src/Application.php(398): CLIFramework\CommandBase->executeWrapper()
#4 phar:///usr/local/bin/phpbrew/src/PhpBrew/Console.php(105): CLIFramework\Application->run()
#5 phar:///usr/local/bin/phpbrew/bin/phpbrew(26): PhpBrew\Console->runWithTry()
#6 /usr/local/bin/phpbrew(14): require('...')
#7 {main}
  thrown in phar:///usr/local/bin/phpbrew/src/PhpBrew/Command/InstallCommand.php on line 580

I think of course the php error is due to newer php on the system. What's the max compatible php version for phpbrew 1.2.8 ?

Using phpbrew 1.2.8 on Ubuntu 22.04 not all parameters seem to work. For examle +fpm doesn't seem to work
configure: error: Your system does not support systemd.
Command and Result
root@dserver1 ~ # phpbrew --debug install --patch freetype.patch 7.2.34 +default +small +mb +dbs +fpm -wddx +openssl=/opt/openssl/1.1.1i -- --with-pspell --disable-shmop  --with-curl=/opt/curl/7.58 --with-openssl as phpbrew7_2_34_fdev
*WARNING* You're running phpbrew as root/sudo. Unless you're going to install system-wide phpbrew, this might cause problems.
===> phpbrew will now build 7.2.34 as phpbrew7_2_34_fdev
---> Parsing variants from command arguments '+default +small +mb +dbs +fpm -wddx +openssl=/opt/openssl/1.1.1i -- --with-pspell --disable-shmop --with-curl=/opt/curl/7.58 --with-openssl'
===> Loading and resolving variants...
Checking distribution checksum...
Checksum matched: 0e5816d668a2bb14aca68cef8c430430bd86c3c5233f6c427d1a54aac127abcf
===> Distribution file was successfully extracted, skipping...
Source Directory: /opt/phpbrew/build/phpbrew7_2_34_fdev
Writing variant info to /opt/phpbrew/php/phpbrew7_2_34_fdev/phpbrew.variants
Running make clean to ensure everything will be rebuilt.
Makefile not found in path /opt/phpbrew/build/phpbrew7_2_34_fdev
===> Applying patch file from /root/freetype.patch ...
===> Checking patches...
Checking patch for replace apache php module name with custom version name
Checking patch for replace freetype-config with pkg-config on php older than 7.4
Checking patch for fix readline detection on PHP 5.3 to PHP 7.1
---> Applying patch...
patching file ext/readline/config.m4
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file ext/readline/config.m4.rej

Patch failed
0 changes patched.
Enabled variants: [fpm, openssl, xml, opcache, sqlite, mysql, pgsql, pdo, mbstring, mbregex, bz2, cli, dom, filter, ipc, json, pcre, phar, posix, readline, curl, bcmath, calendar, ctype, fileinfo, mhash, pcntl, pear, sockets, tokenizer, zip]
Disabled variants: [wddx]
Found existing build.log, renaming it to /opt/phpbrew/build/phpbrew7_2_34_fdev/build.log.1681368409
===> Configuring 7.2.34...

Checking patch for php5.3.x on 64bit machine when intl is enabled.
Checking patch for openssl dso linking patch
Checking patch for php5.6 with openssl 1.1.x patch.
===> Building...
make >> '/opt/phpbrew/build/phpbrew7_2_34_fdev/build.log' 2>&1
Build finished: 7.5 minutes.
Installing...
---> Creating php.ini
---> Copying /opt/phpbrew/build/phpbrew7_2_34_fdev/php.ini-development
---> Found date.timezone is not set, patching...
Running make clean to ensure everything will be rebuilt.
===> Running make clean: /usr/bin/make -C '/opt/phpbrew/build/phpbrew7_2_34_fdev' --quiet 'clean'
Running Command:/usr/bin/make -C '/opt/phpbrew/build/phpbrew7_2_34_fdev' --quiet 'clean'
===> Applying patch file from /root/freetype.patch ...
===> Checking patches...
Checking patch for replace apache php module name with custom version name
Checking patch for replace freetype-config with pkg-config on php older than 7.4
Checking patch for fix readline detection on PHP 5.3 to PHP 7.1
---> Applying patch...
patching file ext/readline/config.m4
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file ext/readline/config.m4.rej

Patch failed
0 changes patched.
Enabled variants: [fpm, openssl, xml, opcache, sqlite, mysql, pgsql, pdo, mbstring, mbregex, bz2, cli, dom, filter, ipc, json, pcre, phar, posix, readline, curl, bcmath, calendar, ctype, fileinfo, mhash, pcntl, pear, sockets, tokenizer, zip]
Disabled variants: [wddx]
Found existing build.log, renaming it to /opt/phpbrew/build/phpbrew7_2_34_fdev/build.log.1681370605
===> Configuring 7.2.34...

Please checkout the build log file for more details:
         tail /opt/phpbrew/build/phpbrew7_2_34_fdev/build.log

@ioweb-gr and @12Oleg21, could you help me to use the latest 2.1.0 version to check the issue is resolved?
I use above commands and it seems to be resolved.
If having any issue, don't hesitate to let me know.
Thanks!

Sure I'm giving it  a try now :)

For me it seems to proceed but it still cannot compile with +fpm argument
phpbrew --debug install --patch freetype.patch 7.2.34 +default +small +mb +dbs +fpm -wddx +openssl=/opt/openssl/1.1.1i -- --with-pspell --disable-shmop  --with-curl=/opt/curl/7.58 --with-openssl as phpbrew7_2_34_fdev
*WARNING* You're running phpbrew as root/sudo. Unless you're going to install system-wide phpbrew, this might cause problems.
===> phpbrew will now build 7.2.34 as phpbrew7_2_34_fdev
---> Parsing variants from command arguments '+default +small +mb +dbs +fpm -wddx +openssl=/opt/openssl/1.1.1i -- --with-pspell --disable-shmop --with-curl=/opt/curl/7.58 --with-openssl'
===> Loading and resolving variants...
Checking distribution checksum...
Checksum matched: 0e5816d668a2bb14aca68cef8c430430bd86c3c5233f6c427d1a54aac127abcf
===> Extracting /root/.phpbrew/distfiles/php-7.2.34.tar.bz2 to /root/.phpbrew/build/tmp.1681465103/php-7.2.34
===> Moving /root/.phpbrew/build/tmp.1681465103/php-7.2.34 to /root/.phpbrew/build/phpbrew7_2_34_fdev
Source Directory: /root/.phpbrew/build/phpbrew7_2_34_fdev
Writing variant info to /root/.phpbrew/php/phpbrew7_2_34_fdev/phpbrew.variants
Running make clean to ensure everything will be rebuilt.
Makefile not found in path /root/.phpbrew/build/phpbrew7_2_34_fdev
===> Applying patch file from /root/freetype.patch ...
patching file ext/gd/config.m4
Hunk #1 succeeded at 186 (offset 2 lines).
===> Checking patches...
Checking patch for replace apache php module name with custom version name
Checking patch for replace freetype-config with pkg-config on php older than 7.4
Checking patch for fix readline detection on PHP 5.3 to PHP 7.1
---> Applying patch...
patching file ext/readline/config.m4
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file ext/readline/config.m4.rej

Patch failed
0 changes patched.
Enabled variants: [fpm, openssl, xml, opcache, sqlite, mysql, pgsql, pdo, mbstring, mbregex, bz2, cli, dom, filter, ipc, json, pcre, phar, posix, readline, curl, bcmath, calendar, ctype, fileinfo, mhash, pcntl, pear, sockets, tokenizer, zip]
Disabled variants: [wddx]
===> Configuring 7.2.34...

Use tail command to see what's going on:
   $ tail -F '/root/.phpbrew/build/phpbrew7_2_34_fdev/build.log'

./configure '--cache-file=/root/.phpbrew/cache/config.cache' '--prefix=/root/.phpbrew/php/phpbrew7_2_34_fdev' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--with-libdir=lib/x86_64-linux-gnu' '--with-openssl' '--enable-dom' '--enable-libxml' '--with-libxml-dir=/usr' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--enable-opcache' '--with-sqlite3' '--with-pdo-sqlite' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-pgsql=/usr/bin' '--with-pdo-pgsql=/usr/bin' '--enable-pdo' '--enable-mbstring' '--enable-mbregex' '--with-bz2=/usr' '--enable-cli' '--enable-filter' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-json' '--with-pcre-dir=/usr' '--enable-posix' '--with-readline=/usr' '--with-curl=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-ctype' '--enable-fileinfo' '--with-mhash=/usr' '--enable-pcntl' '--with-pear=/root/.phpbrew/php/phpbrew7_2_34_fdev/lib/php/pear' '--enable-sockets' '--enable-zip' '--disable-wddx' '--with-pspell' '--disable-shmop' '--with-curl=/opt/curl/7.58' '--with-config-file-path=/root/.phpbrew/php/phpbrew7_2_34_fdev/etc/cli' '--with-config-file-scan-dir=/root/.phpbrew/php/phpbrew7_2_34_fdev/var/db/cli' 'PKG_CONFIG_PATH=/opt/openssl-1.1.1i/bin/lib/pkgconfig' >> '/root/.phpbrew/build/phpbrew7_2_34_fdev/build.log' 2>&1
===> Checking patches...
Checking patch for php5.3.x on 64bit machine when intl is enabled.
Checking patch for openssl dso linking patch
Checking patch for php5.6 with openssl 1.1.x patch.
===> Building...
make >> '/root/.phpbrew/build/phpbrew7_2_34_fdev/build.log' 2>&1
Build finished: 7.5 minutes.
Installing...
---> Creating php.ini
---> Copying /root/.phpbrew/build/phpbrew7_2_34_fdev/php.ini-development
---> Found date.timezone is not set, patching...
Running make clean to ensure everything will be rebuilt.
===> Running make clean: /usr/bin/make -C '/root/.phpbrew/build/phpbrew7_2_34_fdev' --quiet 'clean'
Running Command:/usr/bin/make -C '/root/.phpbrew/build/phpbrew7_2_34_fdev' --quiet 'clean'
===> Applying patch file from /root/freetype.patch ...
===> Checking patches...
Checking patch for replace apache php module name with custom version name
Checking patch for replace freetype-config with pkg-config on php older than 7.4
Checking patch for fix readline detection on PHP 5.3 to PHP 7.1
---> Applying patch...
patching file ext/readline/config.m4
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file ext/readline/config.m4.rej

Patch failed
0 changes patched.
Enabled variants: [fpm, openssl, xml, opcache, sqlite, mysql, pgsql, pdo, mbstring, mbregex, bz2, cli, dom, filter, ipc, json, pcre, phar, posix, readline, curl, bcmath, calendar, ctype, fileinfo, mhash, pcntl, pear, sockets, tokenizer, zip]
Disabled variants: [wddx]
Found existing build.log, renaming it to /root/.phpbrew/build/phpbrew7_2_34_fdev/build.log.1681465579
===> Configuring 7.2.34...

Please checkout the build log file for more details:
         tail /root/.phpbrew/build/phpbrew7_2_34_fdev/build.log

It seems the arguments are passed correctly now so it's finding openssl and curl but still not fully working :(

Could you help me to compile PHP without +fpm?
I need to ensure OpenSSL libraries can be compiled correctly.
Please create new issue for the +fpm because it's out of the scope for this issue.

Yeah I'm trying it now I'll report shortly

Without fpm it works
phpbrew --debug install --patch freetype.patch 7.2.34 +default +small +mb +dbs -wddx +openssl=/opt/openssl/1.1.1i -- --with-pspell --disable-shmop  --with-curl=/opt/curl/7.58 --with-openssl a
s phpbrew7_2_34_fdev
*WARNING* You're running phpbrew as root/sudo. Unless you're going to install system-wide phpbrew, this might cause problems.
===> phpbrew will now build 7.2.34 as phpbrew7_2_34_fdev
---> Parsing variants from command arguments '+default +small +mb +dbs -wddx +openssl=/opt/openssl/1.1.1i -- --with-pspell --disable-shmop --with-curl=/opt/curl/7.58 --with-openssl'
===> Loading and resolving variants...
Checking distribution checksum...
Checksum matched: 0e5816d668a2bb14aca68cef8c430430bd86c3c5233f6c427d1a54aac127abcf
===> Distribution file was successfully extracted, skipping...
Source Directory: /root/.phpbrew/build/phpbrew7_2_34_fdev
Found existing Makefile, running make clean to ensure everything will be rebuilt.
You can append --no-clean option after the install command if you don't want to rebuild.
===> Running make clean: /usr/bin/make -C '/root/.phpbrew/build/phpbrew7_2_34_fdev' --quiet 'clean'
Running Command:/usr/bin/make -C '/root/.phpbrew/build/phpbrew7_2_34_fdev' --quiet 'clean'
Writing variant info to /root/.phpbrew/php/phpbrew7_2_34_fdev/phpbrew.variants
Running make clean to ensure everything will be rebuilt.
===> Running make clean: /usr/bin/make -C '/root/.phpbrew/build/phpbrew7_2_34_fdev' --quiet 'clean'
Running Command:/usr/bin/make -C '/root/.phpbrew/build/phpbrew7_2_34_fdev' --quiet 'clean'
===> Applying patch file from /root/freetype.patch ...
===> Checking patches...
Checking patch for replace apache php module name with custom version name
Checking patch for replace freetype-config with pkg-config on php older than 7.4
Checking patch for fix readline detection on PHP 5.3 to PHP 7.1
---> Applying patch...
patching file ext/readline/config.m4
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file ext/readline/config.m4.rej

Patch failed
0 changes patched.
Enabled variants: [openssl, xml, opcache, sqlite, mysql, pgsql, pdo, mbstring, mbregex, bz2, cli, dom, filter, ipc, json, pcre, phar, posix, readline, curl, bcmath, calendar, ctype, fileinfo, mhash, pcntl, pear, sockets, tokenizer, zip]
Disabled variants: [wddx]
Found existing build.log, renaming it to /root/.phpbrew/build/phpbrew7_2_34_fdev/build.log.1681465582
===> Configuring 7.2.34...

Use tail command to see what's going on:
   $ tail -F '/root/.phpbrew/build/phpbrew7_2_34_fdev/build.log'

./configure '--cache-file=/root/.phpbrew/cache/config.cache' '--prefix=/root/.phpbrew/php/phpbrew7_2_34_fdev' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--with-libdir=lib/x86_64-linux-gnu' '--with-openssl' '--enable-dom' '--enable-libxml' '--with-libxml-dir=/usr' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--enable-opcache' '--with-sqlite3' '--with-pdo-sqlite' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-pgsql=/usr/bin' '--with-pdo-pgsql=/usr/bin' '--enable-pdo' '--enable-mbstring' '--enable-mbregex' '--with-bz2=/usr' '--enable-cli' '--enable-filter' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-json' '--with-pcre-dir=/usr' '--enable-posix' '--with-readline=/usr' '--with-curl=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-ctype' '--enable-fileinfo' '--with-mhash=/usr' '--enable-pcntl' '--with-pear=/root/.phpbrew/php/phpbrew7_2_34_fdev/lib/php/pear' '--enable-sockets' '--enable-zip' '--disable-wddx' '--with-pspell' '--disable-shmop' '--with-curl=/opt/curl/7.58' '--with-config-file-path=/root/.phpbrew/php/phpbrew7_2_34_fdev/etc/cli' '--with-config-file-scan-dir=/root/.phpbrew/php/phpbrew7_2_34_fdev/var/db/cli' 'PKG_CONFIG_PATH=/opt/openssl-1.1.1i/bin/lib/pkgconfig' >> '/root/.phpbrew/build/phpbrew7_2_34_fdev/build.log' 2>&1
===> Checking patches...
Checking patch for php5.3.x on 64bit machine when intl is enabled.
Checking patch for openssl dso linking patch
Checking patch for php5.6 with openssl 1.1.x patch.
===> Building...
make >> '/root/.phpbrew/build/phpbrew7_2_34_fdev/build.log' 2>&1

Build finished: 7.5 minutes.
Installing...
---> Creating php.ini
---> Copying /root/.phpbrew/build/phpbrew7_2_34_fdev/php.ini-development
Found existing /root/.phpbrew/php/phpbrew7_2_34_fdev/etc/cli/php.ini.
---> Found date.timezone is not set, patching...
Initializing pear config...
config-set succeeded
config-set succeeded
config-set succeeded
Enabling pear auto-discover...
config-set succeeded
Source directory: /root/.phpbrew/build/phpbrew7_2_34_fdev
Congratulations! Now you have PHP with 7.2.34 as phpbrew7_2_34_fdev

* We found that you enabled 'mysql' variant, you might need to setup your
  'pdo_mysql.default_socket' or 'mysqli.default_socket' in your php.ini file.

* To configure your installed PHP further, you can edit the config file(s) at
    /root/.phpbrew/php/phpbrew7_2_34_fdev/etc/cli/php.ini

To use the newly built PHP, try the line(s) below:

    $ phpbrew use phpbrew7_2_34_fdev

Or you can use switch command to switch your default php to phpbrew7_2_34_fdev:

    $ phpbrew switch phpbrew7_2_34_fdev

Enjoy!

I opened separate issue with +fpm

@peter279k I wanted to mention that I tried this on a new Ubuntu 22.04 install again with php 7.2 after installing OPENSSL and CURL like this
# OpenSSL

#Download the OpenSSL-1.1.1i source code from the official website:

cd ~/
wget https://www.openssl.org/source/openssl-1.1.1i.tar.gz

#Extract the source code:

tar -xf openssl-1.1.1i.tar.gz

#Change directory to the extracted source code:

cd openssl-1.1.1i

#Configure the build to install in /opt/openssl/1.1.1i:
make clean
./config --prefix=/opt/openssl/1.1.1i -fPIC

#Compile and install the software:

make -j8
sudo make install

# CURL

#Download the source code for Curl 7.58 and extract it:

cd ~/
wget https://curl.se/download/curl-7.58.0.tar.gz
tar -zxvf curl-7.58.0.tar.gz

#Configure Curl with OpenSSL by specifying the location of the OpenSSL installation directory using the --with-ssl flag:

cd curl-7.58.0
make clean
./configure --prefix=/opt/curl/7.58 --with-ssl=/opt/openssl/1.1.1i

#Build and install Curl:

make -j8
sudo make install

LD_LIBRARY_PATH=/opt/openssl/1.1.1i/lib:$LD_LIBRARY_PATH

Then trying
export PHPBREW_VERSION='7.2.34'
export PHPBREW_VERSION_ALIAS='phpbrew"$PHPBREW_VERSION"_fdev'
export PKG_CONFIG_PATH=/opt/openssl/1.1.1i/lib/pkgconfig/
phpbrew --debug install "$PHPBREW_VERSION" +default +small +mb +dbs +fpm -wddx +openssl=/opt/openssl/1.1.1i -- --with-curl=/opt/curl/7.58 --with-pspell --disable-shmop as phpbrew"$PHPBREW_VERSION"_fdev

Unfortunately much to my surprise this failed yet again, although previously it was working.
However I had the idea of running strace on the actual configure command
strace ./configure '--cache-file=/opt/phpbrew/cache/config.cache' '--prefix=/opt/phpbrew/php/phpbrew7.2.34_fdev' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--with-libdir=lib/x86_64-linux-gnu' '--with-openssl=/opt/openssl/1.1.1i' '--enable-dom' '--enable-libxml' '--with-libxml-dir=/usr' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--enable-opcache' '--with-sqlite3' '--with-pdo-sqlite' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-pgsql=/usr/bin' '--with-pdo-pgsql=/usr/bin' '--enable-pdo' '--enable-mbstring' '--enable-mbregex' '--with-bz2=/usr' '--enable-cli' '--enable-filter' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-json' '--with-pcre-dir=/usr' '--enable-posix' '--with-readline=/usr' '--with-curl=/usr' '--enable-bcmath' '--enable-calendar' '--enable-ctype' '--enable-fileinfo' '--with-mhash=/usr' '--enable-pcntl' '--with-pear=/opt/phpbrew/php/phpbrew7.2.34_fdev/lib/php/pear' '--enable-sockets' '--enable-zip' '--disable-wddx' '--with-curl=/opt/curl/7.58' '--with-pspell' '--disable-shmop' '--with-config-file-path=/opt/phpbrew/php/phpbrew7.2.34_fdev/etc/cli' '--with-config-file-scan-dir=/opt/phpbrew/php/phpbrew7.2.34_fdev/var/db/cli' 'PKG_CONFIG_PATH=/opt/openssl/1.1.1i/lib/pkgconfig/'

Which yielded an interesting fact.
The script was looking to find the library files not in /opt/openssl/1.1.1i/lib but in /opt/openssl/1.1.1i/lib/x86_64-linux-gnu
so it ended up not finding them with a "no such file or directory" on the library files.
After creating a symlink at
ln -s /opt/openssl/1.1.1i/lib /opt/openssl/1.1.1i/lib/x86_64-linux-gnu
Everything proceeded normally afterwards.
Any ideas why the folder x86_64-linux-gnu is not being created or if it's normal, why does the php configure script try to search inside /opt/openssl/1.1.1i/lib/x86_64-linux-gnu and not straight at /opt/openssl/1.1.1i/lib?

It's about the PHP configure script mechanism about --with-openssl option and you can add the --with-openssl option without any directory.
And it will use the pkg-config to try to find the OpenSSL directory.
And like that:
export PHPBREW_VERSION='7.2.34'
export PHPBREW_VERSION_ALIAS='phpbrew"$PHPBREW_VERSION"_fdev'
export PKG_CONFIG_PATH=/opt/openssl/1.1.1i/lib/pkgconfig/
phpbrew --debug install "$PHPBREW_VERSION" +default -- --with-curl=/opt/curl/7.58 as phpbrew"$PHPBREW_VERSION"_fdev --with-openssl

And the configure script will be:
./configure '--cache-file=/root/.phpbrew/cache/config.cache' '--prefix=/root/.phpbrew/php/phpbrew7.2.34_fdev' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--with-libdir=lib/x86_64-linux-gnu' '--with-openssl' '--enable-dom' '--enable-libxml' '--with-libxml-dir=/usr' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--enable-opcache' '--enable-bcmath' '--with-bz2=/usr' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-fileinfo' '--enable-filter' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-json' '--enable-mbregex' '--enable-mbstring' '--with-mhash' '--enable-pcntl' '--enable-pdo' '--with-pear=/root/.phpbrew/php/phpbrew7.2.34_fdev/lib/php/pear' '--enable-posix' '--with-readline=/usr' '--enable-sockets' '--with-curl=/usr' '--enable-zip' '--with-curl=/opt/curl/7.58' '--with-config-file-path=/root/.phpbrew/php/phpbrew7.2.34_fdev/etc/cli' '--with-config-file-scan-dir=/root/.phpbrew/php/phpbrew7.2.34_fdev/var/db/cli' 'PKG_CONFIG_PATH=/opt/openssl/1.1.1i/lib/pkgconfig/' >> '/root/.phpbrew/build/phpbrew7.2.34_fdev/build.log' 2>&1