Mantis - Quercus
Viewing Issue Advanced Details
2560 minor always 03-29-08 00:54 04-16-08 06:10
etzel  
nam  
normal  
closed  
fixed  
none    
none 3.1.6  
0002560: ArrayIndexOutOfBoundsException in set_error_handler
Using today's SVN version of Resin I got this when starting Drupal 5.7:

java.lang.ArrayIndexOutOfBoundsException: 12
    at com.caucho.quercus.env.Env.setErrorHandler(Env.java:4270)
    ...
Patch

Index: modules/quercus/src/com/caucho/quercus/env/Env.java
===================================================================
--- modules/quercus/src/com/caucho/quercus/env/Env.java (revision 3994)
+++ modules/quercus/src/com/caucho/quercus/env/Env.java (working copy)
@@ -264,8 +264,8 @@
 
   private LocaleInfo _locale;
 
- private Callback [] _prevErrorHandlers = new Callback[B_STRICT + 1];
- private Callback [] _errorHandlers = new Callback[B_STRICT + 1];
+ private Callback [] _prevErrorHandlers = new Callback[B_RECOVERABLE_ERROR + 1];
+ private Callback [] _errorHandlers = new Callback[B_RECOVERABLE_ERROR + 1];
 
   private Callback _prevExceptionHandler;
   private Callback _exceptionHandler;

Notes
(0002931)
etzel   
03-29-08 01:04   
Some questions regarding bug reporting policy (sorry if this is not the right place to ask them)

1) should I report bugs found in SVN version or only in release version?
2) should I report such simple bugs?
3) should I provide patches?
(0002975)
nam   
04-16-08 06:10   
Generally, we do not allow 3rd party SVN commits but we do take patches as suggestions for fixes.