Req #46974 [Fbk->NoF]: Closure and Namespaces bug! FATAL ERROR

From: Date: Sun, 24 Jan 2016 04:22:40 +0000
Subject: Req #46974 [Fbk->NoF]: Closure and Namespaces bug! FATAL ERROR
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-198850@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=46974&edit=1 ID: 46974 Updated by: php-bugs@lists.php.net Reported by: info at netmosfera dot it Summary: Closure and Namespaces bug! FATAL ERROR -Status: Feedback +Status: No Feedback Type: Feature/Change Request Package: Scripting Engine problem Operating System: * PHP Version: 5.3.0alpha3 Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2016-01-16 13:34:52] danack@php.net The initial code reported as a bug works, and the request for namespaced autoloaders is possible in userland code with no new core functionality needed. If there is still an issue, please cam you clarify what it is? ------------------------------------------------------------------------ [2009-01-09 18:55:57] stas@php.net I think you can easily implement it in user-space by using either one autoloader checking class name or using multiple autoloaders and http://www.php.net/manual/en/function.spl-autoload-register.php I'm not sure it is practical to do it in the engine as it would require a lot of search around for autoloaders by the engine. I think it's better done in user-space. ------------------------------------------------------------------------ [2009-01-02 01:11:21] info at netmosfera dot it hi, thanks for accepting this bug i have one request, is possible to make autoloads for namespaces? is this back compatible? namespace a { function __autoload(){echo "a";} new Pippo(); } namespace b { function __autoload(){echo "b";} new Pippo(); } thank you ------------------------------------------------------------------------ [2008-12-30 17:19:24] info at netmosfera dot it ok, with __autoload in global namespace works if you remove the closure but works too where's the problem? ------------------------------------------------------------------------ [2008-12-30 16:50:06] info at netmosfera dot it uhm... autoload is not called! another suggest: Closure is a special class\type so it must be global in a namespace i have to use public function method(\Closure $x){} instead of public function method(Closure $x){} is it correct? Closure is a special type and final too ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=46974 -- Edit this bug report at https://bugs.php.net/bug.php?id=46974&edit=1

« previous php.bugs (#198850) next »