Req #19431 [Opn->Bgs]: Stopping include execution from within a function

From: Date: Fri, 31 Dec 2010 23:59:31 +0000
Subject: Req #19431 [Opn->Bgs]: Stopping include execution from within a function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-157450@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=19431&edit=1 ID: 19431 Updated by: jani@php.net Reported by: thomas at unifiedconsulting dot com Summary: Stopping include execution from within a function -Status: Open +Status: Bogus Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: RedHat 7.1 PHP Version: 4.2.2 Block user comment: N Private report: N New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2002-09-16 04:54:30] thomas at unifiedconsulting dot com 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 this bug report at http://bugs.php.net/bug.php?id=19431&edit=1

« previous php.bugs (#157450) next »