New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RobotLoader kills PHP 5.3.6 #1211
Comments
I reproduced the error on a second PC with Windows 7 and PHP 5.3.6. The problem is on this line. # Current problematic code
call_user_func(function() use ($info) { require $info['file']; });
echo "HERE\n"; # see below Actually, current code pass, When I chage the code in this way, everything works. # Changed code
call_user_func(function($info) { require $info['file']; }, $info); It is obviously PHP bug, but I didn't find the appropriate bugfix. Current code is working with PHP 5.3.7. So maybe the #54358 bug is related, because I can see in debug_backtrace() this records, especially note the last one:
Or see the PHP 5.3.7 changelog, it is a lot of bug fixes in this area, including private one. |
Good point. |
👍 commit #f36f5daab168925ccd1b4f7f35faa434be076dc6 no work on PHP 5.3.6 (was solving - http://forum.nette.org/cs/15256-php-5-3-6-502-na-hostingu-savana-pri-kratsim-contentu) |
I'm testing applications with PHP 5.3.6 on Windows 7 (don't know if issue is positive on Linux) and I discoverd strange behaviour of RobotLoader.
In application, I get
Notice: Undefined index: file
on this line. The$info
is an empty array.So, I ran the tests and the test
Nette/Loaders/RobotLoader.phpt
kills the PHP process.The bug has been introduced by commit removed usage of Nette\Utils\LimitedScope.
I hope, someone can reproduce it and find why. I can try it, but next week later.
The text was updated successfully, but these errors were encountered: