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 <tyrael@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
Le mer. 10 juin 2015 à 17:05, robert.devanna@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 <tyrael@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.incBuild 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 1236Warning: 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 2known issue or workaround?
bob
--
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
Le mer. 10 juin 2015 à 17:15, Patrick ALLAERT patrickallaert@php.net a
écrit :
Le mer. 10 juin 2015 à 17:05, robert.devanna@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 <tyrael@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.incBuild 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 1236Warning: 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 2known issue or workaround?
bob
--
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
Hi Patrick
ereg_*() functions are deprecated since a long time and has been removed in
PHP 7.
Understood.
Since I'm simply attempting to build PHP7 from source, not, as yet, 'use it', what do I do about it?
Is this something curable on my end via config? Or is it a bug in configure/build?
Bob
Hi Patrick
ereg_*() functions are deprecated since a long time and has been removed
in
PHP 7.Understood.
Since I'm simply attempting to build PHP7 from source, not, as yet, 'use
it', what do I do about it?Is this something curable on my end via config? Or is it a bug in
configure/build?Bob
--
hi,
it is a bit complex problem.
so our standard procedure is that the php make install
downloads install-pear-nozlib.phar from pear.php.net but the current
version up there isn't php7 compatible yet.
basically we have all the necessary fixes already committed to the required
pear packages, but there are some pear packages which don't have a stable
release with the php7 compatibility fixes yet (biggest blocker is the
pear-core aka the PEAR package, a smaller issue is having a release from
PHP_Archive, which is required for building install-pear-nozlib.phar).
after those packages are released with the php7 compatibility fixes and the
http://pear.php.net/install-pear-nozlib.phar (and
http://pear.php.net/go-pear.phar) files are regenerated then installing
pear should work out of the box for php7.
until this is fixed we have a "custom" install-pear-nozlib.phar built and
added to our repo, so instead of downloading the incompatible installer, we
use one with the fixes already present.
this is a hack/workaround for the time being, and that version still had an
issue which I just fixed, so now I was able to make install from master
when doing a configure --with-pear.
did not have more time to test though, so any feedback is appreciated.
--
Ferenc Kovács
@Tyr43l - http://tyrael.hu
Am 16.06.2015 um 18:10 schrieb Ferenc Kovacs:
did not have more time to test though, so any feedback is appreciated.
I still think that the right solution would be to simply not bundle /
install PEAR anymore.
Am 16.06.2015 um 18:10 schrieb Ferenc Kovacs:
did not have more time to test though, so any feedback is appreciated.
I still think that the right solution would be to simply not bundle /
install PEAR anymore.
That probably needs RFC. But we must be able to install pecl
extensions, one way or another.
If the pecl packaging can be replaced with tar archive, or even github
style release downloads, then installing won't require pear.
-Hannes
On Jun 16, 2015 11:35 PM, "Hannes Magnusson" hannes.magnusson@gmail.com
wrote:
On Tue, Jun 16, 2015 at 9:14 AM, Sebastian Bergmann sebastian@php.net
wrote:Am 16.06.2015 um 18:10 schrieb Ferenc Kovacs:
did not have more time to test though, so any feedback is appreciated.
I still think that the right solution would be to simply not bundle /
install PEAR anymore.That probably needs RFC. But we must be able to install pecl
extensions, one way or another.
If the pecl packaging can be replaced with tar archive, or even github
style release downloads, then installing won't require pear.
That's what pickle does, from any vcs, pecl.php.net or straight from the
sources directory or an archive.
https://github.com/FriendsOfPHP/pickle
-Hannes