#48569 [Asn]: Called from the global scope error on code that worked before
| From: | dmitry@php.net | Date: | Tue, 28 Jul 2009 12:34:32 +0000 |
| Subject: | #48569 [Asn]: Called from the global scope error on code that worked before | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-140360@lists.php.net to get a copy of this message | ||
ID: 48569
Updated by: dmitry@php.net
Reported By: ken at smallboxsoftware dot net
Status: Assigned
Bug Type: Scripting Engine problem
Operating System: RHEL 5.3
PHP Version: 5.3.0RC3
Assigned To: dmitry
New Comment:
It's not going to be fixed. It worked before not on purpose, but
because of wired func_get_args() implementation.
Previous Comments:
------------------------------------------------------------------------
[2009-06-16 17:29:44] ken at smallboxsoftware dot net
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 this bug report at http://bugs.php.net/?id=48569&edit=1