#34542 [NoF->Opn]: register_long_arrays causes $_SESSIONS vars to disappear
ID: 34542 User updated by: marcus dot uy at virtualthinking dot com Reported By: marcus dot uy at virtualthinking dot com -Status: No Feedback +Status: Open Bug Type: Session related Operating System: WinXP Pro PHP Version: 5.1.0RC4 New Comment: There have been test cases posted for this bug. Please review. Previous Comments: [2005-11-11 01:00:24] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". [2005-11-10 17:06:42] uap-php at cheeky dot org Hello, Having similar problems on 5.0.5. Basically all I can say is, if you have register_long_arrays=Off in your ini file, $_SESSION stuff does work, apart from when you iterate over it. Run the code below, with register_long_arrays=On and then with it off. The final result will be different. It seems that if you iterate over $_SESSION, the session_save handler does not get called and the session data is not saved. Hope this sheds some light on the problem, $value){ $_SESSION[$key]=''; } $step='empty session "search_test"'; $refresh=''; break; case 1: $step='nothing set in this step'; $refresh=''; break; default: $_SESSION['search_test'] = 'Hello!'; $step='set session "search_test" to "Hello"'; $refresh=''; } ?> Session Data:'; print_r($_SESSION); echo ''; ?> [2005-11-09 23:43:51] mail at lenzw dot de see Bug #33811 for a reproduction code. [2005-11-03 22:10:18] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with , is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. [2005-11-03 16:47:25] marcus dot uy at virtualthinking dot com Hi, I think somebody else has a related problem with a workable test case. 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/34542 -- Edit this bug report at http://bugs.php.net/?id=34542&edit=1
#35629 [NEW]: Apache2 [notice] child pid 12388 exit signal Segmentation fault (11)
From: marius at joy2share dot com Operating system: Linux (Fedora Core 4) PHP version: 5.1.1 PHP Bug Type: Reproducible crash Bug description: Apache2 [notice] child pid 12388 exit signal Segmentation fault (11) Description: [Sun Dec 11 05:03:00 2005] [notice] child pid 12388 exit signal Segmentation fault (11) The script below worked fine with PHP 5.0.5. I have : Apache/2.2.0 PHP/5.1.1 configured on my system. Reproduce code: --- http://www.amazon.com/exec/obidos/tg/detail/-/0131867164/ref=pd_sbs_b_2/002-9050535-1556846?%5Fencoding=UTF8&v=glance";; $f = file($link); ?> Expected result: $f will contain an array with that file. Actual result: -- [Sun Dec 11 05:03:00 2005] [notice] child pid 12388 exit signal Segmentation fault (11) And I get the file with the code mentioned above for download. The file is empty. -- Edit bug report at http://bugs.php.net/?id=35629&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35629&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35629&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35629&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35629&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35629&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35629&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=35629&r=needscript Try newer version:http://bugs.php.net/fix.php?id=35629&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35629&r=support Expected behavior:http://bugs.php.net/fix.php?id=35629&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35629&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35629&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35629&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35629&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35629&r=dst IIS Stability:http://bugs.php.net/fix.php?id=35629&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35629&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35629&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35629&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=35629&r=mysqlcfg
#35627 [Opn->Bgs]: XSLTProcessor turns my XHTML code into HTML.
ID: 35627 Updated by: [EMAIL PROTECTED] Reported By: veracon at veracon dot net -Status: Open +Status: Bogus Bug Type: XSLT related Operating System: Linux PHP Version: 5.1.1 New Comment: User error. You're telling in your xsl stylesheet that you want html, not xhtml. Changing this makes it work: http://www.veracon.net/vorb/bug.phps Expected result: http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";> Test This is just a test. Actual result: -- http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";> TestThis is just a test. -- Edit this bug report at http://bugs.php.net/?id=35627&edit=1
#35627 [NEW]: XSLTProcessor turns my XHTML code into HTML.
From: veracon at veracon dot net Operating system: Linux PHP version: 5.1.1 PHP Bug Type: XSLT related Bug description: XSLTProcessor turns my XHTML code into HTML. Description: When I transform XML/XSLT into XHTML (even with the correct DOCTYPE) it removes the ending slashes of empty elements along with linebreaks disappearing. Reproduce code: --- http://www.veracon.net/vorb/bug.phps Expected result: http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";> Test This is just a test. Actual result: -- http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";> TestThis is just a test. -- Edit bug report at http://bugs.php.net/?id=35627&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35627&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35627&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35627&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35627&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35627&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35627&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=35627&r=needscript Try newer version:http://bugs.php.net/fix.php?id=35627&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35627&r=support Expected behavior:http://bugs.php.net/fix.php?id=35627&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35627&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35627&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35627&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35627&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35627&r=dst IIS Stability:http://bugs.php.net/fix.php?id=35627&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35627&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35627&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35627&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=35627&r=mysqlcfg
#35626 [Opn->Bgs]: throwing an exception in error handler is makeing it display a warning
ID: 35626 Updated by: [EMAIL PROTECTED] Reported By: elg at op dot pl -Status: Open +Status: Bogus Bug Type: Compile Warning Operating System: windows PHP Version: 5.1.1 New Comment: 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're using exception handler that apparently makes exceptions to disappear. Previous Comments: [2005-12-10 22:49:03] elg at op dot pl Description: I wanted to convert errors to exceptions by writing an error handler that throws them as exceptions. Then I wanted to check if it works so I tried to include a non existing file (info.txt) Reproduce code: --- Expected result: :) Actual result: -- Warning: main() [function.include]: Failed opening 'info.txt' for inclusion (include_path='.;C:\php5\pear') in E:\usr\\www\index.php on line 8 :) -- Edit this bug report at http://bugs.php.net/?id=35626&edit=1
#35625 [Opn->Bgs]: Partition table for first hard drive deleted after compile
ID: 35625 Updated by: [EMAIL PROTECTED] Reported By: peterupfold at gmail dot com -Status: Open +Status: Bogus Bug Type: *Compile Issues Operating System: Linux PHP Version: 5.1.1 New Comment: Do you **REALLY** think it's a problem of PHP or are you kidding? Just think about it: if your a program (in your case - a compiler) eats your HDD, the one and only place to report about it is PHP bug database, right? Previous Comments: [2005-12-10 22:40:19] peterupfold at gmail dot com Description: After compiling & building PHP 5.1.1 as Apache module on Apache 2.2 (and 2.0 on a separate occasion), my partition table for my primary hard drive is gone. Is on a dual boot Windows XP/SUSE Linux 10 (2.4.21-99-smp4G) box. A reboot just after configuring and making PHP shows that partition table is completely gone. Primary (Windows C:) and extended (including some Windows data partitions and Linux) are now effectively deleted from my hard drive. This has now occurred on two occasions, both with the source code version. MD5 sums were checked before compile. Downloaded from one of these: uk.php.net or uk2.php.net (not sure which) Reproduce code: --- ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql make su make install Expected result: Install correctly and be able to reboot into my GRUB bootloader, to choose Windows or Linux. Actual result: -- As above, the drive partition table (or possibly MBR) is gone, so the system will not boot and my computer has no operating systems on it. Unable to give you any more debugging info as Linux is now no longer on my computer. -- Edit this bug report at http://bugs.php.net/?id=35625&edit=1
#35626 [NEW]: throwing an exception in error handler is makeing it display a warning
From: elg at op dot pl Operating system: windows PHP version: 5.1.1 PHP Bug Type: Compile Warning Bug description: throwing an exception in error handler is makeing it display a warning Description: I wanted to convert errors to exceptions by writing an error handler that throws them as exceptions. Then I wanted to check if it works so I tried to include a non existing file (info.txt) Reproduce code: --- Expected result: :) Actual result: -- Warning: main() [function.include]: Failed opening 'info.txt' for inclusion (include_path='.;C:\php5\pear') in E:\usr\\www\index.php on line 8 :) -- Edit bug report at http://bugs.php.net/?id=35626&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35626&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35626&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35626&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35626&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35626&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35626&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=35626&r=needscript Try newer version:http://bugs.php.net/fix.php?id=35626&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35626&r=support Expected behavior:http://bugs.php.net/fix.php?id=35626&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35626&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35626&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35626&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35626&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35626&r=dst IIS Stability:http://bugs.php.net/fix.php?id=35626&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35626&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35626&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35626&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=35626&r=mysqlcfg
#35625 [NEW]: Partition table for first hard drive deleted after compile
From: peterupfold at gmail dot com Operating system: Linux PHP version: 5.1.1 PHP Bug Type: *Compile Issues Bug description: Partition table for first hard drive deleted after compile Description: After compiling & building PHP 5.1.1 as Apache module on Apache 2.2 (and 2.0 on a separate occasion), my partition table for my primary hard drive is gone. Is on a dual boot Windows XP/SUSE Linux 10 (2.4.21-99-smp4G) box. A reboot just after configuring and making PHP shows that partition table is completely gone. Primary (Windows C:) and extended (including some Windows data partitions and Linux) are now effectively deleted from my hard drive. This has now occurred on two occasions, both with the source code version. MD5 sums were checked before compile. Downloaded from one of these: uk.php.net or uk2.php.net (not sure which) Reproduce code: --- ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql make su make install Expected result: Install correctly and be able to reboot into my GRUB bootloader, to choose Windows or Linux. Actual result: -- As above, the drive partition table (or possibly MBR) is gone, so the system will not boot and my computer has no operating systems on it. Unable to give you any more debugging info as Linux is now no longer on my computer. -- Edit bug report at http://bugs.php.net/?id=35625&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35625&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35625&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35625&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35625&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35625&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35625&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=35625&r=needscript Try newer version:http://bugs.php.net/fix.php?id=35625&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35625&r=support Expected behavior:http://bugs.php.net/fix.php?id=35625&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35625&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35625&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35625&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35625&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35625&r=dst IIS Stability:http://bugs.php.net/fix.php?id=35625&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35625&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35625&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35625&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=35625&r=mysqlcfg
#35624 [Fbk->Asn]: strtotime doesn't accept 3 character weekdays
ID: 35624 Updated by: [EMAIL PROTECTED] Reported By: uwe dot dauernheim at gmx dot de -Status: Feedback +Status: Assigned Bug Type: Date/time related -Operating System: +Operating System: * -PHP Version: 5.1.1 +PHP Version: 5CVS-2005-12-10 (cvs) -Assigned To: +Assigned To: derick New Comment: It happens with latest CVS too. Previous Comments: [2005-12-10 19:17:12] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.1-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.1-win32-latest.zip [2005-12-10 19:11:47] uwe dot dauernheim at gmx dot de Description: The function strtotime() does not work correctly, when using three character weekdays. Reproduce code: --- echo date('D', strtotime('mon')); Expected result: Mon Actual result: -- (Suggest it's saturday) Mon (5.0.4) Mon (5.0.5) Sat (5.1.0) Sat (5.1.1) ? (CVS) -- Edit this bug report at http://bugs.php.net/?id=35624&edit=1
#35624 [Opn->Fbk]: strtotime doesn't accept 3 character weekdays
ID: 35624 Updated by: [EMAIL PROTECTED] Reported By: uwe dot dauernheim at gmx dot de -Status: Open +Status: Feedback Bug Type:Date/time related PHP Version: 5.1.1 Previous Comments: [2005-12-10 19:17:12] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5.1-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.1-win32-latest.zip [2005-12-10 19:11:47] uwe dot dauernheim at gmx dot de Description: The function strtotime() does not work correctly, when using three character weekdays. Reproduce code: --- echo date('D', strtotime('mon')); Expected result: Mon Actual result: -- (Suggest it's saturday) Mon (5.0.4) Mon (5.0.5) Sat (5.1.0) Sat (5.1.1) ? (CVS) -- Edit this bug report at http://bugs.php.net/?id=35624&edit=1
#35624 [Asn->Opn]: strtotime doesn't accept 3 character weekdays
ID: 35624 Updated by: [EMAIL PROTECTED] Reported By: uwe dot dauernheim at gmx dot de -Status: Assigned +Status: Open Bug Type: Date/time related Operating System: * -PHP Version: 5CVS-2005-12-10 (cvs) +PHP Version: 5.1.1 Assigned To: derick New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5.1-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.1-win32-latest.zip Previous Comments: [2005-12-10 19:11:47] uwe dot dauernheim at gmx dot de Description: The function strtotime() does not work correctly, when using three character weekdays. Reproduce code: --- echo date('D', strtotime('mon')); Expected result: Mon Actual result: -- (Suggest it's saturday) Mon (5.0.4) Mon (5.0.5) Sat (5.1.0) Sat (5.1.1) ? (CVS) -- Edit this bug report at http://bugs.php.net/?id=35624&edit=1
#35624 [Opn->Asn]: strtotime doesn't accept 3 character weekdays
ID: 35624 Updated by: [EMAIL PROTECTED] Reported By: uwe dot dauernheim at gmx dot de -Status: Open +Status: Assigned Bug Type: Date/time related -Operating System: +Operating System: * -PHP Version: 5.1.1 +PHP Version: 5CVS-2005-12-10 (cvs) -Assigned To: +Assigned To: derick Previous Comments: [2005-12-10 19:11:47] uwe dot dauernheim at gmx dot de Description: The function strtotime() does not work correctly, when using three character weekdays. Reproduce code: --- echo date('D', strtotime('mon')); Expected result: Mon Actual result: -- (Suggest it's saturday) Mon (5.0.4) Mon (5.0.5) Sat (5.1.0) Sat (5.1.1) ? (CVS) -- Edit this bug report at http://bugs.php.net/?id=35624&edit=1
#35623 [Bgs]: Accept-Encoding header missing from $_SERVER and $ENV
ID: 35623 User updated by: webdeveloper at bokehman dot com Reported By: webdeveloper at bokehman dot com Status: Bogus Bug Type: Zlib Related Operating System: Win XP PHP Version: 5.1.1 New Comment: It is set by the server. It is available to the log file. It is only in PHP it is not available. Previous Comments: [2005-12-10 19:00:46] [EMAIL PROTECTED] Any entries miss only if the webserver doesn't set them. Not PHP bug. [2005-12-10 18:59:53] webdeveloper at bokehman dot com Description: Accept-Encoding header is missing from $_SERVER array meaning ob_start('gzhandler') doesn't work. I am using Apache2 and have been saving %{Accept-Encoding} to the apache log so I know the header is arriving at the server but PHP does not have access to it. Tested in 5.1.1 and 5.0.4 (win32) and it is missing from both. -- Edit this bug report at http://bugs.php.net/?id=35623&edit=1
#35624 [NEW]: strtotime doesn't accept 3 character weekdays
From: uwe dot dauernheim at gmx dot de Operating system: PHP version: 5.1.1 PHP Bug Type: Date/time related Bug description: strtotime doesn't accept 3 character weekdays Description: The function strtotime() does not work correctly, when using three character weekdays. Reproduce code: --- echo date('D', strtotime('mon')); Expected result: Mon Actual result: -- (Suggest it's saturday) Mon (5.0.4) Mon (5.0.5) Sat (5.1.0) Sat (5.1.1) ? (CVS) -- Edit bug report at http://bugs.php.net/?id=35624&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35624&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35624&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35624&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35624&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35624&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35624&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=35624&r=needscript Try newer version:http://bugs.php.net/fix.php?id=35624&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35624&r=support Expected behavior:http://bugs.php.net/fix.php?id=35624&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35624&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35624&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35624&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35624&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35624&r=dst IIS Stability:http://bugs.php.net/fix.php?id=35624&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35624&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35624&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35624&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=35624&r=mysqlcfg
#35623 [Opn->Bgs]: Accept-Encoding header missing from $_SERVER and $ENV
ID: 35623 Updated by: [EMAIL PROTECTED] Reported By: webdeveloper at bokehman dot com -Status: Open +Status: Bogus Bug Type: Zlib Related Operating System: Win XP PHP Version: 5.1.1 New Comment: Any entries miss only if the webserver doesn't set them. Not PHP bug. Previous Comments: [2005-12-10 18:59:53] webdeveloper at bokehman dot com Description: Accept-Encoding header is missing from $_SERVER array meaning ob_start('gzhandler') doesn't work. I am using Apache2 and have been saving %{Accept-Encoding} to the apache log so I know the header is arriving at the server but PHP does not have access to it. Tested in 5.1.1 and 5.0.4 (win32) and it is missing from both. -- Edit this bug report at http://bugs.php.net/?id=35623&edit=1
#35623 [NEW]: Accept-Encoding header missing from $_SERVER and $ENV
From: webdeveloper at bokehman dot com Operating system: Win XP PHP version: 5.1.1 PHP Bug Type: Zlib Related Bug description: Accept-Encoding header missing from $_SERVER and $ENV Description: Accept-Encoding header is missing from $_SERVER array meaning ob_start('gzhandler') doesn't work. I am using Apache2 and have been saving %{Accept-Encoding} to the apache log so I know the header is arriving at the server but PHP does not have access to it. Tested in 5.1.1 and 5.0.4 (win32) and it is missing from both. -- Edit bug report at http://bugs.php.net/?id=35623&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35623&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35623&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35623&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35623&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35623&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35623&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=35623&r=needscript Try newer version:http://bugs.php.net/fix.php?id=35623&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35623&r=support Expected behavior:http://bugs.php.net/fix.php?id=35623&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35623&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35623&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35623&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35623&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35623&r=dst IIS Stability:http://bugs.php.net/fix.php?id=35623&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35623&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35623&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35623&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=35623&r=mysqlcfg
#35484 [Opn]: segmentation faults with multiple include virtual
ID: 35484 Updated by: [EMAIL PROTECTED] Reported By: minnoce at polito dot it Status: Open Bug Type: Apache2 related Operating System: Linux RHEL 4 PHP Version: 5CVS-2005-12-02 (snap) New Comment: See also bug #35571 Previous Comments: [2005-12-02 09:32:44] minnoce at polito dot it OK, removed "--enable-debug" from configure. Re-executing the above test and reproduced the problem with segmentation fault. This the GDB bakctrace on the core dump: # gdb /services/apache/bin/httpd /tmp/php/core.28560 GNU gdb Red Hat Linux (6.3.0.0-1.63rh) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"...(no debugging symbols found) Using host libthread_db library "/lib/tls/libthread_db.so.1". Core was generated by `/services/apache/bin/httpd -f /services/httpd/conf/httpd.conf -d /services/apac'. Program terminated with signal 11, Segmentation fault. Reading symbols from ... ... #0 0x011b0100 in _zend_hash_index_update_or_next_insert () from /services/apache/modules/libphp5cvs.so (gdb) where #0 0x011b0100 in _zend_hash_index_update_or_next_insert () from /services/apache/modules/libphp5cvs.so #1 0x011b289b in zend_register_resource () from /services/apache/modules/libphp5cvs.so #2 0x011725ce in _php_stream_alloc () from /services/apache/modules/libphp5cvs.so #3 0x01177fef in _php_stream_fopen_from_fd () from /services/apache/modules/libphp5cvs.so #4 0x01178ef6 in _php_stream_fopen () from /services/apache/modules/libphp5cvs.so #5 0x01179760 in _php_stream_fopen_with_path () from /services/apache/modules/libphp5cvs.so #6 0x01175b5b in _php_stream_open_wrapper_ex () from /services/apache/modules/libphp5cvs.so #7 0x011603d5 in php_stream_open_for_zend () from /services/apache/modules/libphp5cvs.so #8 0x011b9030 in zend_stream_fixup () from /services/apache/modules/libphp5cvs.so #9 0x01189319 in compile_file () from /services/apache/modules/libphp5cvs.so #10 0x011a7cc1 in zend_execute_scripts () from /services/apache/modules/libphp5cvs.so #11 0x0121ba67 in php_handler () from /services/apache/modules/libphp5cvs.so #12 0x080ab2b5 in ap_invoke_handler () #13 0x080c878d in ap_run_sub_req () #14 0x08067399 in _start () #15 0x09298258 in ?? () #16 0x0927e1f8 in ?? () #17 0x0927ee60 in ?? () #18 0x092899e8 in ?? () #19 0x2000 in ?? () #20 0x in ?? () [2005-12-01 18:04:58] [EMAIL PROTECTED] We can't reproduce this so please provide the backtrace. (without --enable-debug if that's the only way..) [2005-12-01 16:31:23] minnoce at polito dot it Obviously, the expected output is: TESTTEST [2005-12-01 16:28:50] minnoce at polito dot it mmm... Compiling PHP with --enable-debug and reproducing the bug (getting the "test.html" with the two include virtuals) don't cause anymore segmentatio faults. But simply the last "include virtual" produce NO output at all (no errors in apache logs). The output received from browser getting "test.html" is: TEST Thanks, Mauro [2005-12-01 15:58:54] [EMAIL PROTECTED] Please provide current backtrace. And make sure you had --enable-debug in your configure line! Also, don't submit ALL the lines, just the relevant ones. (The "loading symbols.." lines are not needed) 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/35484 -- Edit this bug report at http://bugs.php.net/?id=35484&edit=1
#35571 [Asn]: SSI + php (not using virtual()) crashes with Apache2 (only Apache 2.0.55)
ID: 35571 Updated by: [EMAIL PROTECTED] Reported By: kclair at gmail dot com Status: Assigned Bug Type: Apache2 related Operating System: linux PHP Version: 5CVS, 4CVS (2005-12-09) (snap) Assigned To: iliaa New Comment: See also bug #35484 Previous Comments: [2005-12-10 12:43:41] [EMAIL PROTECTED] Ilia, the fix wasn't enough? There have also been other reports with Apache 2.0.55.. [2005-12-09 22:33:08] kclair at gmail dot com The fix applied for this fixes the segfault for Apache 2.0.54. Apache 2.0.55, however, still segfaults for the same SSI pages. I recompiled php with the same configure options as before. gdb backtrace is: #0 0xb7de28dd in yy_push_state (new_state=1) at Zend/zend_language_scanner.c:5760 5760yy_start_stack[yy_start_stack_ptr++] = YY_START; (gdb) bt full #0 0xb7de28dd in yy_push_state (new_state=1) at Zend/zend_language_scanner.c:5760 new_size = Variable "new_size" is not available. Thanks! Especially for the first fix! [2005-12-06 18:26:48] [EMAIL PROTECTED] This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. [2005-12-06 16:57:10] kclair at gmail dot com Description: SSI files which include php scripts are behaving differently after upgrading from php 4.3.10 to php 4.4.1. Apache version is 2.0.54. I tried it with two different configure options: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-debug=no --enable-versioning --enable-track-vars --with-openssl --with-jpeg-dir=/home/sys/src/jpeg-6b --with-expat=/usr/lib --with-mcrypt --with-config-file-path=/home/sys/etc/php-noZend/ --with-png-dir=/usr --with-zlib-dir=/usr --with-ttf --with-freetype-dir=/usr --with-curl --with-mysql=/usr --with-gd --with-sablot --with-xslt-sablot --enable-xslt --disable-zend-memory-manager ./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-debug=no --enable-versioning --enable-track-vars --with-openssl --with-jpeg-dir=/home/sys/src/jpeg-6b --with-expat=/usr/lib --with-mcrypt --with-config-file-path=/home/sys/etc/ --with-png-dir=/usr --with-zlib-dir=/usr --with-ttf --with-freetype-dir=/usr --with-curl --with-mysql=/usr --with-gd --with-sablot --with-xslt-sablot --enable-xslt I also tried it both with Zend optimizer enabled and with Zend optimizer disabled in php.ini. Reproduce code: --- The includes from the files which segfault look like: The php code is a short db query: if ($conn == false){ echo mysql_errno() . ": " . mysql_error() . ""; exit; } else { $rtn = mysql_select_db ("[tablename]"); $sql = "select * from events where ID = ".$ID; $result = mysql_query ($sql); if ( ($row = mysql_fetch_row($result)) && ($today<=$row[4] ) ){ mysql_fetch_row($result)) { [snip echo mysql results] } } } } Expected result: Results from mysql query should be displayed on page. Actual result: -- Blank pages. The backtrace is the same regardless of which compile options I used: #0 0xb7e095cc in zend_hash_index_update_or_next_insert (ht=0xb7ea29c0, h=0, pData=0xbfffdc60, nDataSize=12, pDest=0x0, flag=1) at /home/sys/src/php-4.4.1/Zend/zend_hash.c:390 390 p = ht->arBuckets[nIndex]; (gdb) bt full #0 0xb7e095cc in zend_hash_index_update_or_next_insert (ht=0xb7ea29c0, h=0, pData=0xbfffdc60, nDataSize=12, pDest=0x0, flag=1) at /home/sys/src/php-4.4.1/Zend/zend_hash.c:390 nIndex = 0 p = Variable "p" is not available. (gdb) -- Edit this bug report at http://bugs.php.net/?id=35571&edit=1
#35619 [Opn->Bgs]: libphp5.so not created
ID: 35619 Updated by: [EMAIL PROTECTED] Reported By: hellower at nate dot com -Status: Open +Status: Bogus Bug Type: Compile Failure Operating System: AIX 5.3 PHP Version: 5.1.1 New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. Previous Comments: [2005-12-10 06:11:38] hellower at nate dot com Description: [apache 2.0.55 comiple] # ./configure --prefix=/usr/local/apache --enable-so --enable-rewrite --enable-modules=proxy --enable-modules=rewrite --enable-modules=info --enable-mods-shared=proxy --enable-mods-shared=rewrite --enable-mods-shared=info # make # make install [php 5.1.1 compile] # ./configure --with-apxs2=/usr/local/apache/bin/apxs \ --with-oci8=/oracle \ --with-pdo-oci=/oracle \ --enable-pdo \ --with-pdo-sqlite \ --with-sqlite \ --enable-track-vars \ --enable-ftp \ --enable-track-vars \ --disable-debug \ --disable-inline \ --without-mysql \ --enable-wddx \ --with-libxml-dir=/usr/local \ --enable-sigchild # make Build complete. (It is safe to ignore warnings about tempnam and tmpnam). # make install Installing PHP SAPI module: apache2handler perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LC_ALL = (unset), LC__FASTMSG = "true", LC_MESSAGES = "", LANG = "en_US" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). /usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool' libphp5.la /usr/local/apache/modules rm -f /usr/local/apache/modules/libphp5.so /usr/local/apache/build/libtool --mode=install cp libphp5.la /usr/local/apache/modules/ cp .libs/libphp5.a /usr/local/apache/modules/libphp5.a cp .libs/libphp5.lai /usr/local/apache/modules/libphp5.la libtool: install: warning: remember to run `libtool --finish /usr/local/src/php-5.1.1/libs' chmod 755 /usr/local/apache/modules/libphp5.so chmod: /usr/local/apache/modules/libphp5.so: No such file or directory apxs:Error: Command failed with rc=65536 . make: *** [install-sapi] Error 1 !!! sslgm11:/usr/local/src/php-5.1.1# -- Edit this bug report at http://bugs.php.net/?id=35619&edit=1
#35620 [Opn->Asn]: access violation on odbc query
ID: 35620 Updated by: [EMAIL PROTECTED] Reported By: humbads at alum dot mit dot edu -Status: Open +Status: Assigned -Bug Type: ODBC related +Bug Type: PDO related Operating System: Windows XP SP2 PHP Version: 5CVS-2005-12-10 (snap) -Assigned To: +Assigned To: wez Previous Comments: [2005-12-10 08:43:54] humbads at alum dot mit dot edu The same crash occurs if the code is simply within a function, rather than a class. Furthermore, the same crash occurs if another data source is used, e.g. SQL Server. myfunction(); function myfunction() { $odbc = new PDO("odbc:Driver={Microsoft Visual FoxPro Driver};SourceType=DBF;SourceDB=C:\\"); $query = "SELECT * FROM invoice"; $result = $odbc->query($query); } [2005-12-10 08:24:07] humbads at alum dot mit dot edu Description: php-cgi.exe crashes with an access violation when using PDO ODBC to run a simple query as given below. The code runs without error if not enclosed in a class. It also runs without error if the query is run without saving the return value in $result. The stack trace indicates a crash when destroying the implicit prepared statement. Reproduce code: --- $mc = new MyClass; class MyClass { function MyClass() { $odbc = new PDO("odbc:Driver={Microsoft Visual FoxPro Driver};SourceType=DBF;SourceDB=C:\\"); $query = "SELECT * FROM invoice"; $result = $odbc->query($query); die("happy"); } } Expected result: It should not crash when returning the result, or when running from within a class. Actual result: -- > [EMAIL PROTECTED]() + 0xb odbc32.dll!CCriticalSection::Enter() + 0xf [EMAIL PROTECTED]() + 0xf [EMAIL PROTECTED]() + 0x23 [EMAIL PROTECTED]() + 0x2b php_pdo_odbc.dll!odbc_stmt_dtor(_pdo_stmt_t * stmt=0x00720448, void * * * tsrm_ls=0x00323eb0) Line 56C php_pdo.dll!free_statement(_pdo_stmt_t * stmt=0x00720448, void * * * tsrm_ls=0x00323eb0) Line 2118 + 0x8C php_pdo.dll!php_pdo_stmt_delref(_pdo_stmt_t * stmt=0x00720448, void * * * tsrm_ls=0x00323eb0) Line 2157 + 0xbC php_pdo.dll!pdo_dbstmt_free_storage(_pdo_stmt_t * stmt=0x00720448, void * * * tsrm_ls=0x00323eb0) Line 2162 + 0xf C php5ts.dll!zend_objects_store_free_object_storage(_zend_objects_store * objects=0x00328dc4, void * * * tsrm_ls=0x00323eb0) Line 83 + 0xb C php5ts.dll!shutdown_executor(void * * * tsrm_ls=0x00a232c0) Line 273 + 0x13 C [EMAIL PROTECTED]() + 0x26 Unhandled exception at 0x7c901010 (ntdll.dll) in php-cgi.exe: 0xC005: Access violation reading location 0x0018. -- Edit this bug report at http://bugs.php.net/?id=35620&edit=1
#35571 [Opn->Asn]: SSI + php (not using virtual()) crashes with Apache2 (only Apache 2.0.55)
ID: 35571 Updated by: [EMAIL PROTECTED] -Summary: SSI + php (not using virtual()) causes Apache2 segfault Reported By: kclair at gmail dot com -Status: Open +Status: Assigned Bug Type: Apache2 related Operating System: linux PHP Version: 4.4.2RC2-dev -Assigned To: +Assigned To: iliaa New Comment: Ilia, the fix wasn't enough? There have also been other reports with Apache 2.0.55.. Previous Comments: [2005-12-09 22:33:08] kclair at gmail dot com The fix applied for this fixes the segfault for Apache 2.0.54. Apache 2.0.55, however, still segfaults for the same SSI pages. I recompiled php with the same configure options as before. gdb backtrace is: #0 0xb7de28dd in yy_push_state (new_state=1) at Zend/zend_language_scanner.c:5760 5760yy_start_stack[yy_start_stack_ptr++] = YY_START; (gdb) bt full #0 0xb7de28dd in yy_push_state (new_state=1) at Zend/zend_language_scanner.c:5760 new_size = Variable "new_size" is not available. Thanks! Especially for the first fix! [2005-12-06 18:26:48] [EMAIL PROTECTED] This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. [2005-12-06 16:57:10] kclair at gmail dot com Description: SSI files which include php scripts are behaving differently after upgrading from php 4.3.10 to php 4.4.1. Apache version is 2.0.54. I tried it with two different configure options: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-debug=no --enable-versioning --enable-track-vars --with-openssl --with-jpeg-dir=/home/sys/src/jpeg-6b --with-expat=/usr/lib --with-mcrypt --with-config-file-path=/home/sys/etc/php-noZend/ --with-png-dir=/usr --with-zlib-dir=/usr --with-ttf --with-freetype-dir=/usr --with-curl --with-mysql=/usr --with-gd --with-sablot --with-xslt-sablot --enable-xslt --disable-zend-memory-manager ./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-debug=no --enable-versioning --enable-track-vars --with-openssl --with-jpeg-dir=/home/sys/src/jpeg-6b --with-expat=/usr/lib --with-mcrypt --with-config-file-path=/home/sys/etc/ --with-png-dir=/usr --with-zlib-dir=/usr --with-ttf --with-freetype-dir=/usr --with-curl --with-mysql=/usr --with-gd --with-sablot --with-xslt-sablot --enable-xslt I also tried it both with Zend optimizer enabled and with Zend optimizer disabled in php.ini. Reproduce code: --- The includes from the files which segfault look like: The php code is a short db query: if ($conn == false){ echo mysql_errno() . ": " . mysql_error() . ""; exit; } else { $rtn = mysql_select_db ("[tablename]"); $sql = "select * from events where ID = ".$ID; $result = mysql_query ($sql); if ( ($row = mysql_fetch_row($result)) && ($today<=$row[4] ) ){ mysql_fetch_row($result)) { [snip echo mysql results] } } } } Expected result: Results from mysql query should be displayed on page. Actual result: -- Blank pages. The backtrace is the same regardless of which compile options I used: #0 0xb7e095cc in zend_hash_index_update_or_next_insert (ht=0xb7ea29c0, h=0, pData=0xbfffdc60, nDataSize=12, pDest=0x0, flag=1) at /home/sys/src/php-4.4.1/Zend/zend_hash.c:390 390 p = ht->arBuckets[nIndex]; (gdb) bt full #0 0xb7e095cc in zend_hash_index_update_or_next_insert (ht=0xb7ea29c0, h=0, pData=0xbfffdc60, nDataSize=12, pDest=0x0, flag=1) at /home/sys/src/php-4.4.1/Zend/zend_hash.c:390 nIndex = 0 p = Variable "p" is not available. (gdb) -- Edit this bug report at http://bugs.php.net/?id=35571&edit=1
#35622 [Opn->Asn]: php_gmp doesn't compiled in snapshots and release versions
ID: 35622 Updated by: [EMAIL PROTECTED] Reported By: datacompboy at river-net dot org -Status: Open +Status: Assigned Bug Type: *Compile Issues Operating System: Windows PHP Version: 5.1.1 -Assigned To: +Assigned To: edink New Comment: Edin, please take a look at it. Previous Comments: [2005-12-10 11:49:10] datacompboy at river-net dot org Description: php_gmp doesn't compiled into default binary packets, because (http://snaps.php.net/win32/snapshot-5.1.log) Checking for library libgmp_a.lib ... WARNING: GMP not enabled; libraries and headers not found -- Edit this bug report at http://bugs.php.net/?id=35622&edit=1
#35622 [NEW]: php_gmp doesn't compiled in snapshots and release versions
From: datacompboy at river-net dot org Operating system: Windows PHP version: 5.1.1 PHP Bug Type: *Compile Issues Bug description: php_gmp doesn't compiled in snapshots and release versions Description: php_gmp doesn't compiled into default binary packets, because (http://snaps.php.net/win32/snapshot-5.1.log) Checking for library libgmp_a.lib ... WARNING: GMP not enabled; libraries and headers not found -- Edit bug report at http://bugs.php.net/?id=35622&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35622&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35622&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35622&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35622&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35622&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35622&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=35622&r=needscript Try newer version:http://bugs.php.net/fix.php?id=35622&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35622&r=support Expected behavior:http://bugs.php.net/fix.php?id=35622&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35622&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35622&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35622&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35622&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35622&r=dst IIS Stability:http://bugs.php.net/fix.php?id=35622&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35622&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35622&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35622&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=35622&r=mysqlcfg
#35621 [Opn->Bgs]: casting to array is not working as expected
ID: 35621 User updated by: phpdude at fredesign dot com Reported By: phpdude at fredesign dot com -Status: Open +Status: Bogus Bug Type: SimpleXML related Operating System: Macintosh OSX (1.3) PHP Version: 5.1.1 New Comment: It is casting the external element and not the internal object workings... so this is not a bug report... sorry. Previous Comments: [2005-12-10 09:26:05] phpdude at fredesign dot com Description: Hello, when casting a SimpleXMLObject to an array, if the object is empty it remains a SimpleXmlObject, and if the object contains only one value it is converted to a string. (array) = simpleXmlObject() (array) 1 = "1" (array) 12 = array("1","2") Reproduce code: --- "; $s[] = "1"; $s[] = "12"; foreach($s as $sKey=>$xml_string) { $o = simplexml_load_string($xml_string); $a = (array)$o->foo; echo $sKey." = "; print_r($a); echo "\n\n"; } ?> Expected result: 0 = Array ( [value] => Array ( ) ) 1 = Array ( [value] => Array ( [0] => 1 ) ) 2 = Array ( [value] => Array ( [0] => 1 [1] => 2 ) ) Actual result: -- 0 = Array ( [value] => SimpleXMLElement Object ( ) ) 1 = Array ( [value] => 1 ) 2 = Array ( [value] => Array ( [0] => 1 [1] => 2 ) ) -- Edit this bug report at http://bugs.php.net/?id=35621&edit=1
#35621 [NEW]: casting to array is not working as expected
From: phpdude at fredesign dot com Operating system: Macintosh OSX (1.3) PHP version: 5.1.1 PHP Bug Type: SimpleXML related Bug description: casting to array is not working as expected Description: Hello, when casting a SimpleXMLObject to an array, if the object is empty it remains a SimpleXmlObject, and if the object contains only one value it is converted to a string. (array) = simpleXmlObject() (array) 1 = "1" (array) 12 = array("1","2") Reproduce code: --- "; $s[] = "1"; $s[] = "12"; foreach($s as $sKey=>$xml_string) { $o = simplexml_load_string($xml_string); $a = (array)$o->foo; echo $sKey." = "; print_r($a); echo "\n\n"; } ?> Expected result: 0 = Array ( [value] => Array ( ) ) 1 = Array ( [value] => Array ( [0] => 1 ) ) 2 = Array ( [value] => Array ( [0] => 1 [1] => 2 ) ) Actual result: -- 0 = Array ( [value] => SimpleXMLElement Object ( ) ) 1 = Array ( [value] => 1 ) 2 = Array ( [value] => Array ( [0] => 1 [1] => 2 ) ) -- Edit bug report at http://bugs.php.net/?id=35621&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35621&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35621&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35621&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35621&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35621&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35621&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=35621&r=needscript Try newer version:http://bugs.php.net/fix.php?id=35621&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35621&r=support Expected behavior:http://bugs.php.net/fix.php?id=35621&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35621&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35621&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35621&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35621&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35621&r=dst IIS Stability:http://bugs.php.net/fix.php?id=35621&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35621&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35621&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35621&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=35621&r=mysqlcfg