#48858 [NEW]: array item definition problem?
From: justin dot carlson at gmail dot com Operating system: Windows XP PHP version: 5.3.0 PHP Bug Type: Arrays related Bug description: array item definition problem? Description: Array items are not as defined when using the same key twice. I have not yet tested this outside of a class. Reproduce code: --- 'Apple', self::B => 'Boy', self::C => 'Cat', self::D => 'Dog' ); public static function Bar() { print_R( self::$sample ); } } ?> Expected result: In PHP 5.2.x: Array ( [2] => Boy [3] => Cat [1] => Dog ) This is what I would expect to be valid, as the 2nd entry would override the first, making "Dog" the correct value for index 1. Actual result: -- In PHP 5.3.x: Array ( [1] => Apple [2] => Boy [3] => Cat ) This was not expected, as the 1st entry maintained it's value. -- Edit bug report at http://bugs.php.net/?id=48858&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48858&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48858&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48858&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48858&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48858&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48858&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48858&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48858&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48858&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48858&r=support Expected behavior: http://bugs.php.net/fix.php?id=48858&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48858&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48858&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48858&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48858&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=48858&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48858&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48858&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48858&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48858&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48858&r=mysqlcfg
#48858 [Opn]: array item definition problem?
ID: 48858 User updated by: justin dot carlson at gmail dot com Reported By: justin dot carlson at gmail dot com Status: Open Bug Type: Scripting Engine problem -Operating System: Windows XP +Operating System: Windows XP and Linux PHP Version: 5.3.0 New Comment: I've confirmed this in Linux as well. The following works fine: 'foo', b => 'bar'); print_R($test); ?> So, it may be related to class constants? Previous Comments: [2009-07-09 07:25:39] sjoerd-php at linuxonly dot nl Thank you for your bug report. I was able to reproduce the problem and make the testcase somewhat simpler: 'First', self::D => 'Last' ); } print_r(Foo::$sample); ?> ------------------------ [2009-07-08 22:15:10] justin dot carlson at gmail dot com Description: Array items are not as defined when using the same key twice. I have not yet tested this outside of a class. Reproduce code: --- 'Apple', self::B => 'Boy', self::C => 'Cat', self::D => 'Dog' ); public static function Bar() { print_R( self::$sample ); } } ?> Expected result: In PHP 5.2.x: Array ( [2] => Boy [3] => Cat [1] => Dog ) This is what I would expect to be valid, as the 2nd entry would override the first, making "Dog" the correct value for index 1. Actual result: -- In PHP 5.3.x: Array ( [1] => Apple [2] => Boy [3] => Cat ) This was not expected, as the 1st entry maintained it's value. -- Edit this bug report at http://bugs.php.net/?id=48858&edit=1
#49324 [NEW]: passthru() crash
From: justin dot carlson at gmail dot com Operating system: Windows XP PHP version: 5.3.0 PHP Bug Type: Reproducible crash Bug description: passthru() crash Description: Accidentally called passthru() on a non-executable file, and it crashed apache. Reproduce code: --- Expected result: A warning or fatal stating the file was not an executable. Actual result: -- Long pause, apache crash. -- Edit bug report at http://bugs.php.net/?id=49324&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49324&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49324&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49324&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49324&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49324&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49324&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49324&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49324&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49324&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49324&r=support Expected behavior: http://bugs.php.net/fix.php?id=49324&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49324&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49324&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49324&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49324&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=49324&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49324&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49324&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49324&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49324&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49324&r=mysqlcfg
#49324 [Opn]: passthru() crash
ID: 49324 User updated by: justin dot carlson at gmail dot com Reported By: justin dot carlson at gmail dot com Status: Open Bug Type: Reproducible crash Operating System: Windows XP PHP Version: 5.3.0 New Comment: Just wanted to make sure this is clear... This crashes apache: This does not: Previous Comments: [2009-08-21 19:43:44] justin dot carlson at gmail dot com Description: Accidentally called passthru() on a non-executable file, and it crashed apache. Reproduce code: --- Expected result: A warning or fatal stating the file was not an executable. Actual result: -- Long pause, apache crash. -- Edit this bug report at http://bugs.php.net/?id=49324&edit=1
#45872 [Com]: Win installer reports script file can't be run
ID: 45872 Comment by: justin dot carlson at gmail dot com Reported By: jperry at thepayrollpros dot com Status: Assigned Bug Type: Windows Installer Operating System: win xp PHP Version: 5.2.6 Assigned To: jmertic New Comment: +1 for same issue in 5.2.7 Previous Comments: [2008-12-05 11:00:41] wulfert at web dot de Still the same bug in the new installer <http://www.php.net/get/php-5.2.7-win32-installer.msi/from/a/mirror>. [2008-08-22 12:37:45] jperry at thepayrollpros dot com the 5.2.7 installer referred to by the link produced the same error message. [2008-08-22 06:48:30] [EMAIL PROTECTED] I would suggest trying the latest snapshot, lot of fixes have been done since the release of 5.2.6: http://snaps.php.net/win32/php5.2-win32-installer-200808060430.msi [2008-08-21 12:42:28] jperry at thepayrollpros dot com php-5.2.6 win32 installer [2008-08-20 20:42:14] [EMAIL PROTECTED] Which installer? From PHP5.2.6? 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/45872 -- Edit this bug report at http://bugs.php.net/?id=45872&edit=1