Closed GoogleCodeExporter closed 9 years ago
curl_setopt() [<a href='function.curl-setopt'>function.curl-setopt</a>]: cannot
represent a stream of type Output as a STDIO FILE
Original comment by ryan.bra...@gmail.com
on 11 Jul 2011 at 4:12
Original comment by ryan.bra...@gmail.com
on 20 Jul 2011 at 9:30
Something like this:
function handleAllErrors($errno, $errstr, $errfile, $errline, $errcontext) {
$errorId = basename($errfile, ".php") . "-$errline-" . time();
workbenchLog(LOG_CRIT, "F", $errorId . ":" . print_r(debug_backtrace(), true));
switch ($errno) {
case E_PARSE:
case E_ERROR:
case E_USER_ERROR:
case E_RECOVERABLE_ERROR:
throw new WorkbenchHandledException("A fatal error occurred. Contact your administrator and provide the following error id:\n [$errorId]", 0);
default:
/* Swallow and don't execute PHP internal error handler */
return true;
}
}
set_error_handler('handleAllErrors', E_STRICT);
Original comment by ryan.bra...@gmail.com
on 20 Jul 2011 at 4:59
r901
Original comment by ryan.bra...@gmail.com
on 25 Jul 2011 at 7:47
Original comment by ryan.bra...@gmail.com
on 29 Aug 2011 at 5:33
Original issue reported on code.google.com by
ryan.bra...@gmail.com
on 11 Jul 2011 at 4:09