Skip to content
Snippets Groups Projects
Commit ab15569d authored by Ghislain Loas's avatar Ghislain Loas
Browse files

add error_reporting=E_ALL to build.sh upgrade_db.php and catching warnings in patch_417

parent 5749c0d5
2 merge requests!4230master in,!4228add error_reporting=E_ALL to build.sh upgrade_db.php and catching warnings in patch_417
Pipeline #14863 failed with stage
in 45 minutes and 56 seconds
......@@ -14,7 +14,7 @@ touch local.php
php --version
php scripts/upgrade_db.php
php -d display_errors=on -d error_reporting=E_ALL scripts/upgrade_db.php
cd cosmogramme
cp config.ref.php config.php
......
......@@ -157,9 +157,10 @@ class Class_Migration_CleanProfileCfgModules {
$dispatcher = $this->_getDispatcherFor($module);
$class_name = $dispatcher->getControllerClass($request);
try {
$class_name = $dispatcher->loadClass($class_name);
// could throw warning if loadClass didn't work.
$class_name = @$dispatcher->loadClass($class_name);
return (new $class_name($request, new Zend_Controller_Response_Http, []))
->isDispatchable($dispatcher->getActionMethod($request));
->isDispatchable($dispatcher->getActionMethod($request));
} catch (Exception $e) {
return false;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment