Req #81359 [NEW]: assignement in function parameter
| From: | rh at hofercomputing dot ch | Date: | Sat, 14 Aug 2021 09:11:49 +0000 |
| Subject: | Req #81359 [NEW]: assignement in function parameter | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-235811@lists.php.net to get a copy of this message | ||
From: rh at hofercomputing dot ch
Operating system: windows
PHP version: 8.0.9
Package: Compile Failure
Bug Type: Feature/Change Request
Bug description:assignement in function parameter
Description:
------------
function a(&$p){
$p++;
}
a($x=18);
this produces "Uncaught Error: a(): Argument #1 ($p) cannot be passed by
reference in "
but $x is a variable, and this was accepted in recent versions.
--
Edit bug report at https://bugs.php.net/bug.php?id=81359&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81359&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81359&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81359&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81359&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81359&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81359&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81359&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81359&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81359&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81359&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81359&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81359&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81359&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81359&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81359&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81359&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81359&r=mysqlcfg