From: nn at rtfm dot cz Operating system: Linux Debian PHP version: Irrelevant PHP Bug Type: Variables related Bug description: can't send name of global array as function parameter
Description: ------------ I think that this is a bug, see the code, it is self-explaining :-) Reproduce code: --------------- function xx ($type = '_POST') { echo '<pre>'; print_r($$type); echo '</pre>'; } xx(); Expected result: ---------------- I expect to see my $_POST variables! :-) Actual result: -------------- Notice: Undefined variable: _POST in /www/album.cz/www/album/registrace/index.php on line 31 -- Edit bug report at http://bugs.php.net/?id=24547&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24547&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24547&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24547&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24547&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24547&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24547&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24547&r=support Expected behavior: http://bugs.php.net/fix.php?id=24547&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24547&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24547&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24547&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24547&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24547&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24547&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24547&r=gnused