laruence/php-yaf — pull request #94 by mostvotedplaya (2014-04-23 13:13:54+00:00)
Title: Strange behavior.

I have been using the latest version of Yaf on xampp and i kept running into issues on the errorController at first i assumed it may of been a memory leak but then i think i pinpointed the issue:

object(Yaf_Exception_LoadFailed_Action)#13 (8) {
["string":"Exception":private]=>
string(0) ""
["file":protected]=>
string(29) "C:\xampp\htdocs\dev\index.php"
["line":protected]=>
int(13)
["trace":"Exception":private]=>
array(1) {
[0]=>
array(6) {
["file"]=>
string(29) "C:\xampp\htdocs\dev\index.php"
["line"]=>
int(13)
["function"]=>
string(3) "run"
["class"]=>
string(15) "Yaf_Application"
["type"]=>
string(2) "->"
["args"]=>
array(0) {
}
}
}
["message":protected]=>
string(49) "There is no method indexAction in IndexController"
["code":protected]=>
int(517)
["previous":protected]=>
NULL
["previous":"Exception":private]=>
&UNKNOWN:0
}

I believe the issue is &UNKNOWN:0, i checked a normal exception and when there is no previous the value is null so i made the change below and tested it and shows null as expected.