#19431 [NEW]: Stopping include execution from within a function

From: Date: Mon, 16 Sep 2002 09:54:30 +0000
Subject: #19431 [NEW]: Stopping include execution from within a function
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19431@lists.php.net to get a copy of this message
From: thomas@unifiedconsulting.com Operating system: RedHat 7.1 PHP version: 4.2.2 PHP Bug Type: Feature/Change Request Bug description: Stopping include execution from within a function Currently, according to the docs for return(), "If called from the global scope, then execution of the current script file is ended. If the current script file was include()ed or require()ed, then control is passed back to the calling file." However, there does not seem to be a way to pass control back to the calling file from within a function. If this is by design for some reason, maybe it should be noted. Otherwise, either return should be modified some how to support this functionality (doubtful) or some other function should be provided to give this capability. -- Edit bug report at http://bugs.php.net/?id=19431&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19431&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19431&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19431&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19431&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19431&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19431&r=support Expected behavior: http://bugs.php.net/fix.php?id=19431&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19431&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19431&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19431&r=globals

« previous php.bugs (#19431) next »