#48569 [NEW]: Called from the global scope error on code that worked before

From: Date: Tue, 16 Jun 2009 17:29:45 +0000
Subject: #48569 [NEW]: Called from the global scope error on code that worked before
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-138367@lists.php.net to get a copy of this message
From: ken at smallboxsoftware dot net Operating system: RHEL 5.3 PHP version: 5.3.0RC3 PHP Bug Type: Unknown/Other Function Bug description: Called from the global scope error on code that worked before Description: ------------ "Called from the global scope" error now appears in situations where it did not previously. for example: <?php function foo() { include "macro_to_process_arguments.php"; } ?> <?php // macro_to_process_arguments.php $args = func_get_args(); ?> Now triggers an error. Reproduce code: --------------- Called from the global scope Expected result: ---------------- Not to get the above error message. -- Edit bug report at http://bugs.php.net/?id=48569&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48569&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48569&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48569&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48569&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48569&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48569&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48569&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48569&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48569&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48569&r=support Expected behavior: http://bugs.php.net/fix.php?id=48569&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48569&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48569&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48569&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48569&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48569&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48569&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48569&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48569&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48569&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48569&r=mysqlcfg

« previous php.bugs (#138367) next »