Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
--TEST--
Check for Yaf_Dispatcher::dispatch() of errors while loading executor
--SKIPIF--
--INI--
yaf.use_namespace=0
yaf.use_spl_autoload=0
--FILE--
array(
"directory" => APPLICATION_PATH,
),
);
$app = new Yaf_Application($config);
$dispatcher = $app->getDispatcher();
$request = new Yaf_Request_Simple();
set_error_handler(function ($no, $msg) {
var_dump(substr($msg, 0, 100));
});
$request->setControllerName(str_repeat("Index", 1024 * 1024));
try {
$dispatcher->dispatch($request);
} catch (Exception $e) {
var_dump(substr($e->getMessage(), 0, 100));
}
$request->setControllerName("index");
try {
$dispatcher->dispatch($request);
} catch (Exception $e) {
var_dump($e->getMessage());
}
file_put_contents(APPLICATION_PATH . "/controllers/Index.php", "xxx");
try {
$dispatcher->dispatch($request);
} catch (Exception $e) {
var_dump($e->getMessage());
}
file_put_contents(APPLICATION_PATH . "/controllers/Index.php", <<dispatch($request);
} catch (Exception $e) {
var_dump($e->getMessage());
}
$request->setControllerName("dummy");
file_put_contents(APPLICATION_PATH . "/controllers/Dummy.php", <<dispatch($request);
} catch (Exception $e) {
var_dump($e->getMessage());
}
$request->setControllerName("dummy1");
file_put_contents(APPLICATION_PATH . "/controllers/Dummy1.php", <<dispatch($request);
} catch (Exception $e) {
var_dump($e->getMessage());
}
$request->setControllerName("dummy2");
file_put_contents(APPLICATION_PATH . "/controllers/Dummy2.php", <<dispatch($request);
} catch (Exception $e) {
var_dump($e->getMessage());
}
$request->setControllerName("dummy3");
file_put_contents(APPLICATION_PATH . "/controllers/Dummy3.php", << NULL);
}
PHP
);
try {
$dispatcher->dispatch($request);
} catch (Exception $e) {
var_dump($e->getMessage());
}
$request->setControllerName("dummy4");
file_put_contents(APPLICATION_PATH . "/controllers/Dummy4.php", << "actions/index.php",
"foo" => "actions/foo.php",
);
}
PHP
);
try {
$dispatcher->dispatch($request);
} catch (Exception $e) {
var_dump($e->getMessage());
}
file_put_contents(APPLICATION_PATH . "/actions/index.php", <<dispatch($request);
} catch (Exception $e) {
var_dump($e->getMessage());
}
try {
$dispatcher->dispatch($request);
} catch (Exception $e) {
var_dump($e->getMessage());
}
$request->setActionName("foo");
file_put_contents(APPLICATION_PATH . "/actions/foo.php", <<dispatch($request);
?>
--CLEAN--
--EXPECTF--
string(100) "path too long while loading 'Indexindexindexindexindexindexindexindexindexindexindexindexindexindexi"
string(%d) "Failed opening controller script %sIndex.php: No such file or directory"
xxxstring(%d) "Could not find class IndexController in controller script %sIndex.php"
string(73) "Controller 'IndexController' is not a subclass of Yaf_Controller_Abstract"
string(49) "There is no method indexAction in DummyController"
string(50) "There is no method indexAction in Dummy1Controller"
string(60) "There is no method indexAction in Dummy2Controller::$actions"
string(70) "Action 'index' in Dummy3Controller::actions does not have a valid path"
string(%s) "Failed opening action script %sindex.php: No such file or directory"
string(61) "Action 'IndexAction' is not a subclass of Yaf_Action_Abstract"
string(61) "Action 'IndexAction' is not a subclass of Yaf_Action_Abstract"
Fatal error: Class FooAction contains 1 abstract method and must therefore be declared abstract or implement the remaining method%s(Yaf_Action_Abstract::execute) in %sfoo.php on line %d