php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31116 Pear not working after update to 4.3.10
Submitted: 2004-12-16 11:13 UTC Modified: 2004-12-17 10:52 UTC
Votes:7
Avg. Score:5.0 ± 0.0
Reproduced:4 of 4 (100.0%)
Same Version:4 (100.0%)
Same OS:2 (50.0%)
From: michael dot polivanov at ecetra dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.3.10 OS: Linux
Private report: No CVE-ID: None
 [2004-12-16 11:13 UTC] michael dot polivanov at ecetra dot com
Description:
------------
I upgraded PHP 4.3.8 to 4.3.10 and my pear (binary) is not working anymore. Execution of /usr/bin/pear leads to 

Warning: Illegal offset type in Common.php on line 91

Warning: Illegal offset type in Common.php on line 108

(repeats about 20 times)

last line

PHP Fatal error:  Cannot instantiate non-existent class:  pear_frontend_cli in /usr/share/pear/PEAR/Command.php on line 144

There were no error during compilation of PHP

Apache version is 2.0.50

PHP configuration string:

./configure \
	--prefix=%{_installprefix} \
	--sysconfdir=/etc/httpd/conf \
	--with-apxs2filter \
	--with-config-file-path=%{_sysconfdir}/httpd/conf \
	--with-config-file-scan-dir=%{_sysconfdir}/httpd/conf/php.d \
	--disable-debug \
	--with-curl=shared \
	--with-mysql=shared \
	--without-pgsql \
	--without-oracle \
	--with-oci8=shared,/opt/oracle/product/9.2.0 \
	--with-openssl=/usr \
	--with-mcrypt=shared,/usr \
	--with-mhash=shared,/usr \
	--with-mm=shared \
	--with-ldap=shared \
	--with-bz2 \
	--enable-inline-optimization \
	--with-gettext \
	--with-png \
	--with-gd \
	--with-freetype-dir \
	--with-png-dir \
	--enable-track-vars \
	--enable-wddx \
	--with-ttf \
	--enable-gd-native-ttf \
	--enable-magic-quotes \
	--enable-safe-mode \
	--enable-sockets \
	--enable-sysvsem \
	--enable-sysvshm \
	--with-xml \
	--with-sablot=/usr/lib \
	--with-expat=/usr/lib \
	--with-pear=%{_datadir}/pear \
	--with-ncurses \
	--with-regex=system \
	--with-jpeg-dir=/usr \
	--enable-memory-limit \
	--disable-rpath	\
	--without-dba \
	--without-imap \
	--with-kerberos=/usr/kerberos \
	--with-db4 \
	--enable-pic \
	--with-gmp \
	--with-iconv \
	--enable-bcmath \
	--enable-exif \
	--enable-discard-path \
	--enable-trans-sid \
	--enable-versioning \
	--enable-dbx \
	--enable-dio \
	--enable-mcal \
	--enable-calendar \
	--enable-shmop \
	--with-zlib \
	--with-dom \
	--with-pcre-regex


installprefix = /usr
datadir = /usr/share
sysconfdir = /etc

Reproduce code:
---------------
Just execute pear binary without options


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-16 11:17 UTC] michael dot polivanov at ecetra dot com
OS is Redhat EL ES 3 Update 2
 [2004-12-16 11:43 UTC] skippy at zuavra dot net
I can confirm the exact same behaviour, only on a RH 7.3 system with Apache 1.3.33. I've narrowed it down to the php CLI binary itself. Using the one from 4.3.9 pear works, using 4.3.10 fails with this error.
 [2004-12-16 15:53 UTC] hidden at nomail dot com
same problem on redhat-7.3, apache_1.3.33 (selfbuild), with Horde/IMP, Gallery(.sf.net), ...

"Warning: Illegal offset type in x.php on line 27"
27: if (!empty($HTTP_GET_VARS[$sensitive]) ||
 [2004-12-16 17:30 UTC] gui@php.net
Are you using an opcode cache/optimizer such as Zend's one?

If so, please upgrade to the last version. Older version of the optimizer might cause strange behaviours, as seen on :

http://bugs.php.net/bug.php?id=30914
 [2004-12-17 10:52 UTC] michael dot polivanov at ecetra dot com
I removed the ZPS configuration from php.ini and this solved the problem. 

Thank you!

I will contact Zend regarding this problem, cause i am already using the most up2date version of ZPS - 4.0.2

Kr,
-michael
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 28 23:01:27 2024 UTC