Bug #62627 [Com]: Zlib output handler enabled randomly
Edit report at https://bugs.php.net/bug.php?id=62627&edit=1 ID: 62627 Comment by: [email protected] Reported by:roctom at gmail dot com Summary:Zlib output handler enabled randomly Status: Open Type: Bug Package:*Compression related Operating System: Debian 2.6.32-5-xen-amd64 PHP Version:5.4.5 Block user comment: N Private report: N New Comment: experienced the same on 5.4.4, CentOS/6.3 Previous Comments: [2012-07-21 05:08:48] roctom at gmail dot com Description: Having upgraded from 5.4.0 to 5.4.5, I now get the zlib output compression handler as part of ob_list_handlers() randomly which generates issues with ob_start(). zlib.output_compression is set to off. './configure' '--sysconfdir=/etc' '--with-config-file-path=/etc' '--with-config- file-scan-dir=/etc/php.d' '--with-apxs2=/usr/sbin/apxs' '--with-openssl' '--with- gd' '--with-curl=/usr/src/curl-7.21.7/include' '--with-zlib' '--enable-calendar' '--enable-mbstring' '--enable-zip' '--enable-sockets' '--with-mcrypt' '--with- mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with- kerberos' '--enable-ftp' '--disable-posix' '--enable-bcmath' '--enable-gd-native- ttf' '--with-freetype-dir' '--with-jpeg-dir=/usr/local' '--with-png- dir=/usr/local' '--with-xsl=/usr/local/lib' '--enable-exif' Test script: --- default output handler ) Array ( [0] => ob_gzhandler ) Array ( [0] => default output handler ) Actual result: -- First execution (in browser) Array ( [0] => default output handler ) Array ( [0] => ob_gzhandler ) Array ( [0] => ) Second execution (in browser) Firefox 16.1a Array ( [0] => default output handler [1] => zlib output compression ) Chrome 2.0.1132.57 Array ( [0] => default output handler [1] => zlib output compression ) â¹s,*JŠÃà RâhÆX[;â¦âôÃÃÅâ¦Ã¼ÃââÃâ¦ÅüâÅÃ"Ë C°Šü¤øô*˸&HùÃà DArray ( [0] => default output handler [1] => ) -- Edit this bug report at https://bugs.php.net/bug.php?id=62627&edit=1
#49700 [NEW]: memory leaks in php_date.c if garbage collector is enabled
From: [email protected] Operating system: Mac OS X 10.6.1 PHP version: 5.3SVN-2009-09-28 (SVN) PHP Bug Type: Date/time related Bug description: memory leaks in php_date.c if garbage collector is enabled Description: If garbage-collector is enabled and large quantity of DateTime objects is created, php reports memory leaks Reproduce code: --- http://bugs.php.net/?id=49700&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49700&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49700&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49700&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49700&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49700&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49700&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49700&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49700&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49700&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49700&r=support Expected behavior: http://bugs.php.net/fix.php?id=49700&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49700&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49700&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49700&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49700&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=49700&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49700&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49700&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49700&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49700&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49700&r=mysqlcfg
#48088 [NEW]: Wrong ARG_INFO for OO-API of DateTime
From: [email protected] Operating system: any PHP version: 5.3.0RC1 PHP Bug Type: Date/time related Bug description: Wrong ARG_INFO for OO-API of DateTime Description: ARG_INFO of several methods of DateTime class have $object as the first parameter, which, actually, is not needed in object-oriented API. Reproduce code: --- php --rc DateTime Expected result: Method [ public method setISODate ] { - Parameters [4] { Parameter #0 [ $year ] Parameter #1 [ $week ] Parameter #2 [ $day ] } } Actual result: -- Method [ public method setISODate ] { - Parameters [4] { Parameter #0 [ $object ] Parameter #1 [ $year ] Parameter #2 [ $week ] Parameter #3 [ $day ] } } -- Edit bug report at http://bugs.php.net/?id=48088&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48088&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48088&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48088&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48088&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48088&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48088&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48088&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48088&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48088&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48088&r=support Expected behavior: http://bugs.php.net/fix.php?id=48088&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48088&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48088&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48088&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48088&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=48088&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48088&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48088&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48088&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48088&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48088&r=mysqlcfg
[PHP-BUG] Bug #54087 [NEW]: Segfault on startup, DATEG(timezone) not initialized
From: indeyets
Operating system: Mac OS X
PHP version: 5.3SVN-2011-02-24 (SVN)
Package: Date/time related
Bug Type: Bug
Bug description:Segfault on startup, DATEG(timezone) not initialized
Description:
In case there is some problem with extension loaded from php.ini (shared
dependency not available), php segfaults while trying to show error.
it happens in debug+zts mode at least.
Debugger output:
(lldb) run
Process 23067 launched: '/opt/php53/bin/php' (x86_64)
(lldb) Process 23067 stopped
* thread #1: tid = 0x2d03, 0x000197f0 php`guess_timezone + 48 at
php_date.c:843, stop reason = EXC_BAD_ACCESS (code=13, address=0x0)
840char *env;
841
842/* Checking configure timezone */
843 -> if (DATEG(timezone) && (strlen(DATEG(timezone)) > 0)) {
844return DATEG(timezone);
845}
846/* Check environment variable */
(lldb) frame s 3
frame #3: 0x00010053edb1 php`php_log_err + 369 at main.c:585
582char *error_time_str;
583
584time(&error_time);
585 -> error_time_str = php_format_date("d-M-Y H:i:s",
11, error_time, 1 TSRMLS_CC);
586len = spprintf(&tmp, 0, "[%s] %s%s",
error_time_str, log_message, PHP_EOL);
587#ifdef PHP_WIN32
588php_flock(fd, 2);
(lldb) print log_message
(char *) log_message = 0x000101807a50 "PHP Warning: PHP Startup:
Unable to
load dynamic library '/opt/php53/lib/php/extensions/debug-zts-
20090626/gobject.so' - dlopen(/opt/php53/lib/php/extensions/debug-zts-
20090626/gobject.so, 9): Library not loaded: /opt/homebrew/Cellar/gobject-
introspection/0.10.2/lib/libgirepository-1.0.1.dylib\n Referenced from:
/opt/php53/lib/php/extensions/debug-zts-20090626/gobject.so\n Reason:
image not
found in Unknown on line 0"
(lldb) bt
thread #1: tid = 0x2d03, stop reason = EXC_BAD_ACCESS (code=13,
address=0x0)
frame #0: 0x000197f0 php`guess_timezone + 48 at php_date.c:843
frame #1: 0x00019c69 php`get_timezone_info + 89 at
php_date.c:940
frame #2: 0x0001a05b php`php_format_date + 59 at php_date.c:1190
frame #3: 0x00010053edb1 php`php_log_err + 369 at main.c:585
frame #4: 0x000100543b76 php`php_error_cb + 2342 at main.c:1003
frame #5: 0x0001005f6da3 php`zend_error + 1139 at zend.c:1020
frame #6: 0x00010053fdb5 php`php_verror + 3301 at main.c:807
frame #7: 0x00010053ff9c php`php_error_docref0 + 364 at main.c:819
frame #8: 0x00010040d031 php`php_load_extension + 561 at dl.c:158
frame #9: 0x000100554d32 php`php_load_php_extension_cb + 50 at
php_ini.c:351
frame #10: 0x0001005e8661 php`zend_llist_apply + 65 at
zend_llist.c:193
frame #11: 0x000100554cb7 php`php_ini_register_extensions + 87 at
php_ini.c:751
frame #12: 0x000100542f89 php`php_module_startup + 3529 at
main.c:2029
frame #13: 0x00010071b944 php`php_cli_startup + 36 at php_cli.c:402
frame #14: 0x00010071895f php`main + 2575 at php_cli.c:776
frame #15: 0x00010c64 php`start + 52
(lldb)
Expected result:
Error is displayed
Actual result:
--
Segfault
--
Edit bug report at http://bugs.php.net/bug.php?id=54087&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=54087&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=54087&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=54087&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=54087&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=54087&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=54087&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=54087&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=54087&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=54087&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=54087&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=54087&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=54087&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=54087&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=54087&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54087&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=54087&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=54087&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=54087&r=gnused
Floatin
Bug #50902 [Com]: Segfault if date.timezone is not set and error_log is defined
Edit report at http://bugs.php.net/bug.php?id=50902&edit=1 ID: 50902 Comment by: [email protected] Reported by:william at therileys dot freetcp dot com Summary:Segfault if date.timezone is not set and error_log is defined Status: Assigned Type: Bug Package:SOAP related Operating System: * PHP Version:5.*, 6 Assigned To:derick Block user comment: N Private report: N New Comment: (copypaste from #54087, which is marked as duplicate of this bug) Description: In case there is some problem with extension loaded from php.ini (shared dependency not available), php segfaults while trying to show error. it happens in debug+zts mode at least. Debugger output: (lldb) run Process 23067 launched: '/opt/php53/bin/php' (x86_64) (lldb) Process 23067 stopped * thread #1: tid = 0x2d03, 0x000197f0 php`guess_timezone + 48 at php_date.c:843, stop reason = EXC_BAD_ACCESS (code=13, address=0x0) 840char *env; 841 842/* Checking configure timezone */ 843 -> if (DATEG(timezone) && (strlen(DATEG(timezone)) > 0)) { 844return DATEG(timezone); 845} 846/* Check environment variable */ (lldb) frame s 3 frame #3: 0x00010053edb1 php`php_log_err + 369 at main.c:585 582char *error_time_str; 583 584time(&error_time); 585 -> error_time_str = php_format_date("d-M-Y H:i:s", 11, error_time, 1 TSRMLS_CC); 586len = spprintf(&tmp, 0, "[%s] %s%s", error_time_str, log_message, PHP_EOL); 587#ifdef PHP_WIN32 588php_flock(fd, 2); (lldb) print log_message (char *) log_message = 0x000101807a50 "PHP Warning: PHP Startup: Unable to load dynamic library '/opt/php53/lib/php/extensions/debug-zts- 20090626/gobject.so' - dlopen(/opt/php53/lib/php/extensions/debug-zts- 20090626/gobject.so, 9): Library not loaded: /opt/homebrew/Cellar/gobject- introspection/0.10.2/lib/libgirepository-1.0.1.dylib\n Referenced from: /opt/php53/lib/php/extensions/debug-zts-20090626/gobject.so\n Reason: image not found in Unknown on line 0" (lldb) bt thread #1: tid = 0x2d03, stop reason = EXC_BAD_ACCESS (code=13, address=0x0) frame #0: 0x000197f0 php`guess_timezone + 48 at php_date.c:843 frame #1: 0x00019c69 php`get_timezone_info + 89 at php_date.c:940 frame #2: 0x0001a05b php`php_format_date + 59 at php_date.c:1190 frame #3: 0x00010053edb1 php`php_log_err + 369 at main.c:585 frame #4: 0x000100543b76 php`php_error_cb + 2342 at main.c:1003 frame #5: 0x0001005f6da3 php`zend_error + 1139 at zend.c:1020 frame #6: 0x00010053fdb5 php`php_verror + 3301 at main.c:807 frame #7: 0x00010053ff9c php`php_error_docref0 + 364 at main.c:819 frame #8: 0x00010040d031 php`php_load_extension + 561 at dl.c:158 frame #9: 0x000100554d32 php`php_load_php_extension_cb + 50 at php_ini.c:351 frame #10: 0x0001005e8661 php`zend_llist_apply + 65 at zend_llist.c:193 frame #11: 0x000100554cb7 php`php_ini_register_extensions + 87 at php_ini.c:751 frame #12: 0x000100542f89 php`php_module_startup + 3529 at main.c:2029 frame #13: 0x00010071b944 php`php_cli_startup + 36 at php_cli.c:402 frame #14: 0x00010071895f php`main + 2575 at php_cli.c:776 frame #15: 0x00010c64 php`start + 52 (lldb) Expected result: Error is displayed Actual result: -- Segfaul Previous Comments: [2010-02-03 23:19:29] [email protected] This is bug in SOAP extension which has a funky error handler defined. [2010-02-03 22:33:07] [email protected] The shortest way to reproduce: # php -n -dlog_errors=on -derror_log=./foo \ -r 'new SoapClient("http://localhost/wsdl";); [2010-02-03 22:23:22] william at therileys dot freetcp dot com I did another back trace just to verify the correct php version was being used and with the source code in place on the system on which I ran gdb. Please note that the back trace will say 5.2.12 (even though this is the snapshot) because I used that directory name so I did not have to rewrite the spec file to build an RPM. http://pastebin.com/f19f1446a $ /usr/local/bin/php --version PHP 5.2.13RC1-dev (cli) (built: Feb 2 2010 10:17:42) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies ---
[PHP-BUG] Req #63538 [NEW]: "Call to undefined function" should be catchable
From: indeyets Operating system: any PHP version: 5.5.0alpha1 Package: Scripting Engine problem Bug Type: Feature/Change Request Bug description:"Call to undefined function" should be catchable Description: At the moment, call to undefined function results as "Fatal error". On the other hand, it can be easily handled programmatically either by including required file or just defining function dynamically. Test script: --- https://bugs.php.net/bug.php?id=63538&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63538&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63538&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63538&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63538&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63538&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63538&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63538&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63538&r=oldversion Not developer issue:https://bugs.php.net/fix.php?id=63538&r=support Expected behavior: https://bugs.php.net/fix.php?id=63538&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63538&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63538&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63538&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63538&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63538&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63538&r=isapi Install GNU Sed:https://bugs.php.net/fix.php?id=63538&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63538&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63538&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63538&r=mysqlcfg
