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

From: Date: Thu, 18 Jun 2009 15:14:50 +0000
Subject: #48569 [Opn->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-138473@lists.php.net to get a copy of this message
ID: 48569 Updated by: johannes@php.net Reported By: ken at smallboxsoftware dot net -Status: Open +Status: Assigned Bug Type: Scripting Engine problem Operating System: RHEL 5.3 PHP Version: 5.3.0RC3 -Assigned To: +Assigned To: dmitry 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

« previous php.bugs (#138473) next »