Req #79020 [NEW]: Fast array push $a[]=...[1,2];

From: Date: Mon, 23 Dec 2019 09:29:41 +0000
Subject: Req #79020 [NEW]: Fast array push $a[]=...[1,2];
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-224490@lists.php.net to get a copy of this message
From: bugzilla77 at gmail dot com Operating system: all PHP version: 7.4.1 Package: *General Issues Bug Type: Feature/Change Request Bug description:Fast array push $a[]=...[1,2]; Description: ------------ Fast array push $a[]=...[1,2]; Test script: --------------- <?php $a=[0]; $a[]=...[1,2]; // array_push($a,...[1,2]); print_r($a); ?> Expected result: ---------------- Array ( [0] => 0 [1] => 1 [2] => 2 ) Actual result: -------------- Parse error: syntax error, unexpected '...' (T_ELLIPSIS) in C:\htdocs\wwwroot\fast_array_push.php on line 4 -- Edit bug report at https://bugs.php.net/bug.php?id=79020&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79020&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79020&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79020&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79020&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79020&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79020&r=support Expected behavior: https://bugs.php.net/fix.php?id=79020&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79020&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79020&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79020&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79020&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79020&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79020&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79020&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79020&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79020&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79020&r=mysqlcfg

« previous php.bugs (#224490) next »