Error: Argument 3 passed to iterator_apply() must be an array, integer given
Error: iterator_apply() expects parameter 3 to be array, integer given
NULL
-Error: iterator_apply() expects parameter 2 to be valid callback,%sstring given
+Error: iterator_apply() expects parameter 2 to be a valid callback, function 'non_existing_functon' not found or invalid function name
NULL
Error: iterator_apply() expects at most 3 parameters, 4 given
NULL
--EXPECTF--
===EMPTY===
string(9) ".inc,.php"
-%stestclass.inc
+/home/felipe/php5/ext/spl/tests/testclass.inc
Exception: Class TestClass could not be loaded
===()===
Exception: Class TestClass could not be loaded
===(1)===
Exception: Class TestClass could not be loaded
===(.inc,,.php.inc)===
-%stestclass
-%stestclass.php.inc
+/home/felipe/php5/ext/spl/tests/testclass
+/home/felipe/php5/ext/spl/tests/testclass.php.inc
Exception: Class TestClass could not be loaded
===()===
Exception: Class TestClass could not be loaded
===LOAD===
TestFunc1(TestClass)
TestFunc2(TestClass)
-%stestclass.class.inc
+/home/felipe/php5/ext/spl/tests/testclass.class.inc
bool(true)
===NOFUNCTION===
-Exception: Function 'unavailable_autoload_function' not found
+Exception: Function 'unavailable_autoload_function' not found (function 'unavailable_autoload_function' not found or invalid function name)
===DONE===
===DONE===
<?php exit(0); ?>
--EXPECTF--
-Exception: Passed array specifies a non static method but no object
+Exception: Passed array specifies a non static method but no object (non-static method MyAutoLoader::autoLoad() should not be called statically)
MyAutoLoader::autoLoad(TestClass)
MyAutoLoader::autoThrow(TestClass)
Exception: Unavailable
<?php exit(0); ?>
--EXPECTF--
string(22) "MyAutoLoader::notExist"
-Function 'MyAutoLoader::notExist' not found
+Function 'MyAutoLoader::notExist' not found (class 'MyAutoLoader' does not have a method 'notexist')
string(22) "MyAutoLoader::noAccess"
-Function 'MyAutoLoader::noAccess' not callable
+Function 'MyAutoLoader::noAccess' not callable (cannot access protected method MyAutoLoader::noAccess())
string(22) "MyAutoLoader::autoLoad"
ok
string(22) "MyAutoLoader::dynaLoad"
-Function 'MyAutoLoader::dynaLoad' not callable
+Function 'MyAutoLoader::dynaLoad' not callable (non-static method MyAutoLoader::dynaLoad() should not be called statically)
array(2) {
[0]=>
[1]=>
string(8) "notExist"
}
-Passed array does not specify an existing static method
+Passed array does not specify an existing static method, (class 'MyAutoLoader' does not have a method 'notexist')
array(2) {
[0]=>
[1]=>
string(8) "noAccess"
}
-Passed array does not specify a callable static method
+Passed array does not specify a callable static method, (cannot access protected method MyAutoLoader::noAccess())
array(2) {
[0]=>
[1]=>
string(8) "dynaLoad"
}
-Passed array specifies a non static method but no object
+Passed array specifies a non static method but no object (non-static method MyAutoLoader::dynaLoad() should not be called statically)
array(2) {
[0]=>
[1]=>
string(8) "notExist"
}
-Passed array does not specify an existing method
+Passed array does not specify an existing method, (class 'MyAutoLoader' does not have a method 'notexist')
array(2) {
[0]=>
[1]=>
string(8) "noAccess"
}
-Passed array does not specify a callable method
+Passed array does not specify a callable method, (cannot access protected method MyAutoLoader::noAccess())
array(2) {
[0]=>
int(0)
====2====
string(22) "MyAutoLoader::dynaLoad"
-LogicException: Function 'MyAutoLoader::dynaLoad' not callable
+LogicException: Function 'MyAutoLoader::dynaLoad' not callable (non-static method MyAutoLoader::dynaLoad() should not be called statically)
int(0)
====3====
array(2) {
[1]=>
string(8) "dynaLoad"
}
-LogicException: Passed array specifies a non static method but no object
+LogicException: Passed array specifies a non static method but no object (non-static method MyAutoLoader::dynaLoad() should not be called statically)
int(0)
====5====
array(2) {