Changeset 340

Show
Ignore:
Timestamp:
02/13/08 00:45:49 (7 months ago)
Author:
bart
Message:

Add new opcodes introduced in PHP 5.3

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • eaccelerator/trunk/ChangeLog

    r337 r340  
     12008-02-12  Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> 
     2                 
     3                * Add new opcodes introduced in PHP 5.3 
     4 
    152007-08-20  Hans Rakers <hans at react.nl> 
    26 
  • eaccelerator/trunk/eaccelerator.h

    r337 r340  
    4848#if PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 2 
    4949#   define ZEND_ENGINE_2_2 
     50#endif 
     51 
     52#if PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 3 
     53#   define ZEND_ENGINE_2_3 
    5054#endif 
    5155 
  • eaccelerator/trunk/opcodes.c

    r286 r340  
    148148  OPDEF("NEW",                       EXT_UNUSED | OP1_STD    | OP2_UNUSED | RES_VAR), /* 68 */ 
    149149#endif 
     150#ifdef ZEND_ENGINE_2_3 
     151  OPDEF("INIT_NS_FCALL_BY_NAME",     EXT_STD    | OP1_STD    | OP1_STD    | RES_STD), /* 69 */ 
     152#else 
    150153  OPDEF("JMP_NO_CTOR",               EXT_UNUSED | OP1_STD    | OP2_OPLINE | RES_UNUSED), /* 69 */ 
     154#endif 
    151155  OPDEF("FREE",                      EXT_UNUSED | OP1_TMP    | OP2_UNUSED | RES_UNUSED), /* 70 */ 
    152156  OPDEF("INIT_ARRAY",                EXT_BIT    | OP1_STD    | OP2_STD    | RES_TMP), /* 71 */ 
     
    239243  OPDEF("DECLARE_FUNCTION",          EXT_UNUSED | OP1_STD    | OP2_STD    | RES_UNUSED), /* 141 */ 
    240244  OPDEF("RAISE_ABSTRACT_ERROR",      EXT_UNUSED | OP1_UNUSED | OP2_UNUSED | RES_UNUSED), /* 142 */ 
     245#ifdef ZEND_ENGINE_2_3 
     246  OPDEF("DECLARE_CONST",             EXT_DECLARE| OP1_STD    | OP2_STD    | RES_UNUSED), /* 143 */ 
     247#else 
    241248  OPDEF("START_NAMESPACE",           EXT_UNUSED | OP1_STD    | OP2_UNUSED | RES_UNUSED), /* 143 */ 
     249#endif 
    242250  OPDEF("ADD_INTERFACE",             EXT_IFACE  | OP1_CLASS  | OP2_CLASS  | RES_UNUSED), /* 144 */ 
    243251  OPDEF("VERIFY_INSTANCEOF",         EXT_UNUSED | OP1_CLASS  | OP2_STD    | RES_UNUSED), /* 145 */ 
     
    249257  , 
    250258  OPDEF("USER_OPCODE",               EXT_STD    | OP1_UNUSED | OP2_UNUSED | RES_STD)  /* 150 */ 
    251 # endif     
     259# endif 
     260# ifdef ZEND_ENGINE_2_3 
     261  , 
     262  OPDEF("UNDEF",                    EXT_UNUSED | OP1_UNUSED | OP2_UNUSED | RES_UNUSED), /* 151 */ 
     263  OPDEF("JMP_SET",                  EXT_UNUSED | OP1_STD    | OP2_JMPADDR| RES_UNUSED) /* 152 */ 
     264# endif 
    252265#endif 
    253266};