Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

error handling

  • Loading branch information...
commit c8ba76da5cb60d246c6e2155b489dc0420945996 1 parent c34a50b
root authored
4 library/php/classes/Nf/Error/Handler.php
View
@@ -149,7 +149,9 @@ public static function displayAndLogError($str, $httpCode) {
$config->error->forward->controller,
$config->error->forward->action
)) {
- trigger_error($str);
+ echo '** Nf: Cannot instantiate error module, printing error message **' . PHP_EOL . PHP_EOL;
+ //$response->displayError($str);
+ echo PHP_EOL;
}
return true;
}
1  library/php/classes/Nf/Front/Response/Cli.php
View
@@ -17,7 +17,6 @@ public function clearHeaders() {
return false;
}
-
public function setHttpResponseCode($code) {
return true;
}
4 library/php/classes/Nf/Session.php
View
@@ -28,6 +28,7 @@ public static function start() {
session_name($config->session->cookie->name);
session_set_cookie_params(0, $config->session->cookie->path, $config->session->cookie->domain, false, true);
+
session_set_save_handler(
array(&$sessionHandler, 'open'),
array(&$sessionHandler, 'close'),
@@ -38,10 +39,9 @@ public static function start() {
);
register_shutdown_function('session_write_close');
session_start();
- //session_regenerate_id(true);
+ // session_regenerate_id(true);
Registry::set('session', $sessionHandler);
-
return $sessionHandler;
}
Please sign in to comment.
Something went wrong with that request. Please try again.