#31116 [Opn]: Pear not working after update to 4.3.10

2004-12-16 Thread gui
 ID:   31116
 Updated by:   [EMAIL PROTECTED]
 Reported By:  michael dot polivanov at ecetra dot com
 Status:   Open
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  4.3.10
 New Comment:

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


Previous Comments:


[2004-12-16 15:53:38] 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 11:43:49] 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 11:17:06] michael dot polivanov at ecetra dot com

OS is Redhat EL ES 3 Update 2



[2004-12-16 11:13:45] 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






-- 
Edit this bug report at http://bugs.php.net/?id=31116&edit=1


Bug #60733 [Csd->Asn]: strtotime bug in php 5.3.9

2012-01-12 Thread gui
Edit report at https://bugs.php.net/bug.php?id=60733&edit=1

 ID: 60733
 Updated by: g...@php.net
 Reported by:paul at minimoo dot org
 Summary:strtotime bug in php 5.3.9
-Status: Closed
+Status: Assigned
 Type:   Bug
 Package:Reproducible crash
 Operating System:   linux(debian)-64bit
 PHP Version:5.3.9
-Assigned To:
+Assigned To:    gui
 Block user comment: N
 Private report: N

 New Comment:

It seems to be a Dotdeb-specific issue, I'm looking for a fix. No need to post 
it 
here without warning me first.


Previous Comments:

[2012-01-12 22:37:24] paul at minimoo dot org

This is looking like it may be an issue with the dotdeb.org build of 5.3.9 - 
have had 3-4 people confirm that this code breaks with the .deb files at 
http://dotdeb.mirror.somersettechsolutions.co.uk/dists/stable/php5/binary-amd64/
 

and 2 people unable to reproduce from a build from latest svn


[2012-01-12 21:29:59] paul at minimoo dot org

Description:

Since upgrading [using dotdeb.org compiled version of php] from php 5.3.8 to 
php 5.3.9, strtotime appears to crash. This occurs for me on 2 VM's, minimised 
to 1 line of php.

Valgrind/GDB output attached

Test script:
---
echo strtotime('2011-01-1 00:00 UTC');

Actual result:
--
valgrind /usr/bin/php test.php
==25725== Memcheck, a memory error detector
==25725== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==25725== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for 
copyright info
==25725== Command: /usr/bin/php test.php
==25725==
129384==25725== Invalid read of size 8
==25725==at 0x45D494: timelib_tzinfo_dtor (in /usr/bin/php5)
==25725==by 0x6D1217: zend_hash_destroy (in /usr/bin/php5)
==25725==by 0x437BF0: zm_deactivate_date (in /usr/bin/php5)
==25725==by 0x6C645B: module_registry_cleanup (in /usr/bin/php5)
==25725==by 0x6D0FA3: zend_hash_reverse_apply (in /usr/bin/php5)
==25725==by 0x6C4E7C: zend_deactivate_modules (in /usr/bin/php5)
==25725==by 0x66FDB4: php_request_shutdown (in /usr/bin/php5)
==25725==by 0x7547FF: main (in /usr/bin/php5)
==25725==  Address 0x8bdcf90 is 0 bytes inside a block of size 112 free'd
==25725==at 0x4C240FD: free (vg_replace_malloc.c:366)
==25725==by 0x435599: zif_strtotime (in /usr/bin/php5)
==25725==by 0x715839: zend_do_fcall_common_helper_SPEC (in /usr/bin/php5)
==25725==by 0x6ECC5F: execute (in /usr/bin/php5)
==25725==by 0x6C3FAC: zend_execute_scripts (in /usr/bin/php5)
==25725==by 0x66F147: php_execute_script (in /usr/bin/php5)
==25725==by 0x755755: main (in /usr/bin/php5)
==25725==
==25725== Invalid read of size 8
==25725==at 0x45D4A8: timelib_tzinfo_dtor (in /usr/bin/php5)
==25725==by 0x6D1217: zend_hash_destroy (in /usr/bin/php5)
==25725==by 0x437BF0: zm_deactivate_date (in /usr/bin/php5)
==25725==by 0x6C645B: module_registry_cleanup (in /usr/bin/php5)
==25725==by 0x6D0FA3: zend_hash_reverse_apply (in /usr/bin/php5)
==25725==by 0x6C4E7C: zend_deactivate_modules (in /usr/bin/php5)
==25725==by 0x66FDB4: php_request_shutdown (in /usr/bin/php5)
==25725==by 0x7547FF: main (in /usr/bin/php5)
==25725==  Address 0x8bdcfb0 is 32 bytes inside a block of size 112 free'd
==25725==at 0x4C240FD: free (vg_replace_malloc.c:366)
==25725==by 0x435599: zif_strtotime (in /usr/bin/php5)
==25725==by 0x715839: zend_do_fcall_common_helper_SPEC (in /usr/bin/php5)
==25725==by 0x6ECC5F: execute (in /usr/bin/php5)
==25725==by 0x6C3FAC: zend_execute_scripts (in /usr/bin/php5)
==25725==by 0x66F147: php_execute_script (in /usr/bin/php5)
==25725==by 0x755755: main (in /usr/bin/php5)
==25725==
==25725== Invalid read of size 8
==25725==at 0x45D4BE: timelib_tzinfo_dtor (in /usr/bin/php5)
==25725==by 0x6D1217: zend_hash_destroy (in /usr/bin/php5)
==25725==by 0x437BF0: zm_deactivate_date (in /usr/bin/php5)
==25725==by 0x6C645B: module_registry_cleanup (in /usr/bin/php5)
==25725==by 0x6D0FA3: zend_hash_reverse_apply (in /usr/bin/php5)
==25725==by 0x6C4E7C: zend_deactivate_modules (in /usr/bin/php5)
==25725==by 0x66FDB4: php_request_shutdown (in /usr/bin/php5)
==25725==by 0x7547FF: main (in /usr/bin/php5)
==25725==  Address 0x8bdcfb8 is 40 bytes inside a block of size 112 free'd
==25725==at 0x4C240FD: free (vg_replace_malloc.c:366)
==25725==by 0x435599: zif_strtotime (in /usr/bin/php5)
==25725==by 0x715839: zend_do_fcall_common_helper_SPEC (in /usr/bin/php5)
==25725==by 0x6ECC5F: execute (in /usr/bin/php5)
==25725==by 0x6C3FAC: zend_execute_scripts (in /usr/bin/php5)
==25725==by 0x66F147: php_execute_script (in /usr/bin/php5)
==25

Bug #60733 [Asn->Csd]: strtotime bug in php 5.3.9

2012-01-12 Thread gui
Edit report at https://bugs.php.net/bug.php?id=60733&edit=1

 ID: 60733
 Updated by: g...@php.net
 Reported by:paul at minimoo dot org
 Summary:strtotime bug in php 5.3.9
-Status: Assigned
+Status: Closed
 Type:   Bug
 Package:Reproducible crash
 Operating System:   linux(debian)-64bit
 PHP Version:5.3.9
 Assigned To:    gui
 Block user comment: N
 Private report: N

 New Comment:

This issue has been fixed in the latest Dotdeb packages.Be sure to upgrade at 
least :
  * to 5.3.9-0~dotdeb.3 if you're running Squeeze 
  * to 5.3.9-0~dotdeb.2 if you're running Lenny

Please send future Dotdeb-specific issues directly on http://www.dotdeb.org/ or 
on my email.


Previous Comments:

[2012-01-12 22:38:21] g...@php.net

It seems to be a Dotdeb-specific issue, I'm looking for a fix. No need to post 
it 
here without warning me first.


[2012-01-12 22:37:24] paul at minimoo dot org

This is looking like it may be an issue with the dotdeb.org build of 5.3.9 - 
have had 3-4 people confirm that this code breaks with the .deb files at 
http://dotdeb.mirror.somersettechsolutions.co.uk/dists/stable/php5/binary-amd64/
 

and 2 people unable to reproduce from a build from latest svn


[2012-01-12 21:29:59] paul at minimoo dot org

Description:

Since upgrading [using dotdeb.org compiled version of php] from php 5.3.8 to 
php 5.3.9, strtotime appears to crash. This occurs for me on 2 VM's, minimised 
to 1 line of php.

Valgrind/GDB output attached

Test script:
---
echo strtotime('2011-01-1 00:00 UTC');

Actual result:
--
valgrind /usr/bin/php test.php
==25725== Memcheck, a memory error detector
==25725== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==25725== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for 
copyright info
==25725== Command: /usr/bin/php test.php
==25725==
129384==25725== Invalid read of size 8
==25725==at 0x45D494: timelib_tzinfo_dtor (in /usr/bin/php5)
==25725==by 0x6D1217: zend_hash_destroy (in /usr/bin/php5)
==25725==by 0x437BF0: zm_deactivate_date (in /usr/bin/php5)
==25725==by 0x6C645B: module_registry_cleanup (in /usr/bin/php5)
==25725==by 0x6D0FA3: zend_hash_reverse_apply (in /usr/bin/php5)
==25725==by 0x6C4E7C: zend_deactivate_modules (in /usr/bin/php5)
==25725==by 0x66FDB4: php_request_shutdown (in /usr/bin/php5)
==25725==by 0x7547FF: main (in /usr/bin/php5)
==25725==  Address 0x8bdcf90 is 0 bytes inside a block of size 112 free'd
==25725==at 0x4C240FD: free (vg_replace_malloc.c:366)
==25725==by 0x435599: zif_strtotime (in /usr/bin/php5)
==25725==by 0x715839: zend_do_fcall_common_helper_SPEC (in /usr/bin/php5)
==25725==by 0x6ECC5F: execute (in /usr/bin/php5)
==25725==by 0x6C3FAC: zend_execute_scripts (in /usr/bin/php5)
==25725==by 0x66F147: php_execute_script (in /usr/bin/php5)
==25725==by 0x755755: main (in /usr/bin/php5)
==25725==
==25725== Invalid read of size 8
==25725==at 0x45D4A8: timelib_tzinfo_dtor (in /usr/bin/php5)
==25725==by 0x6D1217: zend_hash_destroy (in /usr/bin/php5)
==25725==by 0x437BF0: zm_deactivate_date (in /usr/bin/php5)
==25725==by 0x6C645B: module_registry_cleanup (in /usr/bin/php5)
==25725==by 0x6D0FA3: zend_hash_reverse_apply (in /usr/bin/php5)
==25725==by 0x6C4E7C: zend_deactivate_modules (in /usr/bin/php5)
==25725==by 0x66FDB4: php_request_shutdown (in /usr/bin/php5)
==25725==by 0x7547FF: main (in /usr/bin/php5)
==25725==  Address 0x8bdcfb0 is 32 bytes inside a block of size 112 free'd
==25725==at 0x4C240FD: free (vg_replace_malloc.c:366)
==25725==by 0x435599: zif_strtotime (in /usr/bin/php5)
==25725==by 0x715839: zend_do_fcall_common_helper_SPEC (in /usr/bin/php5)
==25725==by 0x6ECC5F: execute (in /usr/bin/php5)
==25725==by 0x6C3FAC: zend_execute_scripts (in /usr/bin/php5)
==25725==by 0x66F147: php_execute_script (in /usr/bin/php5)
==25725==by 0x755755: main (in /usr/bin/php5)
==25725==
==25725== Invalid read of size 8
==25725==at 0x45D4BE: timelib_tzinfo_dtor (in /usr/bin/php5)
==25725==by 0x6D1217: zend_hash_destroy (in /usr/bin/php5)
==25725==by 0x437BF0: zm_deactivate_date (in /usr/bin/php5)
==25725==by 0x6C645B: module_registry_cleanup (in /usr/bin/php5)
==25725==by 0x6D0FA3: zend_hash_reverse_apply (in /usr/bin/php5)
==25725==by 0x6C4E7C: zend_deactivate_modules (in /usr/bin/php5)
==25725==by 0x66FDB4: php_request_shutdown (in /usr/bin/php5)
==25725==by 0x7547FF: main (in /usr/bin/php5)
==25725==  Address 0x8bdcfb8 is 40 bytes inside a block of size 112 free'd
==25725==