From: php at paulisageek dot com Operating system: All PHP version: 5.4Git-2013-02-08 (Git) Package: Unknown/Other Function Bug Type: Feature/Change Request Bug description:functions calls should accept trailing ,
Description: ------------ In our code we require everyone to put a trailing , in array declarations so that blame stays clean. Like when: $foo = array( 1, ) becomes $foo = array( 1, 2, ) Then only 1 line has changed. But for function calls, when $foo = foo( 1 ) becomes $foo = foo( 1, 2 ) now 2 lines blame to you. Allowing the same syntax for function calls as array creation would be great. Test script: --------------- <?php function id($x) { return $x; } id(1,); Expected result: ---------------- It runs. Actual result: -------------- Fatal error: syntax error, unexpected ')' -- Edit bug report at https://bugs.php.net/bug.php?id=64176&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64176&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64176&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64176&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64176&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64176&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64176&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64176&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64176&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64176&r=support Expected behavior: https://bugs.php.net/fix.php?id=64176&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64176&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64176&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64176&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64176&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64176&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64176&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64176&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64176&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64176&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64176&r=mysqlcfg