Mantis - Quercus
Viewing Issue Advanced Details
5773 trivial always 07-07-14 04:42 07-07-14 04:42
felfert  
 
normal  
new  
open  
none    
none  
0005773: context parameter of custom PHP errror handler should be of type array
Version: current SVN as of right now.

I am attemting to get ontoWiki working in quercus and stumbled over the following:

In modules/quercus/src/com/caucho/quercus/env/Env.java, the last parameter (context) is set to NullValue.NULL.
According to the documentation at http://www.php.net/manual/en/function.set-error-handler.php [^] this is wrong and triggers nested errors when attempting to use the following PHP error handler signature:

function errorHandler ($errno, $errstr, $errfile, $errline, array $errcontext)
{
 ...
}
The attached patch fixes this problem.
 resin-svn-quercus-errorhanderinvocation.diff [^] (572 bytes) 07-07-14 04:42

There are no notes attached to this issue.