Show
Ignore:
Timestamp:
08/14/07 13:08:41 (1 year ago)
Author:
hans
Message:

Fix for #242 in 0.9.5 branch

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/branches/0.9.5/ChangeLog

    r305 r324  
     12007-08-14  Hans Rakers <hans at react.nl> 
     2 
     3        * Optimizer fix for #242. PHP-5.2.1 introduces a ZEND_JMP before a 
     4          ZEND_FETCH_CLASS/ZEND_CATCH which the optimizer did not handle 
     5          correctly, resulting in uncaught exceptions. (Thanks to warwickshaw) 
     6 
    172007-05-06  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
    28 
  • eaccelerator/branches/0.9.5/optimize.c

    r266 r324  
    29832983                                                op->extended_value = 0; 
    29842984                                        } 
     2985#  if (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 2 && PHP_RELEASE_VERSION >= 1) || PHP_MAJOR_VERSION >= 6 
     2986                                        /* php >= 5.2.1 introduces a ZEND_JMP before a ZEND_FETCH_CLASS and ZEND_CATCH 
     2987                                           this leaves those blocks intact */ 
     2988                                        else if ((op+1)->opcode == ZEND_FETCH_CLASS && (op+2)->opcode == ZEND_CATCH) { /* fix for #242 */ 
     2989                                                p->follow = &bb[line_num]; 
     2990                                        } 
     2991#  endif 
    29852992#endif 
    29862993                                        break;