#48569 [Asn->WFx]: Called from the global scope error on code that worked before

From: Date: Tue, 28 Jul 2009 12:36:41 +0000
Subject: #48569 [Asn->WFx]: 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-140361@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 +Status: Wont fix Bug Type: Scripting Engine problem Operating System: RHEL 5.3 PHP Version: 5.3.0RC3 Assigned To: dmitry Previous Comments: ------------------------------------------------------------------------ [2009-07-28 12:34:32] dmitry@php.net It's not going to be fixed. It worked before not on purpose, but because of wired func_get_args() implementation. ------------------------------------------------------------------------ [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

« previous php.bugs (#140361) next »