Le mer. 10 juin 2015 à 17:15, Patrick ALLAERT <patrickalla...@php.net> a
écrit :

> Le mer. 10 juin 2015 à 17:05, <robert.deva...@nospammail.net> a écrit :
>
>> hi
>>
>> I'm building PHP7 on linux/64
>>
>>         git checkout PHP-7.0.0
>>         cd PHP-7.0.0
>>         git log | head
>>                 commit dbf30365aa15b9044d75b8f77db570bf8fdf2726
>>                 Merge: 9cb8cb4 5ff259e
>>                 Author: Ferenc Kovacs <tyr...@php.net>
>>                 Date:   Wed Jun 10 10:49:51 2015 +0200
>>
>>                     Merge remote-tracking branch 'origin/master' into
>> PHP-7.0.0
>>
>>                     * origin/master:
>>                       add missing NEWS entries
>>                       add missing NEWS entries
>>
>>         ./configure --enable-shared=yes --enable-static=no --enable-cli
>> --enable-phar=shared --with-pear ...
>>         make
>>                 ...
>>                 Generating phar.php
>>                 Generating phar.phar
>>                 PEAR package PHP_Archive not installed: generated phar
>> will require PHP's phar extension be enabled.
>>                 clicommand.inc
>>                 pharcommand.inc
>>                 invertedregexiterator.inc
>>                 directorygraphiterator.inc
>>                 directorytreeiterator.inc
>>                 phar.inc
>>
>>                 Build complete.
>>                 Don't forget to run 'make test'.
>>
>>         make install
>>                 Installing shared extensions:     /work/php7ext/
>>                 Installing PHP CLI binary:        /work/php7/bin/
>>                 Installing PHP CLI man page:
>> /work/php7/share/man/man1/
>>                 Installing PHP FPM binary:        /work/php7/sbin/
>>                 Installing PHP FPM config:        /work/php7/etc/
>>                 Installing PHP FPM man page:
>> /work/php7/share/man/man8/
>>                 Installing PHP FPM status page:
>> /work/php7/share/php/fpm/
>>                 Installing build environment:     /work/php7/lib64/build/
>>                 Installing header files:          /work/php7/include/php/
>>                 Installing helper programs:       /work/php7/bin/
>>                   program: phpize
>>                   program: php-config
>>                 Installing man pages:
>>  /work/php7/share/man/man1/
>>                   page: phpize.1
>>                   page: php-config.1
>>                 Installing PEAR environment:      /work/php7/share/pear/
>>
>>                 Warning: main(phar://install-pear-nozlib.phar/index.php):
>> failed to open stream: "PHP_Archive::stream_open" call failed in
>> /work/src/php7-src/pear/install-pear-nozlib.phar on line 1236
>>
>>                 Warning: Uncaught EngineException: Call to undefined
>> function ereg_replace() in
>> /work/src/php7-src/pear/install-pear-nozlib.phar:566
>>                 Stack trace:
>>                 #0 /work/src/php7-src/pear/install-pear-nozlib.phar(729):
>> PHP_Archive::processFile('phar://install-...')
>>                 #1 /work/src/php7-src/pear/install-pear-nozlib.phar(790):
>> PHP_Archive->initializeStream('phar://install-...')
>>                 #2 /work/src/php7-src/pear/install-pear-nozlib.phar(777):
>> PHP_Archive->_streamOpen('phar://install-...')
>>                 #3
>> /work/src/php7-src/pear/install-pear-nozlib.phar(1236):
>> PHP_Archive->stream_open('phar://install-...', 'rb', 129, NULL)
>>                 #4
>> /work/src/php7-src/pear/install-pear-nozlib.phar(1236): require_once()
>>                 #5 {main}
>>                   thrown in
>> /work/src/php7-src/pear/install-pear-nozlib.phar on line 566
>>                 Makefile:482: recipe for target 'install-pear-installer'
>> failed
>>                 make[1]: *** [install-pear-installer] Error 255
>>                 Makefile:485: recipe for target 'install-pear' failed
>>                 make: *** [install-pear] Error 2
>>
>> known issue or workaround?
>>
>> bob
>>
>> --
>> PHP Internals - PHP Runtime Development Mailing List
>> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> Bob,
>
> ereg_*() functions are deprecated since a long time and has been removed
> in PHP 7.
>
> See https://wiki.php.net/rfc/remove_deprecated_functionality_in_php7
>
> Patrick
>

Haven't realized that was during "make install". I guess that many PEAR
packages are not maintained and haven't moved away from ereg yet.

Try without "--pear" in ./configure.

Patrick

Reply via email to