#35277 [Com]: incorrect recursion detection
ID: 35277 Comment by: sveta at microbecal dot com Reported By: [EMAIL PROTECTED] Status: Suspended Bug Type: Arrays related Operating System: * PHP Version: 6CVS, 5CVS Assigned To: dmitry New Comment: Seems this bug affects comparision of objects which contains references to themself: $cat >comparision.php a = $this; } } $a = array(new A, 1); $b = array(new A, 1); var_dump($a == $b); ?> ^C $php comparision.php Fatal error: Nesting level too deep - recursive dependency? in /users/ssmirnova/comparision.php on line 15 Previous Comments: [2005-11-18 16:16:40] [EMAIL PROTECTED] The reason of this bug is IS_CV variables. PHP doesn't increment/decrement refcount during fetching, also the order of fetches may be changed. In 5.1 and lvalue of "$a[] = $a" is evaluated before rvalue and changes rvalue (addes new element to array). Then $a is assigned into this element. As a result we got circular data structure where we shouldn't. The same bug occurs with list() Reproduce code: --- Expected result: string(1) "1" string(1) "2" string(1) "3" string(1) "1" array(3) { [0]=> string(1) "2" [1]=> string(1) "2" [2]=> string(1) "3" } string(1) "3" Actual result: -- string(1) "2" string(1) "2" string(1) "3" string(1) "2" array(3) { [0]=> string(1) "2" [1]=> string(1) "2" [2]=> string(1) "3" } string(1) "3" [2005-11-18 15:39:56] [EMAIL PROTECTED] Description: PHP 5.1.0 seems to be overly paranoid when trying to detect a recursion. I do not know the internals but I do not think this is a duplicate of http://bugs.php.net/bug.php?id=29389. Reproduce code: --- $a = array(); $a[] = $a; var_dump($a); Expected result: array(1) { [0]=> array(0) { } } Actual result: -- array(1) { [0]=> array(1) { [0]=> *RECURSION* } } -- Edit this bug report at http://bugs.php.net/?id=35277&edit=1
#34883 [Bgs->Csd]: crash when accessing superglobals
ID: 34883 User updated by: sveta at microbecal dot com Reported By: sveta at microbecal dot com -Status: Bogus +Status: Closed Bug Type: Apache2 related Operating System: Windows XP SP1 PHP Version: 5CVS-2005-10-16 (snap) New Comment: In RC7 works fine in my environment Previous Comments: [2005-10-23 23:54:58] [EMAIL PROTECTED] I can only assume that there is something wrong with your environment since it does work on all of my test systems and we have not recieved any reports of PHP crashing on simple phpinfo(). [2005-10-23 23:36:00] sveta at microbecal dot com I have tried without any dlls too. First trace (TowerExplode () ) without any dll's. I have access to 3 Windows XP machine: one with SP2 (worked fine, but builds not same: some hours differents) and 2 with SP1 (works with crashes). [2005-10-23 23:23:19] [EMAIL PROTECTED] Just verified with the latest CVS and the phpinfo page displays just fine when using PHP without any additional extensions. You must have mixed up dlls from several different PHP versions, or are loading some extension which is causing the crash. [2005-10-21 11:31:41] sveta at microbecal dot com If so why previous versions of PHP 5.1 brunch worked fine? [2005-10-21 09:08:18] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/34883 -- Edit this bug report at http://bugs.php.net/?id=34883&edit=1
#34883 [Bgs->Opn]: crash when accessing superglobals
ID: 34883 User updated by: sveta at microbecal dot com Reported By: sveta at microbecal dot com -Status: Bogus +Status: Open Bug Type: Apache2 related Operating System: Windows XP SP1 PHP Version: 5CVS-2005-10-16 (snap) New Comment: I have tried without any dlls too. First trace (TowerExplode () ) without any dll's. I have access to 3 Windows XP machine: one with SP2 (worked fine, but builds not same: some hours differents) and 2 with SP1 (works with crashes). Previous Comments: [2005-10-23 23:23:19] [EMAIL PROTECTED] Just verified with the latest CVS and the phpinfo page displays just fine when using PHP without any additional extensions. You must have mixed up dlls from several different PHP versions, or are loading some extension which is causing the crash. [2005-10-21 11:31:41] sveta at microbecal dot com If so why previous versions of PHP 5.1 brunch worked fine? [2005-10-21 09:08:18] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. [2005-10-19 00:24:01] sveta at microbecal dot com I did it. Simple I have noticed what with some modules backtrace contains more info and localized they. [2005-10-19 00:15:35] [EMAIL PROTECTED] Cool. I was asking you to remove all modules and you loaded runkit and xdebug instead.. Now *please* try it without *ANY* additional modules. Just PHP itself. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/34883 -- Edit this bug report at http://bugs.php.net/?id=34883&edit=1
#34883 [Bgs->Opn]: crash when accessing superglobals
ID: 34883 User updated by: sveta at microbecal dot com Reported By: sveta at microbecal dot com -Status: Bogus +Status: Open Bug Type: Apache2 related Operating System: Windows XP SP1 PHP Version: 5CVS-2005-10-16 (snap) New Comment: If so why previous versions of PHP 5.1 brunch worked fine? Previous Comments: [2005-10-21 09:08:18] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. [2005-10-19 00:24:01] sveta at microbecal dot com I did it. Simple I have noticed what with some modules backtrace contains more info and localized they. [2005-10-19 00:15:35] [EMAIL PROTECTED] Cool. I was asking you to remove all modules and you loaded runkit and xdebug instead.. Now *please* try it without *ANY* additional modules. Just PHP itself. [2005-10-19 00:06:49] sveta at microbecal dot com Same result after renaming php.ini. I experience with different sets of modules. Above stack with usefull information was created with option: extension=php_runkit.dll Below stack with option: extension=php_xdebug.dll --- (gdb) run -X Starting program: /cygdrive/d/Program Files/Apache Group/Apache2/bin/Apache.exe -X ---Type to continue, or q to quit--- Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2016.0x42c] 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll (gdb) c Continuing. warning: HEAP[Apache.exe]: warning: Invalid Address specified to RtlFreeHeap( 05D7, 01220650 ) Program received signal SIGTRAP, Trace/breakpoint trap. 0x77f76491 in ntdll!DbgUiConnectToDbg () from ntdll.dll (gdb) bt #0 0x77f76491 in ntdll!DbgUiConnectToDbg () from ntdll.dll #1 0x77fa1699 in ntdll!RtlpNtMakeTemporaryKey () from ntdll.dll #2 0x77f87c1b in ntdll!RtlCheckRegistryKey () from ntdll.dll #3 0x05d7 in ?? () #4 0x01220650 in ?? () #5 0x0582f980 in ?? () #6 0x77fa2400 in ntdll!RtlpNtMakeTemporaryKey () from ntdll.dll #7 0x05d7 in ?? () #8 0x01220648 in ?? () #9 0x77fb152c in wcstombs () from ntdll.dll Previous frame inner to this frame (corrupt stack?) (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll (gdb) bt #0 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll #1 0x77dd8de5 in ElfNumberOfRecords () from /cygdrive/c/WINDOWS/system32/advapi32.dll #2 0x77ded830 in CredWriteA () from /cygdrive/c/WINDOWS/system32/advapi32.dll #3 0x77dd8d9b in DestroyPrivateObjectSecurity () from /cygdrive/c/WINDOWS/system32/advapi32.dll #4 0x in ?? () from (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2016.0xb60] 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll (gdb) c Continuing. warning: HEAP[Apache.exe]: warning: Invalid Address specified to RtlFreeHeap( 05F3, 01220650 ) Program received signal SIGTRAP, Trace/breakpoint trap. 0x77f76491 in ntdll!DbgUiConnectToDbg () from ntdll.dll (gdb) bt #0 0x77f76491 in ntdll!DbgUiConnectToDbg () from ntdll.dll #1 0x77fa1699 in ntdll!RtlpNtMakeTemporaryKey () from ntdll.dll #2 0x77f87c1b in ntdll!RtlCheckRegistryKey () from ntdll.dll #3 0x05f3 in ?? () #4 0x01220650 in ?? () #5 0x053ef980 in ?? () #6 0x77fa2400 in ntdll!RtlpNtMakeTemporaryKey () from ntdll.dll #7 0x05f3 in ?? () #8 0x01220648 in ?? () #9 0x77fb152c in wcstombs () from ntdll.dll Previous frame inner to this frame (corrupt stack?) (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2016.0x42c] 0x10003383 in crc32_table () (gdb) bt #0 0x10003383 in crc32_table () #1 0x0005 in ?? () #2 0x010631b4 in ?? () #3 0x0121b0c0 in ?? () #4 0xbaadf00d in ?? () #5 0xbaadf00d in ?? () #6 0xbaadf00d in ?? () #7 0xbaadf00d in ?? () #8 0xbaadf00d in ?? () #9 0xbaadf00d in ?? () #10 0xbaadf00d in ?? () #11 0xbaadf00d in ?? () #12 0xbaadf00d in ?? () #13 0xbaadf00d in ?? () #14 0xbaadf00d in ?? () #15 0xbaadf00d in ?? () #16 0xbaadf00d in ?? () #17 0xbaadf00d in ?? () #18 0xbaadf00d in ?? () #19 0xbaadf00d in ?? () #20 0x01214830 in ?? () #21 0x6eed0cbf in [EMAIL PROTECTED] () from /cygdrive/d/Program Files/Apache Group/Apache2/bin/libapr.dll
#34883 [Fbk->Opn]: crash when accessing superglobals
ID: 34883 User updated by: sveta at microbecal dot com Reported By: sveta at microbecal dot com -Status: Feedback +Status: Open Bug Type: Apache2 related Operating System: Windows XP SP1 PHP Version: 5CVS-2005-10-16 (snap) New Comment: I did it. Simple I have noticed what with some modules backtrace contains more info and localized they. Previous Comments: [2005-10-19 00:15:35] [EMAIL PROTECTED] Cool. I was asking you to remove all modules and you loaded runkit and xdebug instead.. Now *please* try it without *ANY* additional modules. Just PHP itself. [2005-10-19 00:06:49] sveta at microbecal dot com Same result after renaming php.ini. I experience with different sets of modules. Above stack with usefull information was created with option: extension=php_runkit.dll Below stack with option: extension=php_xdebug.dll --- (gdb) run -X Starting program: /cygdrive/d/Program Files/Apache Group/Apache2/bin/Apache.exe -X ---Type to continue, or q to quit--- Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2016.0x42c] 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll (gdb) c Continuing. warning: HEAP[Apache.exe]: warning: Invalid Address specified to RtlFreeHeap( 05D7, 01220650 ) Program received signal SIGTRAP, Trace/breakpoint trap. 0x77f76491 in ntdll!DbgUiConnectToDbg () from ntdll.dll (gdb) bt #0 0x77f76491 in ntdll!DbgUiConnectToDbg () from ntdll.dll #1 0x77fa1699 in ntdll!RtlpNtMakeTemporaryKey () from ntdll.dll #2 0x77f87c1b in ntdll!RtlCheckRegistryKey () from ntdll.dll #3 0x05d7 in ?? () #4 0x01220650 in ?? () #5 0x0582f980 in ?? () #6 0x77fa2400 in ntdll!RtlpNtMakeTemporaryKey () from ntdll.dll #7 0x05d7 in ?? () #8 0x01220648 in ?? () #9 0x77fb152c in wcstombs () from ntdll.dll Previous frame inner to this frame (corrupt stack?) (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll (gdb) bt #0 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll #1 0x77dd8de5 in ElfNumberOfRecords () from /cygdrive/c/WINDOWS/system32/advapi32.dll #2 0x77ded830 in CredWriteA () from /cygdrive/c/WINDOWS/system32/advapi32.dll #3 0x77dd8d9b in DestroyPrivateObjectSecurity () from /cygdrive/c/WINDOWS/system32/advapi32.dll #4 0x in ?? () from (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2016.0xb60] 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll (gdb) c Continuing. warning: HEAP[Apache.exe]: warning: Invalid Address specified to RtlFreeHeap( 05F3, 01220650 ) Program received signal SIGTRAP, Trace/breakpoint trap. 0x77f76491 in ntdll!DbgUiConnectToDbg () from ntdll.dll (gdb) bt #0 0x77f76491 in ntdll!DbgUiConnectToDbg () from ntdll.dll #1 0x77fa1699 in ntdll!RtlpNtMakeTemporaryKey () from ntdll.dll #2 0x77f87c1b in ntdll!RtlCheckRegistryKey () from ntdll.dll #3 0x05f3 in ?? () #4 0x01220650 in ?? () #5 0x053ef980 in ?? () #6 0x77fa2400 in ntdll!RtlpNtMakeTemporaryKey () from ntdll.dll #7 0x05f3 in ?? () #8 0x01220648 in ?? () #9 0x77fb152c in wcstombs () from ntdll.dll Previous frame inner to this frame (corrupt stack?) (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2016.0x42c] 0x10003383 in crc32_table () (gdb) bt #0 0x10003383 in crc32_table () #1 0x0005 in ?? () #2 0x010631b4 in ?? () #3 0x0121b0c0 in ?? () #4 0xbaadf00d in ?? () #5 0xbaadf00d in ?? () #6 0xbaadf00d in ?? () #7 0xbaadf00d in ?? () #8 0xbaadf00d in ?? () #9 0xbaadf00d in ?? () #10 0xbaadf00d in ?? () #11 0xbaadf00d in ?? () #12 0xbaadf00d in ?? () #13 0xbaadf00d in ?? () #14 0xbaadf00d in ?? () #15 0xbaadf00d in ?? () #16 0xbaadf00d in ?? () #17 0xbaadf00d in ?? () #18 0xbaadf00d in ?? () #19 0xbaadf00d in ?? () #20 0x01214830 in ?? () #21 0x6eed0cbf in [EMAIL PROTECTED] () from /cygdrive/d/Program Files/Apache Group/Apache2/bin/libapr.dll #22 0x01214830 in ?? () #23 0x0008 in ?? () #24 0x0004 in ?? () #25 0x0002 in ?? () #26 0x0002 in ?? () #27 0x6eed0c8e in [EMAIL PROTECTED] () from /cygdrive/d/Program Files/Apache Group/Apache2/bin/libapr.dll #28 0x009e36c8 in ?? () #29 0x0121b0c0 in ?? () #30 0x in ?? () from (gdb) c Continuing. Program exited with code 0200. [2005-10-18 23:48:04] [EMAIL PROTECTED] Sveta, please rename your php.ini to something else to be sure you're not loading any modules and restart the web-server. And try to reproduce it again. [2005-10-18 23:38:16] sveta at micro
#34883 [Fbk->Opn]: crash when accessing superglobals
ID: 34883 User updated by: sveta at microbecal dot com Reported By: sveta at microbecal dot com -Status: Feedback +Status: Open Bug Type: Apache2 related Operating System: Windows XP SP1 PHP Version: 5CVS-2005-10-16 (snap) New Comment: Same result after renaming php.ini. I experience with different sets of modules. Above stack with usefull information was created with option: extension=php_runkit.dll Below stack with option: extension=php_xdebug.dll --- (gdb) run -X Starting program: /cygdrive/d/Program Files/Apache Group/Apache2/bin/Apache.exe -X ---Type to continue, or q to quit--- Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2016.0x42c] 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll (gdb) c Continuing. warning: HEAP[Apache.exe]: warning: Invalid Address specified to RtlFreeHeap( 05D7, 01220650 ) Program received signal SIGTRAP, Trace/breakpoint trap. 0x77f76491 in ntdll!DbgUiConnectToDbg () from ntdll.dll (gdb) bt #0 0x77f76491 in ntdll!DbgUiConnectToDbg () from ntdll.dll #1 0x77fa1699 in ntdll!RtlpNtMakeTemporaryKey () from ntdll.dll #2 0x77f87c1b in ntdll!RtlCheckRegistryKey () from ntdll.dll #3 0x05d7 in ?? () #4 0x01220650 in ?? () #5 0x0582f980 in ?? () #6 0x77fa2400 in ntdll!RtlpNtMakeTemporaryKey () from ntdll.dll #7 0x05d7 in ?? () #8 0x01220648 in ?? () #9 0x77fb152c in wcstombs () from ntdll.dll Previous frame inner to this frame (corrupt stack?) (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll (gdb) bt #0 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll #1 0x77dd8de5 in ElfNumberOfRecords () from /cygdrive/c/WINDOWS/system32/advapi32.dll #2 0x77ded830 in CredWriteA () from /cygdrive/c/WINDOWS/system32/advapi32.dll #3 0x77dd8d9b in DestroyPrivateObjectSecurity () from /cygdrive/c/WINDOWS/system32/advapi32.dll #4 0x in ?? () from (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2016.0xb60] 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll (gdb) c Continuing. warning: HEAP[Apache.exe]: warning: Invalid Address specified to RtlFreeHeap( 05F3, 01220650 ) Program received signal SIGTRAP, Trace/breakpoint trap. 0x77f76491 in ntdll!DbgUiConnectToDbg () from ntdll.dll (gdb) bt #0 0x77f76491 in ntdll!DbgUiConnectToDbg () from ntdll.dll #1 0x77fa1699 in ntdll!RtlpNtMakeTemporaryKey () from ntdll.dll #2 0x77f87c1b in ntdll!RtlCheckRegistryKey () from ntdll.dll #3 0x05f3 in ?? () #4 0x01220650 in ?? () #5 0x053ef980 in ?? () #6 0x77fa2400 in ntdll!RtlpNtMakeTemporaryKey () from ntdll.dll #7 0x05f3 in ?? () #8 0x01220648 in ?? () #9 0x77fb152c in wcstombs () from ntdll.dll Previous frame inner to this frame (corrupt stack?) (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2016.0x42c] 0x10003383 in crc32_table () (gdb) bt #0 0x10003383 in crc32_table () #1 0x0005 in ?? () #2 0x010631b4 in ?? () #3 0x0121b0c0 in ?? () #4 0xbaadf00d in ?? () #5 0xbaadf00d in ?? () #6 0xbaadf00d in ?? () #7 0xbaadf00d in ?? () #8 0xbaadf00d in ?? () #9 0xbaadf00d in ?? () #10 0xbaadf00d in ?? () #11 0xbaadf00d in ?? () #12 0xbaadf00d in ?? () #13 0xbaadf00d in ?? () #14 0xbaadf00d in ?? () #15 0xbaadf00d in ?? () #16 0xbaadf00d in ?? () #17 0xbaadf00d in ?? () #18 0xbaadf00d in ?? () #19 0xbaadf00d in ?? () #20 0x01214830 in ?? () #21 0x6eed0cbf in [EMAIL PROTECTED] () from /cygdrive/d/Program Files/Apache Group/Apache2/bin/libapr.dll #22 0x01214830 in ?? () #23 0x0008 in ?? () #24 0x0004 in ?? () #25 0x0002 in ?? () #26 0x0002 in ?? () #27 0x6eed0c8e in [EMAIL PROTECTED] () from /cygdrive/d/Program Files/Apache Group/Apache2/bin/libapr.dll #28 0x009e36c8 in ?? () #29 0x0121b0c0 in ?? () #30 0x in ?? () from (gdb) c Continuing. Program exited with code 0200. Previous Comments: [2005-10-18 23:48:04] [EMAIL PROTECTED] Sveta, please rename your php.ini to something else to be sure you're not loading any modules and restart the web-server. And try to reproduce it again. [2005-10-18 23:38:16] sveta at microbecal dot com Same result. Same stack with php.ini-recommended. >From Windows system alert: --- szAppName : Apache.exe szAppVer : 2.0.54.0 szModName : php5apache2.dll szModVer : 5.1.0.0 offset : 3383 --- With my custom php.ini stack is other: --- (gdb) run -X Starting program: /cygdrive/d/Program Files/Apache Group/Apache2/bin/Apache.exe -X ---Type to continue, or q to quit--- ---Type to continue, or q to quit--- Program received signal SIGSEGV, Segmentation fault. [Swit
#34883 [Fbk->Opn]: crash when accessing superglobals
ID: 34883 User updated by: sveta at microbecal dot com Reported By: sveta at microbecal dot com -Status: Feedback +Status: Open Bug Type: Apache2 related Operating System: Windows XP SP1 PHP Version: 5CVS-2005-10-16 (snap) New Comment: Same result. Same stack with php.ini-recommended. >From Windows system alert: --- szAppName : Apache.exe szAppVer : 2.0.54.0 szModName : php5apache2.dll szModVer : 5.1.0.0 offset : 3383 --- With my custom php.ini stack is other: --- (gdb) run -X Starting program: /cygdrive/d/Program Files/Apache Group/Apache2/bin/Apache.exe -X ---Type to continue, or q to quit--- ---Type to continue, or q to quit--- Program received signal SIGSEGV, Segmentation fault. [Switching to thread 3840.0xfe8] 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll (gdb) bt #0 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll #1 0x77dd8de5 in ElfNumberOfRecords () from /cygdrive/c/WINDOWS/system32/advapi32.dll #2 0x77ded830 in CredWriteA () from /cygdrive/c/WINDOWS/system32/advapi32.dll #3 0x77dd8d9b in DestroyPrivateObjectSecurity () from /cygdrive/c/WINDOWS/system32/advapi32.dll #4 0x in ?? () from (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. 0x00aa9b95 in zend_hash_apply () from /cygdrive/d/Program Files/PHP4/php5ts.dll (gdb) bt #0 0x00aa9b95 in zend_hash_apply () from /cygdrive/d/Program Files/PHP4/php5ts.dll #1 0x01d71475 in php_runkit!get_module () from /cygdrive/d/Program Files/PHP4/ext/php_runkit.dll #2 0xbaadf00d in ?? () #3 0x01d726c0 in php_runkit!get_module () from /cygdrive/d/Program Files/PHP4/ext/php_runkit.dll #4 0x01fb6180 in ?? () #5 0x00e0e800 in ?? () #6 0x010f7600 in ?? () #7 0x00a16cc0 in zend_get_module_started () from /cygdrive/d/Program Files/PHP4/php5ts.dll #8 0x01fb6180 in ?? () #9 0x00a16cdc in zend_get_module_started () from /cygdrive/d/Program Files/PHP4/php5ts.dll #10 0x0001 in ?? () #11 0x002e in ?? () #12 0x01fb6180 in ?? () #13 0x00aa9bd2 in zend_hash_apply () from /cygdrive/d/Program Files/PHP4/php5ts.dll #14 0x01fb6180 in ?? () #15 0x05f7fb54 in ?? () #16 0x01fb6180 in ?? () #17 0x0202e1d0 in ?? () #18 0x05f7fb50 in ?? () #19 0x00a1246d in php5ts!get_active_class_name () from /cygdrive/d/Program Files/PHP4/php5ts.dll #20 0x00e0e800 in ?? () #21 0x00a16cc0 in zend_get_module_started () from /cygdrive/d/Program Files/PHP4/php5ts.dll #22 0x01fb6180 in ?? () #23 0x0202e1d0 in ?? () #24 0x05f7fcec in ?? () #25 0x01fb6180 in ?? () #26 0xbaadf00d in ?? () #27 0xbaadf00d in ?? () #28 0xbaadf00d in ?? () #29 0xbaadf00d in ?? () #30 0xbaadf00d in ?? () #31 0xbaadf00d in ?? () #32 0xbaadf00d in ?? () #33 0xbaadf00d in ?? () #34 0xbaadf00d in ?? () #35 0xbaadf00d in ?? () #36 0xbaadf00d in ?? () #37 0xbaadf00d in ?? () #38 0xbaadf00d in ?? () #39 0xbaadf00d in ?? () #40 0xbaadf00d in ?? () #41 0xbaadf00d in ?? () #42 0x0002e1d0 in ?? () #43 0x05f7fdfc in ?? () #44 0x00ad1849 in php_register_variable_safe () Previous frame inner to this frame (corrupt stack?) Previous Comments: [2005-10-18 14:42:41] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Please try next Win32 snapshot. [2005-10-18 13:20:49] sveta at microbecal dot com I can reproduce crash with php.ini-recommended. But I can not reproduce backtrace "that starts somewhere in PHP". [2005-10-18 13:07:25] [EMAIL PROTECTED] Are you able to reproduce it without php_mime_magic.dll loaded ? [2005-10-18 12:45:13] sveta at microbecal dot com PHP Version 5.1.0RC4-dev Build Date Oct 18 2005 04:22:53 Sorry, not clean php.ini To recreate somitimes I am reloading page 2-3 times after server restarting. (gdb) run -X Starting program: /cygdrive/d/Program Files/Apache Group/Apache2/bin/Apache.exe -X ---Type to continue, or q to quit--- ---Type to continue, or q to quit--- ---Type to continue, or q to quit--- ---Type to continue, or q to quit--- Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2088.0x924] 0x00b7d22f in php_info_print_hr () (gdb) bt #0 0x00b7d22f in php_info_print_hr () #1 0x01fa9e90 in ?? () #2 0x05e7f8dc in ?? () #3 0x01a31107 in php_mime_magic!get_module () from /cygdrive/d/Program Files/PHP4/ext/php_mime_magic.dll #4 0x0002 in ?? () #5 0x01a34338 in php_mime_magic!get_module () #6 0xbaadf00d in ?? () #7 0x00b7cb3e in php_output_startup () #8 0x0208b590 in ?? () #9 0x01fa9e90 in ?? () #10 0x0208b548 in ?? () #11
#34883 [Fbk->Opn]: crash when accessing superglobals
ID: 34883 User updated by: sveta at microbecal dot com Reported By: sveta at microbecal dot com -Status: Feedback +Status: Open Bug Type: Apache2 related Operating System: Windows XP SP1 PHP Version: 5CVS-2005-10-16 (snap) New Comment: I can reproduce crash with php.ini-recommended. But I can not reproduce backtrace "that starts somewhere in PHP". Previous Comments: [2005-10-18 13:07:25] [EMAIL PROTECTED] Are you able to reproduce it without php_mime_magic.dll loaded ? [2005-10-18 12:45:13] sveta at microbecal dot com PHP Version 5.1.0RC4-dev Build Date Oct 18 2005 04:22:53 Sorry, not clean php.ini To recreate somitimes I am reloading page 2-3 times after server restarting. (gdb) run -X Starting program: /cygdrive/d/Program Files/Apache Group/Apache2/bin/Apache.exe -X ---Type to continue, or q to quit--- ---Type to continue, or q to quit--- ---Type to continue, or q to quit--- ---Type to continue, or q to quit--- Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2088.0x924] 0x00b7d22f in php_info_print_hr () (gdb) bt #0 0x00b7d22f in php_info_print_hr () #1 0x01fa9e90 in ?? () #2 0x05e7f8dc in ?? () #3 0x01a31107 in php_mime_magic!get_module () from /cygdrive/d/Program Files/PHP4/ext/php_mime_magic.dll #4 0x0002 in ?? () #5 0x01a34338 in php_mime_magic!get_module () #6 0xbaadf00d in ?? () #7 0x00b7cb3e in php_output_startup () #8 0x0208b590 in ?? () #9 0x01fa9e90 in ?? () #10 0x0208b548 in ?? () #11 0x00aa9c45 in zend_hash_apply_with_argument () from /cygdrive/d/Program Files/PHP4/php5ts.dll #12 0x05e7f974 in ?? () #13 0x01fa9e90 in ?? () #14 0x01fa9e90 in ?? () #15 0x00ff in ?? () #16 0x0634ad00 in ?? () #17 0x00c8c49f in php5ts!lex_scan () #18 0x05e7f9a0 in ?? () #19 0x00b7cb00 in php_output_startup () #20 0x05e7f974 in ?? () #21 0x01fa9e90 in ?? () ---Type to continue, or q to quit--- #22 0x in ?? () from [2005-10-18 12:18:27] [EMAIL PROTECTED] Works fine with Apache2 on linux. Any chance to get the real backtrace (that starts somewhere in PHP)? [2005-10-16 13:30:44] sveta at microbecal dot com Description: Apache 2 craches when I navigate to the page containing request to superglobals Reproduce code: --- Expected result: Correct work Actual result: -- Page with info information and next backtrace: (gdb) run -X The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /cygdrive/d/Program Files/Apache Group/Apache2/bin/Apache.exe -X ---Type to continue, or q to quit--- Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2276.0xee0] 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll (gdb) bt #0 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll #1 0x77dd8de5 in ElfNumberOfRecords () from /cygdrive/c/WINDOWS/system32/advapi32.dll #2 0x77ded830 in CredWriteA () from /cygdrive/c/WINDOWS/system32/advapi32.dll #3 0x77dd8d9b in DestroyPrivateObjectSecurity () from /cygdrive/c/WINDOWS/system32/advapi32.dll #4 0x in ?? () from (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll (gdb) bt #0 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll #1 0x77dd8de5 in ElfNumberOfRecords () from /cygdrive/c/WINDOWS/system32/advapi32.dll #2 0x77ded830 in CredWriteA () from /cygdrive/c/WINDOWS/system32/advapi32.dll #3 0x77dd8d9b in DestroyPrivateObjectSecurity () from /cygdrive/c/WINDOWS/system32/advapi32.dll #4 0x in ?? () from (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2276.0xa18] 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll (gdb) bt #0 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll #1 0x77dd8de5 in ElfNumberOfRecords () from /cygdrive/c/WINDOWS/system32/advapi32.dll #2 0x77ded830 in CredWriteA () from /cygdrive/c/WINDOWS/system32/advapi32.dll #3 0x77dd8d9b in DestroyPrivateObjectSecurity () from /cygdrive/c/WINDOWS/system32/advapi32.dll #4 0x in ?? () from (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2276.0xee0] 0x10003383 in TurnOnPreHandle () (gdb) bt #0 0x10003383 in TurnOnPreHandle () #1 0x0005 in ?? () #2 0x010631b4 in ?? () #3 0x011c2ad8 in ?? () #4 0xbaadf00d in ?? () #5 0xbaadf00d in ?? () #6 0xbaadf00d in ?? () #7 0xbaadf00d in ?? () #8 0xbaadf00d i
#34883 [Fbk->Opn]: crash when accessing superglobals
ID: 34883 User updated by: sveta at microbecal dot com Reported By: sveta at microbecal dot com -Status: Feedback +Status: Open Bug Type: Apache2 related Operating System: Windows XP SP1 PHP Version: 5CVS-2005-10-16 (snap) New Comment: PHP Version 5.1.0RC4-dev Build Date Oct 18 2005 04:22:53 Sorry, not clean php.ini To recreate somitimes I am reloading page 2-3 times after server restarting. (gdb) run -X Starting program: /cygdrive/d/Program Files/Apache Group/Apache2/bin/Apache.exe -X ---Type to continue, or q to quit--- ---Type to continue, or q to quit--- ---Type to continue, or q to quit--- ---Type to continue, or q to quit--- Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2088.0x924] 0x00b7d22f in php_info_print_hr () (gdb) bt #0 0x00b7d22f in php_info_print_hr () #1 0x01fa9e90 in ?? () #2 0x05e7f8dc in ?? () #3 0x01a31107 in php_mime_magic!get_module () from /cygdrive/d/Program Files/PHP4/ext/php_mime_magic.dll #4 0x0002 in ?? () #5 0x01a34338 in php_mime_magic!get_module () #6 0xbaadf00d in ?? () #7 0x00b7cb3e in php_output_startup () #8 0x0208b590 in ?? () #9 0x01fa9e90 in ?? () #10 0x0208b548 in ?? () #11 0x00aa9c45 in zend_hash_apply_with_argument () from /cygdrive/d/Program Files/PHP4/php5ts.dll #12 0x05e7f974 in ?? () #13 0x01fa9e90 in ?? () #14 0x01fa9e90 in ?? () #15 0x00ff in ?? () #16 0x0634ad00 in ?? () #17 0x00c8c49f in php5ts!lex_scan () #18 0x05e7f9a0 in ?? () #19 0x00b7cb00 in php_output_startup () #20 0x05e7f974 in ?? () #21 0x01fa9e90 in ?? () ---Type to continue, or q to quit--- #22 0x in ?? () from Previous Comments: [2005-10-18 12:18:27] [EMAIL PROTECTED] Works fine with Apache2 on linux. Any chance to get the real backtrace (that starts somewhere in PHP)? [2005-10-16 13:30:44] sveta at microbecal dot com Description: Apache 2 craches when I navigate to the page containing request to superglobals Reproduce code: --- Expected result: Correct work Actual result: -- Page with info information and next backtrace: (gdb) run -X The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /cygdrive/d/Program Files/Apache Group/Apache2/bin/Apache.exe -X ---Type to continue, or q to quit--- Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2276.0xee0] 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll (gdb) bt #0 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll #1 0x77dd8de5 in ElfNumberOfRecords () from /cygdrive/c/WINDOWS/system32/advapi32.dll #2 0x77ded830 in CredWriteA () from /cygdrive/c/WINDOWS/system32/advapi32.dll #3 0x77dd8d9b in DestroyPrivateObjectSecurity () from /cygdrive/c/WINDOWS/system32/advapi32.dll #4 0x in ?? () from (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll (gdb) bt #0 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll #1 0x77dd8de5 in ElfNumberOfRecords () from /cygdrive/c/WINDOWS/system32/advapi32.dll #2 0x77ded830 in CredWriteA () from /cygdrive/c/WINDOWS/system32/advapi32.dll #3 0x77dd8d9b in DestroyPrivateObjectSecurity () from /cygdrive/c/WINDOWS/system32/advapi32.dll #4 0x in ?? () from (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2276.0xa18] 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll (gdb) bt #0 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll #1 0x77dd8de5 in ElfNumberOfRecords () from /cygdrive/c/WINDOWS/system32/advapi32.dll #2 0x77ded830 in CredWriteA () from /cygdrive/c/WINDOWS/system32/advapi32.dll #3 0x77dd8d9b in DestroyPrivateObjectSecurity () from /cygdrive/c/WINDOWS/system32/advapi32.dll #4 0x in ?? () from (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2276.0xee0] 0x10003383 in TurnOnPreHandle () (gdb) bt #0 0x10003383 in TurnOnPreHandle () #1 0x0005 in ?? () #2 0x010631b4 in ?? () #3 0x011c2ad8 in ?? () #4 0xbaadf00d in ?? () #5 0xbaadf00d in ?? () #6 0xbaadf00d in ?? () #7 0xbaadf00d in ?? () #8 0xbaadf00d in ?? () #9 0xbaadf00d in ?? () #10 0xbaadf00d in ?? () #11 0xbaadf00d in ?? () #12 0xbaadf00d in ?? () #13 0xbaadf00d in ?? () #14 0xbaadf00d in ?? () #15 0xbaadf00d in ?? () #16 0xbaadf00d in ?? () #17 0xbaadf00d in ?? () #18 0xbaadf00d in ?? () #19 0xbaadf00d in ?? () #20 0x011bc248 in ?? () #21 0x6eed0cbf in [EMAIL PROTECTED] () from /cygdrive/d/Program Files/Apache Group/Apache2/bin/libapr.dll #22 0x011bc248 in ?? () #23
#34883 [NEW]: Apache 2 craches
From: sveta at microbecal dot com Operating system: Windows XP SP1 PHP version: 5CVS-2005-10-16 (snap) PHP Bug Type: Apache2 related Bug description: Apache 2 craches Description: Apache 2 craches when I navigate to the page containing request to superglobals Reproduce code: --- Expected result: Correct work Actual result: -- Page with info information and next backtrace: (gdb) run -X The program being debugged has been started already. Start it from the beginning? (y or n) y Starting program: /cygdrive/d/Program Files/Apache Group/Apache2/bin/Apache.exe -X ---Type to continue, or q to quit--- Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2276.0xee0] 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll (gdb) bt #0 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll #1 0x77dd8de5 in ElfNumberOfRecords () from /cygdrive/c/WINDOWS/system32/advapi32.dll #2 0x77ded830 in CredWriteA () from /cygdrive/c/WINDOWS/system32/advapi32.dll #3 0x77dd8d9b in DestroyPrivateObjectSecurity () from /cygdrive/c/WINDOWS/system32/advapi32.dll #4 0x in ?? () from (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll (gdb) bt #0 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll #1 0x77dd8de5 in ElfNumberOfRecords () from /cygdrive/c/WINDOWS/system32/advapi32.dll #2 0x77ded830 in CredWriteA () from /cygdrive/c/WINDOWS/system32/advapi32.dll #3 0x77dd8d9b in DestroyPrivateObjectSecurity () from /cygdrive/c/WINDOWS/system32/advapi32.dll #4 0x in ?? () from (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2276.0xa18] 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll (gdb) bt #0 0x7801b674 in TowerExplode () from /cygdrive/c/WINDOWS/system32/rpcrt4.dll #1 0x77dd8de5 in ElfNumberOfRecords () from /cygdrive/c/WINDOWS/system32/advapi32.dll #2 0x77ded830 in CredWriteA () from /cygdrive/c/WINDOWS/system32/advapi32.dll #3 0x77dd8d9b in DestroyPrivateObjectSecurity () from /cygdrive/c/WINDOWS/system32/advapi32.dll #4 0x in ?? () from (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. [Switching to thread 2276.0xee0] 0x10003383 in TurnOnPreHandle () (gdb) bt #0 0x10003383 in TurnOnPreHandle () #1 0x0005 in ?? () #2 0x010631b4 in ?? () #3 0x011c2ad8 in ?? () #4 0xbaadf00d in ?? () #5 0xbaadf00d in ?? () #6 0xbaadf00d in ?? () #7 0xbaadf00d in ?? () #8 0xbaadf00d in ?? () #9 0xbaadf00d in ?? () #10 0xbaadf00d in ?? () #11 0xbaadf00d in ?? () #12 0xbaadf00d in ?? () #13 0xbaadf00d in ?? () #14 0xbaadf00d in ?? () #15 0xbaadf00d in ?? () #16 0xbaadf00d in ?? () #17 0xbaadf00d in ?? () #18 0xbaadf00d in ?? () #19 0xbaadf00d in ?? () #20 0x011bc248 in ?? () #21 0x6eed0cbf in [EMAIL PROTECTED] () from /cygdrive/d/Program Files/Apache Group/Apache2/bin/libapr.dll #22 0x011bc248 in ?? () #23 0x0008 in ?? () #24 0x0004 in ?? () #25 0x0002 in ?? () #26 0x0002 in ?? () #27 0x6eed0c8e in [EMAIL PROTECTED] () from /cygdrive/d/Program Files/Apache Group/Apache2/bin/libapr.dll #28 0x009e36c8 in ?? () #29 0x011c2ad8 in ?? () #30 0x in ?? () from (gdb) -- Edit bug report at http://bugs.php.net/?id=34883&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34883&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34883&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34883&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=34883&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=34883&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34883&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34883&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34883&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34883&r=support Expected behavior: http://bugs.php.net/fix.php?id=34883&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34883&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34883&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=34883&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34883&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=34883&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34883&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34883&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34883&r=float No Zend Extensions:
#33902 [NEW]: Type hinting incorrect behavior
From: sveta at microbecal dot com Operating system: FreeBSD, WindowsXP PHP version: 5.0.4 PHP Bug Type: Scripting Engine problem Bug description: Type hinting incorrect behavior Description: In my example type hinting in method foo() in child class is incompatible with same method in parent class. But it still working with E_STRICT. Reproduce code: --- error_reporting(E_ALL | E_STRICT); class A {} abstract class B { protected $bar; public function foo($bar) { $this->bar = $bar; echo "some\n"; return $this; } } class C extends B { public function foo(A $bar) { $this->bar = $bar; echo "not expected\n"; return $this; } } $c = new C; $c->foo(new A); Expected result: Fatal error: Declaration of C::foo() must be compatible with that of B::foo() Actual result: -- not expected -- Edit bug report at http://bugs.php.net/?id=33902&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33902&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33902&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33902&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=33902&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=33902&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33902&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33902&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33902&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33902&r=support Expected behavior: http://bugs.php.net/fix.php?id=33902&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33902&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33902&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=33902&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33902&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=33902&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33902&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33902&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33902&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33902&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33902&r=mysqlcfg
#31416 [Bgs]: array_walk_recursive() strange behavior
ID: 31416 User updated by: sveta at microbecal dot com Reported By: sveta at microbecal dot com Status: Bogus Bug Type: Arrays related Operating System: Win XP PHP Version: 5CVS-2005-01-05 (dev) New Comment: In cvs.php.net are official CVS snapshots? Or I *must* use precompiled version instead of sources? I am sorry for this question, but may be next time I'll find another bogus? Previous Comments: [2005-01-05 22:29:49] [EMAIL PROTECTED] >How to speak in English: "doshlo"? "got it", probably. >I've just loaded correct array.c file from PHP 5_0_3 >branch, looked into it and a bit changed array.c from my >PHP 5_1 branch. right, that was the fix. so, you just had an outdated file, right? next time plz use official CVS snapshots. -------- [2005-01-05 21:54:05] sveta at microbecal dot com How to speak in English: "doshlo"? I've just loaded correct array.c file from PHP 5_0_3 branch, looked into it and a bit changed array.c from my PHP 5_1 branch Now it works fine. Thank You! (diff :) --- array.c.back2004-11-02 01:29:00.0 +0300 +++ array.c 2005-01-05 23:39:52.0 +0300 @@ -1157,6 +1157,8 @@ argc = ZEND_NUM_ARGS(); old_walk_func_name = BG(array_walk_func_name); + BG(array_walk_fci_cache) = empty_fcall_info_cache; + if (argc < 2 || argc > 3 || zend_get_parameters_ex(argc, &array, &BG(array_walk_func_name), &userdata) == FAILURE) { BG(array_walk_func_name) = old_walk_func_name; ) ---------------- [2005-01-05 19:42:22] sveta at microbecal dot com I've just re-checkout php-src tree and recompile php. Same result. >Did you remove old php5ts.dll ? Yes, I did >How exactly did you run this code? pushd path/to/php php path/to/code.php >What php.exe -v says? PHP 5.1.0-dev (cli) (built: Jan 5 2005 21:31:32) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.1.0-dev, Copyright (c) 1998-2004 Zend Technologies >And could you plz try it under some non-MS OS ? On FreeBSD and PHP 5.0.3 all work fine (hoster's machine) [2005-01-05 16:02:07] [EMAIL PROTECTED] Did you remove old php5ts.dll ? How exactly did you run this code? What php.exe -v says? And could you plz try it under some non-MS OS ? ---------------- [2005-01-05 14:21:46] sveta at microbecal dot com Yes, I load sources this night and built half hour ago May be CVS issue? Which file check? The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/31416 -- Edit this bug report at http://bugs.php.net/?id=31416&edit=1
#31416 [Opn]: array_walk_recursive() strange behavior
ID: 31416 User updated by: sveta at microbecal dot com Reported By: sveta at microbecal dot com Status: Open Bug Type: Arrays related Operating System: Win XP PHP Version: 5CVS-2005-01-05 (dev) New Comment: How to speak in English: "doshlo"? I've just loaded correct array.c file from PHP 5_0_3 branch, looked into it and a bit changed array.c from my PHP 5_1 branch Now it works fine. Thank You! (diff :) --- array.c.back2004-11-02 01:29:00.0 +0300 +++ array.c 2005-01-05 23:39:52.0 +0300 @@ -1157,6 +1157,8 @@ argc = ZEND_NUM_ARGS(); old_walk_func_name = BG(array_walk_func_name); + BG(array_walk_fci_cache) = empty_fcall_info_cache; + if (argc < 2 || argc > 3 || zend_get_parameters_ex(argc, &array, &BG(array_walk_func_name), &userdata) == FAILURE) { BG(array_walk_func_name) = old_walk_func_name; ) Previous Comments: -------- [2005-01-05 19:42:22] sveta at microbecal dot com I've just re-checkout php-src tree and recompile php. Same result. >Did you remove old php5ts.dll ? Yes, I did >How exactly did you run this code? pushd path/to/php php path/to/code.php >What php.exe -v says? PHP 5.1.0-dev (cli) (built: Jan 5 2005 21:31:32) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.1.0-dev, Copyright (c) 1998-2004 Zend Technologies >And could you plz try it under some non-MS OS ? On FreeBSD and PHP 5.0.3 all work fine (hoster's machine) [2005-01-05 16:02:07] [EMAIL PROTECTED] Did you remove old php5ts.dll ? How exactly did you run this code? What php.exe -v says? And could you plz try it under some non-MS OS ? ---------------- [2005-01-05 14:21:46] sveta at microbecal dot com Yes, I load sources this night and built half hour ago May be CVS issue? Which file check? [2005-01-05 14:05:38] [EMAIL PROTECTED] Are your sure you tried it with the latest CVS snapshot ? This issue was fixed about 3 weeks ago and I can't reproduce it with CVS snapshot of any branches under Linux. ---------------- [2005-01-05 13:51:58] sveta at microbecal dot com Description: When I call array_walk_recursive($array, array('Class', 'static_method1'), 'xxx'); and after it array_walk_recursive($array, array('Class', 'static_method2'), 'xxx'); static_method2 was not called, but called static_method1 Is it right behavior? Reproduce code: --- class Test { public static function rtrim(&$value, $key, $charlist = null) { if (is_string($value)) { if (null !== $charlist) { $value = rtrim($value, $charlist); } else { $value = rtrim($value); } } } public static function add_suffix(&$value, $key, $suffix) { $value = $value . $suffix; } } $array = array('a' => array('b', 'c'), 'b' => array('d', 'e'), ); array_walk_recursive($array, array('Test', 'add_suffix'), 'xxx'); var_dump($array); array_walk_recursive($array, array('Test', 'rtrim'), 'xxx'); var_dump($array); Expected result: array(2) { ["a"]=> array(2) { [0]=> string(4) "bxxx" [1]=> string(4) "cxxx" } ["b"]=> array(2) { [0]=> string(4) "dxxx" [1]=> string(4) "exxx" } } array(2) { ["a"]=> array(2) { [0]=> string(7) "b" [1]=> string(7) "c" } ["b"]=> array(2) { [0]=> string(7) "d" [1]=> string(7) "e" } } Actual result: -- array(2) { ["a"]=> array(2) { [0]=> string(4) "bxxx" [1]=> string(4) "cxxx" } ["b"]=> array(2) { [0]=> string(4) "dxxx" [1]=> string(4) "exxx" } } array(2) { ["a"]=> array(2) { [0]=> string(7) "bxx" [1]=> string(7) "cxx" } ["b"]=> array(2) { [0]=> string(7) "dxx" [1]=> string(7) "exx" } } -- Edit this bug report at http://bugs.php.net/?id=31416&edit=1
#31416 [Fbk->Opn]: array_walk_recursive() strange behavior
ID: 31416 User updated by: sveta at microbecal dot com Reported By: sveta at microbecal dot com -Status: Feedback +Status: Open Bug Type: Arrays related Operating System: Win XP PHP Version: 5CVS-2005-01-05 (dev) New Comment: I've just re-checkout php-src tree and recompile php. Same result. >Did you remove old php5ts.dll ? Yes, I did >How exactly did you run this code? pushd path/to/php php path/to/code.php >What php.exe -v says? PHP 5.1.0-dev (cli) (built: Jan 5 2005 21:31:32) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.1.0-dev, Copyright (c) 1998-2004 Zend Technologies >And could you plz try it under some non-MS OS ? On FreeBSD and PHP 5.0.3 all work fine (hoster's machine) Previous Comments: [2005-01-05 16:02:07] [EMAIL PROTECTED] Did you remove old php5ts.dll ? How exactly did you run this code? What php.exe -v says? And could you plz try it under some non-MS OS ? [2005-01-05 14:21:46] sveta at microbecal dot com Yes, I load sources this night and built half hour ago May be CVS issue? Which file check? [2005-01-05 14:05:38] [EMAIL PROTECTED] Are your sure you tried it with the latest CVS snapshot ? This issue was fixed about 3 weeks ago and I can't reproduce it with CVS snapshot of any branches under Linux. ---- [2005-01-05 13:51:58] sveta at microbecal dot com Description: When I call array_walk_recursive($array, array('Class', 'static_method1'), 'xxx'); and after it array_walk_recursive($array, array('Class', 'static_method2'), 'xxx'); static_method2 was not called, but called static_method1 Is it right behavior? Reproduce code: --- class Test { public static function rtrim(&$value, $key, $charlist = null) { if (is_string($value)) { if (null !== $charlist) { $value = rtrim($value, $charlist); } else { $value = rtrim($value); } } } public static function add_suffix(&$value, $key, $suffix) { $value = $value . $suffix; } } $array = array('a' => array('b', 'c'), 'b' => array('d', 'e'), ); array_walk_recursive($array, array('Test', 'add_suffix'), 'xxx'); var_dump($array); array_walk_recursive($array, array('Test', 'rtrim'), 'xxx'); var_dump($array); Expected result: array(2) { ["a"]=> array(2) { [0]=> string(4) "bxxx" [1]=> string(4) "cxxx" } ["b"]=> array(2) { [0]=> string(4) "dxxx" [1]=> string(4) "exxx" } } array(2) { ["a"]=> array(2) { [0]=> string(7) "b" [1]=> string(7) "c" } ["b"]=> array(2) { [0]=> string(7) "d" [1]=> string(7) "e" } } Actual result: -- array(2) { ["a"]=> array(2) { [0]=> string(4) "bxxx" [1]=> string(4) "cxxx" } ["b"]=> array(2) { [0]=> string(4) "dxxx" [1]=> string(4) "exxx" } } array(2) { ["a"]=> array(2) { [0]=> string(7) "bxx" [1]=> string(7) "cxx" } ["b"]=> array(2) { [0]=> string(7) "dxx" [1]=> string(7) "exx" } } -- Edit this bug report at http://bugs.php.net/?id=31416&edit=1
#31416 [Fbk->Opn]: array_walk_recursive() strange behavior
ID: 31416 User updated by: sveta at microbecal dot com Reported By: sveta at microbecal dot com -Status: Feedback +Status: Open Bug Type: Arrays related Operating System: Win XP PHP Version: 5CVS-2005-01-05 (dev) New Comment: Yes, I load sources this night and built half hour ago May be CVS issue? Which file check? Previous Comments: [2005-01-05 14:05:38] [EMAIL PROTECTED] Are your sure you tried it with the latest CVS snapshot ? This issue was fixed about 3 weeks ago and I can't reproduce it with CVS snapshot of any branches under Linux. [2005-01-05 13:51:58] sveta at microbecal dot com Description: When I call array_walk_recursive($array, array('Class', 'static_method1'), 'xxx'); and after it array_walk_recursive($array, array('Class', 'static_method2'), 'xxx'); static_method2 was not called, but called static_method1 Is it right behavior? Reproduce code: --- class Test { public static function rtrim(&$value, $key, $charlist = null) { if (is_string($value)) { if (null !== $charlist) { $value = rtrim($value, $charlist); } else { $value = rtrim($value); } } } public static function add_suffix(&$value, $key, $suffix) { $value = $value . $suffix; } } $array = array('a' => array('b', 'c'), 'b' => array('d', 'e'), ); array_walk_recursive($array, array('Test', 'add_suffix'), 'xxx'); var_dump($array); array_walk_recursive($array, array('Test', 'rtrim'), 'xxx'); var_dump($array); Expected result: array(2) { ["a"]=> array(2) { [0]=> string(4) "bxxx" [1]=> string(4) "cxxx" } ["b"]=> array(2) { [0]=> string(4) "dxxx" [1]=> string(4) "exxx" } } array(2) { ["a"]=> array(2) { [0]=> string(7) "b" [1]=> string(7) "c" } ["b"]=> array(2) { [0]=> string(7) "d" [1]=> string(7) "e" } } Actual result: -- array(2) { ["a"]=> array(2) { [0]=> string(4) "bxxx" [1]=> string(4) "cxxx" } ["b"]=> array(2) { [0]=> string(4) "dxxx" [1]=> string(4) "exxx" } } array(2) { ["a"]=> array(2) { [0]=> string(7) "bxx" [1]=> string(7) "cxx" } ["b"]=> array(2) { [0]=> string(7) "dxx" [1]=> string(7) "exx" } } -- Edit this bug report at http://bugs.php.net/?id=31416&edit=1
#31416 [NEW]: array_walk_recursive() strange behavior
From: sveta at microbecal dot com Operating system: Win XP PHP version: 5CVS-2005-01-05 (dev) PHP Bug Type: Arrays related Bug description: array_walk_recursive() strange behavior Description: When I call array_walk_recursive($array, array('Class', 'static_method1'), 'xxx'); and after it array_walk_recursive($array, array('Class', 'static_method2'), 'xxx'); static_method2 was not called, but called static_method1 Is it right behavior? Reproduce code: --- class Test { public static function rtrim(&$value, $key, $charlist = null) { if (is_string($value)) { if (null !== $charlist) { $value = rtrim($value, $charlist); } else { $value = rtrim($value); } } } public static function add_suffix(&$value, $key, $suffix) { $value = $value . $suffix; } } $array = array('a' => array('b', 'c'), 'b' => array('d', 'e'), ); array_walk_recursive($array, array('Test', 'add_suffix'), 'xxx'); var_dump($array); array_walk_recursive($array, array('Test', 'rtrim'), 'xxx'); var_dump($array); Expected result: array(2) { ["a"]=> array(2) { [0]=> string(4) "bxxx" [1]=> string(4) "cxxx" } ["b"]=> array(2) { [0]=> string(4) "dxxx" [1]=> string(4) "exxx" } } array(2) { ["a"]=> array(2) { [0]=> string(7) "b" [1]=> string(7) "c" } ["b"]=> array(2) { [0]=> string(7) "d" [1]=> string(7) "e" } } Actual result: -- array(2) { ["a"]=> array(2) { [0]=> string(4) "bxxx" [1]=> string(4) "cxxx" } ["b"]=> array(2) { [0]=> string(4) "dxxx" [1]=> string(4) "exxx" } } array(2) { ["a"]=> array(2) { [0]=> string(7) "bxx" [1]=> string(7) "cxx" } ["b"]=> array(2) { [0]=> string(7) "dxx" [1]=> string(7) "exx" } } -- Edit bug report at http://bugs.php.net/?id=31416&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31416&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31416&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31416&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=31416&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=31416&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31416&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31416&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31416&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31416&r=support Expected behavior: http://bugs.php.net/fix.php?id=31416&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31416&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31416&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=31416&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31416&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=31416&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31416&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31416&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31416&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31416&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31416&r=mysqlcfg
#30620 [Fbk->Csd]: I can't get attributes of nodes, when I use XML document with namespace definit
ID: 30620 User updated by: sveta at microbecal dot com Reported By: sveta at microbecal dot com -Status: Feedback +Status: Closed Bug Type: Scripting Engine problem Operating System: Windows XP PHP Version: 5CVS-2004-10-29 (dev) New Comment: I am sorry! I can't get backtrace from gdb: Debug Build no. In cygwin environment all work fine. My problem was solved just us I removed from php.ini file both (!) following lines: zend_extension_ts = "D:\Program Files\PHP\ext\php_xdebug.dll" zend_extension_ts = "D:\Program Files\PHP\ext\php_apd.dll" I don't use any other Zend extensions, which must have settings in php.ini file, so I don't know: it is only these extensions troubles or not. Files php_xdebug.dll and php_apd.dll I loaded from snaps.php.net 30.10.2004 Extensions xdebug and apd work, when above listed two lines are in php.ini! Note: usuall in my php.ini file line ;extension=php_threads.dll looks like this. When I remove ";" sign from this line, I see the error window. If it is not ok, I still ready to give you additional information: Windows system backtrace or try again to get gdb backtrace. But now I want to close this report. Thank you. Previous Comments: [2004-11-01 21:04:44] [EMAIL PROTECTED] Please follow the instructions here: http://bugs.php.net/how-to-report.php ------------ [2004-11-01 19:37:00] sveta at microbecal dot com Of course: I run it under Windows. So I think, it is specific Windows problem. Installation and system are same as then I used previous PHP versions (4.3.0, 4.3.3, 5.0.0) working without this screen. Additional info: Windows XP Professional SP1 with some updates PECL modules: all from snaps.php.net binary Windows modules But same result without any modules And let me know WHICH additional info are you need [2004-10-31 22:45:33] [EMAIL PROTECTED] I can't reproduce it under Linux. So, yes, I do think we need additional info. ---------------- [2004-10-30 23:23:12] sveta at microbecal dot com Dears! Look at the screenshot: http://www.microbecal.com/ftp_load/crazy_bug.gif Some strings from phpinfo() output: PHP Version 5.1.0-dev Build Date Oct 29 2004 12:14:55 PHP API 20031224 PHP Extension 20040718 Zend Extension 220040718 Debug Build no Thread Safety enabled If you are need in additional info, let me know which Thank you! [2004-10-30 13:22:26] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/30620 -- Edit this bug report at http://bugs.php.net/?id=30620&edit=1
#30620 [Fbk->Opn]: I can't get attributes of nodes, when I use XML document with namespace definit
ID: 30620 User updated by: sveta at microbecal dot com Reported By: sveta at microbecal dot com -Status: Feedback +Status: Open Bug Type: Scripting Engine problem Operating System: Windows XP PHP Version: 5CVS-2004-10-29 (dev) New Comment: Of course: I run it under Windows. So I think, it is specific Windows problem. Installation and system are same as then I used previous PHP versions (4.3.0, 4.3.3, 5.0.0) working without this screen. Additional info: Windows XP Professional SP1 with some updates PECL modules: all from snaps.php.net binary Windows modules But same result without any modules And let me know WHICH additional info are you need Previous Comments: [2004-10-31 22:45:33] [EMAIL PROTECTED] I can't reproduce it under Linux. So, yes, I do think we need additional info. [2004-10-30 23:23:12] sveta at microbecal dot com Dears! Look at the screenshot: http://www.microbecal.com/ftp_load/crazy_bug.gif Some strings from phpinfo() output: PHP Version 5.1.0-dev Build Date Oct 29 2004 12:14:55 PHP API 20031224 PHP Extension 20040718 Zend Extension 220040718 Debug Build no Thread Safety enabled If you are need in additional info, let me know which Thank you! [2004-10-30 13:22:26] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. [2004-10-30 10:46:09] sveta at microbecal dot com Description: Then I try to run php or php-win from command line, scripts work, but Windows displays system error window. But if I try to run php-cgi from command line, it works without error window. PHP 5.0.0 works without error window too. Reproduce code: --- php script.php php-win script.php Expected result: script output Actual result: -- script output and Windows system error window -- Edit this bug report at http://bugs.php.net/?id=30620&edit=1
#30620 [Fbk->Opn]: I can't get attributes of nodes, when I use XML document with namespace definit
ID: 30620 User updated by: sveta at microbecal dot com -Summary: the PHP Script Interpreter crashes Reported By: sveta at microbecal dot com -Status: Feedback +Status: Open Bug Type: Scripting Engine problem Operating System: Windows XP -PHP Version: 5CVS-2004-10-30 (dev) +PHP Version: 5CVS-2004-10-29 (dev) New Comment: Dears! Look at the screenshot: http://www.microbecal.com/ftp_load/crazy_bug.gif Some strings from phpinfo() output: PHP Version 5.1.0-dev Build Date Oct 29 2004 12:14:55 PHP API 20031224 PHP Extension 20040718 Zend Extension 220040718 Debug Build no Thread Safety enabled If you are need in additional info, let me know which Thank you! Previous Comments: [2004-10-30 13:22:26] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. [2004-10-30 10:46:09] sveta at microbecal dot com Description: Then I try to run php or php-win from command line, scripts work, but Windows displays system error window. But if I try to run php-cgi from command line, it works without error window. PHP 5.0.0 works without error window too. Reproduce code: --- php script.php php-win script.php Expected result: script output Actual result: -- script output and Windows system error window -- Edit this bug report at http://bugs.php.net/?id=30620&edit=1
#30617 [Bgs]: I can't get attributes of nodes, when I use XML document with namespace definit
ID: 30617 User updated by: sveta at microbecal dot com Reported By: sveta at microbecal dot com Status: Bogus Bug Type: SimpleXML related Operating System: Windows XP PHP Version: 5CVS-2004-10-29 (dev) New Comment: $xml_file = 'test.xml'; $xml = simplexml_load_file($xml_file); foreach($xml->Worksheet->attributes('urn:schemas-microsoft-com:office:spreadsheet') as $a => $b) { echo $a,'="',$b,"\"\n"; } Thank you for pointing me to my mistakes Previous Comments: [2004-10-30 00:56:57] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php You need to take care of the namespaces. ---------------- [2004-10-29 21:58:57] sveta at microbecal dot com Real result: nothing :) ---------------- [2004-10-29 21:55:53] sveta at microbecal dot com Description: When I use XML document with namespace definitions, I can't get attributes of nodes Reproduce code: --- $xml_file = 'test.xml'; $xml = simplexml_load_file($xml_file); foreach($xml->Worksheet->attributes() as $a => $b) { echo $a,'="',$b,"\"\n"; } test.xml: http://www.w3.org/TR/REC-html40";> Expected result: Name="English" -- Edit this bug report at http://bugs.php.net/?id=30617&edit=1
#30620 [NEW]: the PHP Script Interpreter crashes
From: sveta at microbecal dot com Operating system: Windows XP PHP version: 5CVS-2004-10-30 (dev) PHP Bug Type: Scripting Engine problem Bug description: the PHP Script Interpreter crashes Description: Then I try to run php or php-win from command line, scripts work, but Windows displays system error window. But if I try to run php-cgi from command line, it works without error window. PHP 5.0.0 works without error window too. Reproduce code: --- php script.php php-win script.php Expected result: script output Actual result: -- script output and Windows system error window -- Edit bug report at http://bugs.php.net/?id=30620&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30620&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30620&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30620&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=30620&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=30620&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30620&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30620&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30620&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30620&r=support Expected behavior: http://bugs.php.net/fix.php?id=30620&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30620&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30620&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=30620&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30620&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=30620&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30620&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30620&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30620&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30620&r=mysqlcfg
#30617 [Opn]: I can't get attributes of nodes, when I use XML document with namespace definit
ID: 30617 User updated by: sveta at microbecal dot com Reported By: sveta at microbecal dot com Status: Open Bug Type: SimpleXML related Operating System: Windows XP PHP Version: 5CVS-2004-10-29 (dev) New Comment: Real result: nothing :) Previous Comments: [2004-10-29 21:55:53] sveta at microbecal dot com Description: When I use XML document with namespace definitions, I can't get attributes of nodes Reproduce code: --- $xml_file = 'test.xml'; $xml = simplexml_load_file($xml_file); foreach($xml->Worksheet->attributes() as $a => $b) { echo $a,'="',$b,"\"\n"; } test.xml: http://www.w3.org/TR/REC-html40";> Expected result: Name="English" -- Edit this bug report at http://bugs.php.net/?id=30617&edit=1
#30617 [NEW]: I can't get attributes of nodes, when I use XML document with namespace definit
From: sveta at microbecal dot com Operating system: Windows XP PHP version: 5CVS-2004-10-29 (dev) PHP Bug Type: SimpleXML related Bug description: I can't get attributes of nodes, when I use XML document with namespace definit Description: When I use XML document with namespace definitions, I can't get attributes of nodes Reproduce code: --- $xml_file = 'test.xml'; $xml = simplexml_load_file($xml_file); foreach($xml->Worksheet->attributes() as $a => $b) { echo $a,'="',$b,"\"\n"; } test.xml: http://www.w3.org/TR/REC-html40";> Expected result: Name="English" -- Edit bug report at http://bugs.php.net/?id=30617&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30617&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30617&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30617&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=30617&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=30617&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30617&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30617&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30617&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30617&r=support Expected behavior: http://bugs.php.net/fix.php?id=30617&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30617&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30617&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=30617&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30617&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=30617&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30617&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30617&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30617&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30617&r=mysqlcfg