Phpbrew: ZTS variant does not work for building PHP 8

Created on 28 Nov 2020  路  2Comments  路  Source: phpbrew/phpbrew

Hi folks, as per this commit, PHP 8 ZTS flag is no longer --enable-maintainer-zts and has been replaced by --enable-zts.

Output

===> phpbrew will now build 8.0.0
---> Parsing variants from command arguments '+default +zts'
===> Loading and resolving variants...
Checking distribution checksum...
Checksum matched: 5e832dc37eabf444410b4ea6fb3d66b72e44e7407a3b49caa5746edcf71b9d09
===> Distribution file was successfully extracted, skipping...
Source Directory: /Users/flavio/.phpbrew/build/php-8.0.0
Writing variant info to /Users/flavio/.phpbrew/php/php-8.0.0/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: [zts, 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 /Users/flavio/.phpbrew/build/php-8.0.0/build.log.1606526617
===> Configuring 8.0.0...


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


./configure '--cache-file=/Users/flavio/.phpbrew/cache/config.cache' '--prefix=/Users/flavio/.phpbrew/php/php-8.0.0' '--with-config-file-path=/Users/flavio/.phpbrew/php/php-8.0.0/etc' '--with-config-file-scan-dir=/Users/flavio/.phpbrew/php/php-8.0.0/var/db' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--enable-maintainer-zts' '--enable-dom' '--with-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--enable-opcache' '--enable-bcmath' '--with-bz2=/usr/local/opt/bzip2' '--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/local' '--enable-pcntl' '--enable-pdo' '--with-pear=/Users/flavio/.phpbrew/php/php-8.0.0/lib/php/pear' '--enable-posix' '--with-readline=/usr/local/opt/readline' '--enable-sockets' '--with-curl' '--with-openssl' '--with-zip' 'PKG_CONFIG_PATH=/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/opt/curl/lib/pkgconfig:/usr/local/opt/[email protected]/lib/pkgconfig' >> '/Users/flavio/.phpbrew/build/php-8.0.0/build.log' 2>&1

Expected Result

Successful compilation with a PHP 8.0.0 ZTS

Command

phpbrew --debug install php-8.0.0 +default +zts

Build Log

cat '/Users/flavio/.phpbrew/build/php-8.0.0/build.log'
configure: WARNING: unrecognized options: --enable-maintainer-zts, --enable-json
configure: creating cache /Users/flavio/.phpbrew/cache/config.cache
./configure: line 3342: /Users/flavio/.phpbrew/cache/config.cache: No such file or directory
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking build system type...

Platform

OS: macOS 10.15.7

Running PHP: 7.4.11

Installing PHP: 8.0.0

PHP 8.0

Most helpful comment

As a workaround, one may use the following command to get it done:

phpbrew install php-8.0.0 +default -- --enable-zts

All 2 comments

As a workaround, one may use the following command to get it done:

phpbrew install php-8.0.0 +default -- --enable-zts

Thanks. Btw, how you handles --enable-json issue? Only this seem to help atm.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rsantellan picture rsantellan  路  3Comments

oNdsen picture oNdsen  路  5Comments

mcpeng picture mcpeng  路  5Comments

sam452 picture sam452  路  6Comments

p-j picture p-j  路  6Comments