PHP  
 PHP: Test and Code Coverage Analysis
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

LCOV - code coverage report
Current view: top level - Zend - zend_vm_execute.h (source / functions) Hit Total Coverage
Test: PHP Code Coverage Lines: 7256 15495 46.8 %
Date: 2014-07-21 Functions: 643 1234 52.1 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :    +----------------------------------------------------------------------+
       3             :    | Zend Engine                                                          |
       4             :    +----------------------------------------------------------------------+
       5             :    | Copyright (c) 1998-2014 Zend Technologies Ltd. (http://www.zend.com) |
       6             :    +----------------------------------------------------------------------+
       7             :    | This source file is subject to version 2.00 of the Zend license,     |
       8             :    | that is bundled with this package in the file LICENSE, and is        |
       9             :    | available through the world-wide-web at the following url:           |
      10             :    | http://www.zend.com/license/2_00.txt.                                |
      11             :    | If you did not receive a copy of the Zend license and are unable to  |
      12             :    | obtain it through the world-wide-web, please send a note to          |
      13             :    | license@zend.com so we can mail you a copy immediately.              |
      14             :    +----------------------------------------------------------------------+
      15             :    | Authors: Andi Gutmans <andi@zend.com>                                |
      16             :    |          Zeev Suraski <zeev@zend.com>                                |
      17             :    |          Dmitry Stogov <dmitry@zend.com>                             |
      18             :    +----------------------------------------------------------------------+
      19             : */
      20             : 
      21             : #ifdef ZEND_WIN32
      22             : # pragma warning(once : 4101)
      23             : # pragma warning(once : 6235)
      24             : # pragma warning(once : 6237)
      25             : # pragma warning(once : 6239)
      26             : # pragma warning(once : 6240)
      27             : # pragma warning(once : 6285)
      28             : # pragma warning(once : 6286)
      29             : # pragma warning(once : 6326)
      30             : #endif
      31             : static user_opcode_handler_t zend_user_opcode_handlers[256] = {
      32             :         (user_opcode_handler_t)NULL,
      33             :         (user_opcode_handler_t)NULL,
      34             :         (user_opcode_handler_t)NULL,
      35             :         (user_opcode_handler_t)NULL,
      36             :         (user_opcode_handler_t)NULL,
      37             :         (user_opcode_handler_t)NULL,
      38             :         (user_opcode_handler_t)NULL,
      39             :         (user_opcode_handler_t)NULL,
      40             :         (user_opcode_handler_t)NULL,
      41             :         (user_opcode_handler_t)NULL,
      42             :         (user_opcode_handler_t)NULL,
      43             :         (user_opcode_handler_t)NULL,
      44             :         (user_opcode_handler_t)NULL,
      45             :         (user_opcode_handler_t)NULL,
      46             :         (user_opcode_handler_t)NULL,
      47             :         (user_opcode_handler_t)NULL,
      48             :         (user_opcode_handler_t)NULL,
      49             :         (user_opcode_handler_t)NULL,
      50             :         (user_opcode_handler_t)NULL,
      51             :         (user_opcode_handler_t)NULL,
      52             :         (user_opcode_handler_t)NULL,
      53             :         (user_opcode_handler_t)NULL,
      54             :         (user_opcode_handler_t)NULL,
      55             :         (user_opcode_handler_t)NULL,
      56             :         (user_opcode_handler_t)NULL,
      57             :         (user_opcode_handler_t)NULL,
      58             :         (user_opcode_handler_t)NULL,
      59             :         (user_opcode_handler_t)NULL,
      60             :         (user_opcode_handler_t)NULL,
      61             :         (user_opcode_handler_t)NULL,
      62             :         (user_opcode_handler_t)NULL,
      63             :         (user_opcode_handler_t)NULL,
      64             :         (user_opcode_handler_t)NULL,
      65             :         (user_opcode_handler_t)NULL,
      66             :         (user_opcode_handler_t)NULL,
      67             :         (user_opcode_handler_t)NULL,
      68             :         (user_opcode_handler_t)NULL,
      69             :         (user_opcode_handler_t)NULL,
      70             :         (user_opcode_handler_t)NULL,
      71             :         (user_opcode_handler_t)NULL,
      72             :         (user_opcode_handler_t)NULL,
      73             :         (user_opcode_handler_t)NULL,
      74             :         (user_opcode_handler_t)NULL,
      75             :         (user_opcode_handler_t)NULL,
      76             :         (user_opcode_handler_t)NULL,
      77             :         (user_opcode_handler_t)NULL,
      78             :         (user_opcode_handler_t)NULL,
      79             :         (user_opcode_handler_t)NULL,
      80             :         (user_opcode_handler_t)NULL,
      81             :         (user_opcode_handler_t)NULL,
      82             :         (user_opcode_handler_t)NULL,
      83             :         (user_opcode_handler_t)NULL,
      84             :         (user_opcode_handler_t)NULL,
      85             :         (user_opcode_handler_t)NULL,
      86             :         (user_opcode_handler_t)NULL,
      87             :         (user_opcode_handler_t)NULL,
      88             :         (user_opcode_handler_t)NULL,
      89             :         (user_opcode_handler_t)NULL,
      90             :         (user_opcode_handler_t)NULL,
      91             :         (user_opcode_handler_t)NULL,
      92             :         (user_opcode_handler_t)NULL,
      93             :         (user_opcode_handler_t)NULL,
      94             :         (user_opcode_handler_t)NULL,
      95             :         (user_opcode_handler_t)NULL,
      96             :         (user_opcode_handler_t)NULL,
      97             :         (user_opcode_handler_t)NULL,
      98             :         (user_opcode_handler_t)NULL,
      99             :         (user_opcode_handler_t)NULL,
     100             :         (user_opcode_handler_t)NULL,
     101             :         (user_opcode_handler_t)NULL,
     102             :         (user_opcode_handler_t)NULL,
     103             :         (user_opcode_handler_t)NULL,
     104             :         (user_opcode_handler_t)NULL,
     105             :         (user_opcode_handler_t)NULL,
     106             :         (user_opcode_handler_t)NULL,
     107             :         (user_opcode_handler_t)NULL,
     108             :         (user_opcode_handler_t)NULL,
     109             :         (user_opcode_handler_t)NULL,
     110             :         (user_opcode_handler_t)NULL,
     111             :         (user_opcode_handler_t)NULL,
     112             :         (user_opcode_handler_t)NULL,
     113             :         (user_opcode_handler_t)NULL,
     114             :         (user_opcode_handler_t)NULL,
     115             :         (user_opcode_handler_t)NULL,
     116             :         (user_opcode_handler_t)NULL,
     117             :         (user_opcode_handler_t)NULL,
     118             :         (user_opcode_handler_t)NULL,
     119             :         (user_opcode_handler_t)NULL,
     120             :         (user_opcode_handler_t)NULL,
     121             :         (user_opcode_handler_t)NULL,
     122             :         (user_opcode_handler_t)NULL,
     123             :         (user_opcode_handler_t)NULL,
     124             :         (user_opcode_handler_t)NULL,
     125             :         (user_opcode_handler_t)NULL,
     126             :         (user_opcode_handler_t)NULL,
     127             :         (user_opcode_handler_t)NULL,
     128             :         (user_opcode_handler_t)NULL,
     129             :         (user_opcode_handler_t)NULL,
     130             :         (user_opcode_handler_t)NULL,
     131             :         (user_opcode_handler_t)NULL,
     132             :         (user_opcode_handler_t)NULL,
     133             :         (user_opcode_handler_t)NULL,
     134             :         (user_opcode_handler_t)NULL,
     135             :         (user_opcode_handler_t)NULL,
     136             :         (user_opcode_handler_t)NULL,
     137             :         (user_opcode_handler_t)NULL,
     138             :         (user_opcode_handler_t)NULL,
     139             :         (user_opcode_handler_t)NULL,
     140             :         (user_opcode_handler_t)NULL,
     141             :         (user_opcode_handler_t)NULL,
     142             :         (user_opcode_handler_t)NULL,
     143             :         (user_opcode_handler_t)NULL,
     144             :         (user_opcode_handler_t)NULL,
     145             :         (user_opcode_handler_t)NULL,
     146             :         (user_opcode_handler_t)NULL,
     147             :         (user_opcode_handler_t)NULL,
     148             :         (user_opcode_handler_t)NULL,
     149             :         (user_opcode_handler_t)NULL,
     150             :         (user_opcode_handler_t)NULL,
     151             :         (user_opcode_handler_t)NULL,
     152             :         (user_opcode_handler_t)NULL,
     153             :         (user_opcode_handler_t)NULL,
     154             :         (user_opcode_handler_t)NULL,
     155             :         (user_opcode_handler_t)NULL,
     156             :         (user_opcode_handler_t)NULL,
     157             :         (user_opcode_handler_t)NULL,
     158             :         (user_opcode_handler_t)NULL,
     159             :         (user_opcode_handler_t)NULL,
     160             :         (user_opcode_handler_t)NULL,
     161             :         (user_opcode_handler_t)NULL,
     162             :         (user_opcode_handler_t)NULL,
     163             :         (user_opcode_handler_t)NULL,
     164             :         (user_opcode_handler_t)NULL,
     165             :         (user_opcode_handler_t)NULL,
     166             :         (user_opcode_handler_t)NULL,
     167             :         (user_opcode_handler_t)NULL,
     168             :         (user_opcode_handler_t)NULL,
     169             :         (user_opcode_handler_t)NULL,
     170             :         (user_opcode_handler_t)NULL,
     171             :         (user_opcode_handler_t)NULL,
     172             :         (user_opcode_handler_t)NULL,
     173             :         (user_opcode_handler_t)NULL,
     174             :         (user_opcode_handler_t)NULL,
     175             :         (user_opcode_handler_t)NULL,
     176             :         (user_opcode_handler_t)NULL,
     177             :         (user_opcode_handler_t)NULL,
     178             :         (user_opcode_handler_t)NULL,
     179             :         (user_opcode_handler_t)NULL,
     180             :         (user_opcode_handler_t)NULL,
     181             :         (user_opcode_handler_t)NULL,
     182             :         (user_opcode_handler_t)NULL,
     183             :         (user_opcode_handler_t)NULL,
     184             :         (user_opcode_handler_t)NULL,
     185             :         (user_opcode_handler_t)NULL,
     186             :         (user_opcode_handler_t)NULL,
     187             :         (user_opcode_handler_t)NULL,
     188             :         (user_opcode_handler_t)NULL,
     189             :         (user_opcode_handler_t)NULL,
     190             :         (user_opcode_handler_t)NULL,
     191             :         (user_opcode_handler_t)NULL,
     192             :         (user_opcode_handler_t)NULL,
     193             :         (user_opcode_handler_t)NULL,
     194             :         (user_opcode_handler_t)NULL,
     195             :         (user_opcode_handler_t)NULL,
     196             :         (user_opcode_handler_t)NULL,
     197             :         (user_opcode_handler_t)NULL,
     198             :         (user_opcode_handler_t)NULL,
     199             :         (user_opcode_handler_t)NULL,
     200             :         (user_opcode_handler_t)NULL,
     201             :         (user_opcode_handler_t)NULL,
     202             :         (user_opcode_handler_t)NULL,
     203             :         (user_opcode_handler_t)NULL,
     204             :         (user_opcode_handler_t)NULL,
     205             :         (user_opcode_handler_t)NULL,
     206             :         (user_opcode_handler_t)NULL,
     207             :         (user_opcode_handler_t)NULL,
     208             :         (user_opcode_handler_t)NULL,
     209             :         (user_opcode_handler_t)NULL,
     210             :         (user_opcode_handler_t)NULL,
     211             :         (user_opcode_handler_t)NULL,
     212             :         (user_opcode_handler_t)NULL,
     213             :         (user_opcode_handler_t)NULL,
     214             :         (user_opcode_handler_t)NULL,
     215             :         (user_opcode_handler_t)NULL,
     216             :         (user_opcode_handler_t)NULL,
     217             :         (user_opcode_handler_t)NULL,
     218             :         (user_opcode_handler_t)NULL,
     219             :         (user_opcode_handler_t)NULL,
     220             :         (user_opcode_handler_t)NULL,
     221             :         (user_opcode_handler_t)NULL,
     222             :         (user_opcode_handler_t)NULL,
     223             :         (user_opcode_handler_t)NULL,
     224             :         (user_opcode_handler_t)NULL,
     225             :         (user_opcode_handler_t)NULL,
     226             :         (user_opcode_handler_t)NULL,
     227             :         (user_opcode_handler_t)NULL,
     228             :         (user_opcode_handler_t)NULL,
     229             :         (user_opcode_handler_t)NULL,
     230             :         (user_opcode_handler_t)NULL,
     231             :         (user_opcode_handler_t)NULL,
     232             :         (user_opcode_handler_t)NULL,
     233             :         (user_opcode_handler_t)NULL,
     234             :         (user_opcode_handler_t)NULL,
     235             :         (user_opcode_handler_t)NULL,
     236             :         (user_opcode_handler_t)NULL,
     237             :         (user_opcode_handler_t)NULL,
     238             :         (user_opcode_handler_t)NULL,
     239             :         (user_opcode_handler_t)NULL,
     240             :         (user_opcode_handler_t)NULL,
     241             :         (user_opcode_handler_t)NULL,
     242             :         (user_opcode_handler_t)NULL,
     243             :         (user_opcode_handler_t)NULL,
     244             :         (user_opcode_handler_t)NULL,
     245             :         (user_opcode_handler_t)NULL,
     246             :         (user_opcode_handler_t)NULL,
     247             :         (user_opcode_handler_t)NULL,
     248             :         (user_opcode_handler_t)NULL,
     249             :         (user_opcode_handler_t)NULL,
     250             :         (user_opcode_handler_t)NULL,
     251             :         (user_opcode_handler_t)NULL,
     252             :         (user_opcode_handler_t)NULL,
     253             :         (user_opcode_handler_t)NULL,
     254             :         (user_opcode_handler_t)NULL,
     255             :         (user_opcode_handler_t)NULL,
     256             :         (user_opcode_handler_t)NULL,
     257             :         (user_opcode_handler_t)NULL,
     258             :         (user_opcode_handler_t)NULL,
     259             :         (user_opcode_handler_t)NULL,
     260             :         (user_opcode_handler_t)NULL,
     261             :         (user_opcode_handler_t)NULL,
     262             :         (user_opcode_handler_t)NULL,
     263             :         (user_opcode_handler_t)NULL,
     264             :         (user_opcode_handler_t)NULL,
     265             :         (user_opcode_handler_t)NULL,
     266             :         (user_opcode_handler_t)NULL,
     267             :         (user_opcode_handler_t)NULL,
     268             :         (user_opcode_handler_t)NULL,
     269             :         (user_opcode_handler_t)NULL,
     270             :         (user_opcode_handler_t)NULL,
     271             :         (user_opcode_handler_t)NULL,
     272             :         (user_opcode_handler_t)NULL,
     273             :         (user_opcode_handler_t)NULL,
     274             :         (user_opcode_handler_t)NULL,
     275             :         (user_opcode_handler_t)NULL,
     276             :         (user_opcode_handler_t)NULL,
     277             :         (user_opcode_handler_t)NULL,
     278             :         (user_opcode_handler_t)NULL,
     279             :         (user_opcode_handler_t)NULL,
     280             :         (user_opcode_handler_t)NULL,
     281             :         (user_opcode_handler_t)NULL,
     282             :         (user_opcode_handler_t)NULL,
     283             :         (user_opcode_handler_t)NULL,
     284             :         (user_opcode_handler_t)NULL,
     285             :         (user_opcode_handler_t)NULL,
     286             :         (user_opcode_handler_t)NULL,
     287             :         (user_opcode_handler_t)NULL
     288             : };
     289             : 
     290             : static zend_uchar zend_user_opcodes[256] = {0,
     291             :         1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
     292             :         17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,
     293             :         33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,
     294             :         49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,
     295             :         65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,
     296             :         81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,
     297             :         97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,
     298             :         113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,
     299             :         129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,
     300             :         145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,
     301             :         161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,
     302             :         177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,
     303             :         193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,
     304             :         209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,
     305             :         225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,
     306             :         241,242,243,244,245,246,247,248,249,250,251,252,253,254,255
     307             : };
     308             : 
     309             : static opcode_handler_t zend_vm_get_opcode_handler(zend_uchar opcode, zend_op* op);
     310             : 
     311             : 
     312             : #undef OPLINE
     313             : #undef DCL_OPLINE
     314             : #undef USE_OPLINE
     315             : #undef LOAD_OPLINE
     316             : #undef SAVE_OPLINE
     317             : #define OPLINE EX(opline)
     318             : #define DCL_OPLINE
     319             : #define USE_OPLINE zend_op *opline = EX(opline);
     320             : #define LOAD_OPLINE()
     321             : #define SAVE_OPLINE()
     322             : #undef CHECK_EXCEPTION
     323             : #undef HANDLE_EXCEPTION
     324             : #undef HANDLE_EXCEPTION_LEAVE
     325             : #define CHECK_EXCEPTION() LOAD_OPLINE()
     326             : #define HANDLE_EXCEPTION() LOAD_OPLINE(); ZEND_VM_CONTINUE()
     327             : #define HANDLE_EXCEPTION_LEAVE() LOAD_OPLINE(); ZEND_VM_LEAVE()
     328             : #define LOAD_REGS()
     329             : #define ZEND_VM_CONTINUE()         return 0
     330             : #define ZEND_VM_RETURN()           return 1
     331             : #define ZEND_VM_ENTER()            return 2
     332             : #define ZEND_VM_LEAVE()            return 3
     333             : #define ZEND_VM_DISPATCH(opcode, opline) return zend_vm_get_opcode_handler(opcode, opline)(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
     334             : 
     335             : #define ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_INTERNAL execute_data TSRMLS_CC
     336             : 
     337      494383 : ZEND_API void execute_ex(zend_execute_data *execute_data TSRMLS_DC)
     338             : {
     339             :         DCL_OPLINE
     340             :         zend_bool original_in_execution;
     341             : 
     342             : 
     343             : 
     344      494383 :         original_in_execution = EG(in_execution);
     345      494383 :         EG(in_execution) = 1;
     346             : 
     347      494383 :         if (0) {
     348             : zend_vm_enter:
     349     2889766 :                 execute_data = i_create_execute_data_from_op_array(EG(active_op_array), 1 TSRMLS_CC);
     350             :         }
     351             : 
     352             :         LOAD_REGS();
     353             :         LOAD_OPLINE();
     354             : 
     355             :         while (1) {
     356             :         int ret;
     357             : #ifdef ZEND_WIN32
     358             :                 if (EG(timed_out)) {
     359             :                         zend_timeout(0);
     360             :                 }
     361             : #endif
     362             : 
     363   190945952 :                 if ((ret = OPLINE->handler(execute_data TSRMLS_CC)) > 0) {
     364     3382388 :                         switch (ret) {
     365             :                                 case 1:
     366      492800 :                                         EG(in_execution) = original_in_execution;
     367      492800 :                                         return;
     368             :                                 case 2:
     369     1444883 :                                         goto zend_vm_enter;
     370             :                                         break;
     371             :                                 case 3:
     372     1444705 :                                         execute_data = EG(current_execute_data);
     373             :                                         break;
     374             :                                 default:
     375             :                                         break;
     376             :                         }
     377             :                 }
     378             : 
     379   189006686 :         }
     380             :         zend_error_noreturn(E_ERROR, "Arrived at end of main loop which shouldn't happen");
     381             : }
     382             : 
     383      494176 : ZEND_API void zend_execute(zend_op_array *op_array TSRMLS_DC)
     384             : {
     385      494176 :         if (EG(exception)) {
     386           0 :                 return;
     387             :         } 
     388      988352 :         zend_execute_ex(i_create_execute_data_from_op_array(op_array, 0 TSRMLS_CC) TSRMLS_CC);
     389             : }
     390             : 
     391     1937305 : static int ZEND_FASTCALL zend_leave_helper_SPEC(ZEND_OPCODE_HANDLER_ARGS)
     392             : {
     393     1937305 :         zend_bool nested = EX(nested);
     394     1937305 :         zend_op_array *op_array = EX(op_array);
     395             : 
     396     1937305 :         EG(current_execute_data) = EX(prev_execute_data);
     397     1937305 :         EG(opline_ptr) = NULL;
     398     1937305 :         if (!EG(active_symbol_table)) {
     399             :                 i_free_compiled_variables(execute_data TSRMLS_CC);
     400             :         }
     401             : 
     402     1937305 :         zend_vm_stack_free((char*)execute_data - (ZEND_MM_ALIGNED_SIZE(sizeof(temp_variable)) * op_array->T) TSRMLS_CC);
     403             : 
     404     1937305 :         if ((op_array->fn_flags & ZEND_ACC_CLOSURE) && op_array->prototype) {
     405           1 :                 zval_ptr_dtor((zval**)&op_array->prototype);
     406             :         }
     407             : 
     408     1937305 :         if (nested) {
     409     1444705 :                 execute_data = EG(current_execute_data);
     410             :         }
     411     1937305 :         if (nested) {
     412     1444705 :                 USE_OPLINE
     413             : 
     414             :                 LOAD_REGS();
     415             :                 LOAD_OPLINE();
     416     1444705 :                 if (UNEXPECTED(opline->opcode == ZEND_INCLUDE_OR_EVAL)) {
     417             : 
     418       10722 :                         EX(function_state).function = (zend_function *) EX(op_array);
     419       10722 :                         EX(function_state).arguments = NULL;
     420             : 
     421       10722 :                         EG(opline_ptr) = &EX(opline);
     422       10722 :                         EG(active_op_array) = EX(op_array);
     423       10722 :                         EG(return_value_ptr_ptr) = EX(original_return_value);
     424       10722 :                         destroy_op_array(op_array TSRMLS_CC);
     425       10722 :                         efree(op_array);
     426       10722 :                         if (UNEXPECTED(EG(exception) != NULL)) {
     427          21 :                                 zend_throw_exception_internal(NULL TSRMLS_CC);
     428          21 :                                 HANDLE_EXCEPTION_LEAVE();
     429             :                         }
     430             : 
     431       10701 :                         ZEND_VM_INC_OPCODE();
     432       10701 :                         ZEND_VM_LEAVE();
     433             :                 } else {
     434     1433983 :                         EG(opline_ptr) = &EX(opline);
     435     1433983 :                         EG(active_op_array) = EX(op_array);
     436     1433983 :                         EG(return_value_ptr_ptr) = EX(original_return_value);
     437     1433983 :                         if (EG(active_symbol_table)) {
     438       36844 :                                 zend_clean_and_cache_symbol_table(EG(active_symbol_table) TSRMLS_CC);
     439             :                         }
     440     1433983 :                         EG(active_symbol_table) = EX(symbol_table);
     441             : 
     442     1433983 :                         EX(function_state).function = (zend_function *) EX(op_array);
     443     1433983 :                         EX(function_state).arguments = NULL;
     444             : 
     445     1433983 :                         if (EG(This)) {
     446      100754 :                                 if (UNEXPECTED(EG(exception) != NULL) && EX(call)->is_ctor_call) {
     447          23 :                                         if (EX(call)->is_ctor_result_used) {
     448          20 :                                                 Z_DELREF_P(EG(This));
     449             :                                         }
     450          46 :                                         if (Z_REFCOUNT_P(EG(This)) == 1) {
     451          22 :                                                 zend_object_store_ctor_failed(EG(This) TSRMLS_CC);
     452             :                                         }
     453             :                                 }
     454      100754 :                                 zval_ptr_dtor(&EG(This));
     455             :                         }
     456     1433983 :                         EG(This) = EX(current_this);
     457     1433983 :                         EG(scope) = EX(current_scope);
     458     1433983 :                         EG(called_scope) = EX(current_called_scope);
     459             : 
     460     1433983 :                         EX(call)--;
     461             : 
     462             :                         zend_vm_stack_clear_multiple(1 TSRMLS_CC);
     463             : 
     464     1433983 :                         if (UNEXPECTED(EG(exception) != NULL)) {
     465         154 :                                 zend_throw_exception_internal(NULL TSRMLS_CC);
     466         154 :                                 if (RETURN_VALUE_USED(opline) && EX_T(opline->result.var).var.ptr) {
     467           0 :                                         zval_ptr_dtor(&EX_T(opline->result.var).var.ptr);
     468             :                                 }
     469         154 :                                 HANDLE_EXCEPTION_LEAVE();
     470             :                         }
     471             : 
     472     1433829 :                         ZEND_VM_INC_OPCODE();
     473     1433829 :                         ZEND_VM_LEAVE();
     474             :                 }
     475             :         }
     476      492600 :         ZEND_VM_RETURN();
     477             : }
     478             : 
     479    20760210 : static int ZEND_FASTCALL zend_do_fcall_common_helper_SPEC(ZEND_OPCODE_HANDLER_ARGS)
     480             : {
     481    20760210 :         USE_OPLINE
     482    20760210 :         zend_bool should_change_scope = 0;
     483    20760210 :         zend_function *fbc = EX(function_state).function;
     484             :         zend_uint num_args;
     485             : 
     486             :         SAVE_OPLINE();
     487    20760210 :         EX(object) = EX(call)->object;
     488    20760210 :         if (UNEXPECTED((fbc->common.fn_flags & (ZEND_ACC_ABSTRACT|ZEND_ACC_DEPRECATED)) != 0)) {
     489        1116 :                 if (UNEXPECTED((fbc->common.fn_flags & ZEND_ACC_ABSTRACT) != 0)) {
     490           2 :                         zend_error_noreturn(E_ERROR, "Cannot call abstract method %s::%s()", fbc->common.scope->name, fbc->common.function_name);
     491             :                 }
     492        1114 :                 if (UNEXPECTED((fbc->common.fn_flags & ZEND_ACC_DEPRECATED) != 0)) {
     493        3342 :                         zend_error(E_DEPRECATED, "Function %s%s%s() is deprecated",
     494        1114 :                                 fbc->common.scope ? fbc->common.scope->name : "",
     495        1114 :                                 fbc->common.scope ? "::" : "",
     496             :                                 fbc->common.function_name);
     497        1114 :                         if (UNEXPECTED(EG(exception) != NULL)) {
     498           0 :                                 HANDLE_EXCEPTION();
     499             :                         }
     500             :                 }
     501             :         }
     502    22520074 :         if (fbc->common.scope &&
     503      883068 :                 !(fbc->common.fn_flags & ZEND_ACC_STATIC) &&
     504      876798 :                 !EX(object)) {
     505             : 
     506          32 :                 if (fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
     507             :                         /* FIXME: output identifiers properly */
     508          23 :                         zend_error(E_STRICT, "Non-static method %s::%s() should not be called statically", fbc->common.scope->name, fbc->common.function_name);
     509          23 :                         if (UNEXPECTED(EG(exception) != NULL)) {
     510           1 :                                 HANDLE_EXCEPTION();
     511             :                         }
     512             :                 } else {
     513             :                         /* FIXME: output identifiers properly */
     514             :                         /* An internal function assumes $this is present and won't check that. So PHP would crash by allowing the call. */
     515           9 :                         zend_error_noreturn(E_ERROR, "Non-static method %s::%s() cannot be called statically", fbc->common.scope->name, fbc->common.function_name);
     516             :                 }
     517             :         }
     518             : 
     519    20760198 :         if (fbc->type == ZEND_USER_FUNCTION || fbc->common.scope) {
     520     2213371 :                 should_change_scope = 1;
     521     2213371 :                 EX(current_this) = EG(This);
     522     2213371 :                 EX(current_scope) = EG(scope);
     523     2213371 :                 EX(current_called_scope) = EG(called_scope);
     524     2213371 :                 EG(This) = EX(object);
     525     2213371 :                 EG(scope) = (fbc->type == ZEND_USER_FUNCTION || !EX(object)) ? fbc->common.scope : NULL;
     526     2213371 :                 EG(called_scope) = EX(call)->called_scope;
     527             :         }
     528             : 
     529    20760198 :         num_args = opline->extended_value + EX(call)->num_additional_args;
     530    20760198 :         if (EX(call)->num_additional_args) {
     531          66 :                 EX(function_state).arguments = zend_vm_stack_push_args(num_args TSRMLS_CC);
     532             :         } else {
     533    20760165 :                 EX(function_state).arguments = zend_vm_stack_top(TSRMLS_C);
     534    20760165 :                 zend_vm_stack_push((void*)(zend_uintptr_t) num_args TSRMLS_CC);
     535             :         }
     536             :         LOAD_OPLINE();
     537             : 
     538    20760198 :         if (fbc->type == ZEND_INTERNAL_FUNCTION) {
     539    19326028 :                 if (fbc->common.fn_flags & ZEND_ACC_HAS_TYPE_HINTS) {
     540             :                         zend_uint i;
     541        1403 :                         void **p = EX(function_state).arguments - num_args;
     542             : 
     543        3530 :                         for (i = 0; i < num_args; ++i, ++p) {
     544        2167 :                                 zend_verify_arg_type(fbc, i + 1, (zval *) *p, 0 TSRMLS_CC);
     545             :                         }
     546             :                 }
     547             : 
     548    19325988 :                 if (EXPECTED(EG(exception) == NULL)) {
     549    19325987 :                         temp_variable *ret = &EX_T(opline->result.var);
     550             : 
     551    19325987 :                         MAKE_STD_ZVAL(ret->var.ptr);
     552    19325987 :                         ZVAL_NULL(ret->var.ptr);
     553    19325987 :                         ret->var.ptr_ptr = &ret->var.ptr;
     554    19325987 :                         ret->var.fcall_returned_reference = (fbc->common.fn_flags & ZEND_ACC_RETURN_REFERENCE) != 0;
     555             : 
     556    19325987 :                         if (!zend_execute_internal) {
     557             :                                 /* saves one function call if zend_execute_internal is not used */
     558    19325987 :                                 fbc->internal_function.handler(num_args, ret->var.ptr, &ret->var.ptr, EX(object), RETURN_VALUE_USED(opline) TSRMLS_CC);
     559             :                         } else {
     560           0 :                                 zend_execute_internal(execute_data, NULL, RETURN_VALUE_USED(opline) TSRMLS_CC);
     561             :                         }
     562             : 
     563    19325800 :                         if (!RETURN_VALUE_USED(opline)) {
     564     1651639 :                                 zval_ptr_dtor(&ret->var.ptr);
     565             :                         }
     566           1 :                 } else if (RETURN_VALUE_USED(opline)) {
     567           1 :                         EX_T(opline->result.var).var.ptr = NULL;
     568             :                 }
     569     1434170 :         } else if (fbc->type == ZEND_USER_FUNCTION) {
     570     1434170 :                 EX(original_return_value) = EG(return_value_ptr_ptr);
     571     1434170 :                 EG(active_symbol_table) = NULL;
     572     1434170 :                 EG(active_op_array) = &fbc->op_array;
     573     1434170 :                 EG(return_value_ptr_ptr) = NULL;
     574     1434170 :                 if (RETURN_VALUE_USED(opline)) {
     575     1137719 :                         temp_variable *ret = &EX_T(opline->result.var);
     576             : 
     577     1137719 :                         ret->var.ptr = NULL;
     578     1137719 :                         EG(return_value_ptr_ptr) = &ret->var.ptr;
     579     1137719 :                         ret->var.ptr_ptr = &ret->var.ptr;
     580     1137719 :                         ret->var.fcall_returned_reference = (fbc->common.fn_flags & ZEND_ACC_RETURN_REFERENCE) != 0;
     581             :                 }
     582             : 
     583     1434170 :                 if (UNEXPECTED((EG(active_op_array)->fn_flags & ZEND_ACC_GENERATOR) != 0)) {
     584          80 :                         if (RETURN_VALUE_USED(opline)) {
     585          79 :                                 EX_T(opline->result.var).var.ptr = zend_generator_create_zval(EG(active_op_array) TSRMLS_CC);
     586             :                         }
     587     1434090 :                 } else if (EXPECTED(zend_execute_ex == execute_ex)) {
     588     1434090 :                         if (EXPECTED(EG(exception) == NULL)) {
     589     1434090 :                                 ZEND_VM_ENTER();
     590             :                         }
     591             :                 } else {
     592           0 :                         zend_execute(EG(active_op_array) TSRMLS_CC);
     593             :                 }
     594             : 
     595          80 :                 EG(opline_ptr) = &EX(opline);
     596          80 :                 EG(active_op_array) = EX(op_array);
     597          80 :                 EG(return_value_ptr_ptr) = EX(original_return_value);
     598          80 :                 if (EG(active_symbol_table)) {
     599           0 :                         zend_clean_and_cache_symbol_table(EG(active_symbol_table) TSRMLS_CC);
     600             :                 }
     601          80 :                 EG(active_symbol_table) = EX(symbol_table);
     602             :         } else { /* ZEND_OVERLOADED_FUNCTION */
     603           0 :                 MAKE_STD_ZVAL(EX_T(opline->result.var).var.ptr);
     604           0 :                 ZVAL_NULL(EX_T(opline->result.var).var.ptr);
     605             : 
     606             :                 /* Not sure what should be done here if it's a static method */
     607           0 :                 if (EXPECTED(EX(object) != NULL)) {
     608           0 :                         Z_OBJ_HT_P(EX(object))->call_method(fbc->common.function_name, num_args, EX_T(opline->result.var).var.ptr, &EX_T(opline->result.var).var.ptr, EX(object), RETURN_VALUE_USED(opline) TSRMLS_CC);
     609             :                 } else {
     610           0 :                         zend_error_noreturn(E_ERROR, "Cannot call overloaded function for non-object");
     611             :                 }
     612             : 
     613           0 :                 if (fbc->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY) {
     614           0 :                         efree((char*)fbc->common.function_name);
     615             :                 }
     616           0 :                 efree(fbc);
     617             : 
     618           0 :                 if (!RETURN_VALUE_USED(opline)) {
     619           0 :                         zval_ptr_dtor(&EX_T(opline->result.var).var.ptr);
     620             :                 } else {
     621           0 :                         Z_UNSET_ISREF_P(EX_T(opline->result.var).var.ptr);
     622           0 :                         Z_SET_REFCOUNT_P(EX_T(opline->result.var).var.ptr, 1);
     623           0 :                         EX_T(opline->result.var).var.fcall_returned_reference = 0;
     624           0 :                         EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr;
     625             :                 }
     626             :         }
     627             : 
     628    19325881 :         EX(function_state).function = (zend_function *) EX(op_array);
     629    19325881 :         EX(function_state).arguments = NULL;
     630             : 
     631    19325881 :         if (should_change_scope) {
     632      779116 :                 if (EG(This)) {
     633      775899 :                         if (UNEXPECTED(EG(exception) != NULL) && EX(call)->is_ctor_call) {
     634         293 :                                 if (EX(call)->is_ctor_result_used) {
     635         227 :                                         Z_DELREF_P(EG(This));
     636             :                                 }
     637         586 :                                 if (Z_REFCOUNT_P(EG(This)) == 1) {
     638         293 :                                         zend_object_store_ctor_failed(EG(This) TSRMLS_CC);
     639             :                                 }
     640             :                         }
     641      775899 :                         zval_ptr_dtor(&EG(This));
     642             :                 }
     643      779116 :                 EG(This) = EX(current_this);
     644      779116 :                 EG(scope) = EX(current_scope);
     645      779116 :                 EG(called_scope) = EX(current_called_scope);
     646             :         }
     647             : 
     648    19325881 :         EX(call)--;
     649             : 
     650             :         zend_vm_stack_clear_multiple(1 TSRMLS_CC);
     651             : 
     652    19325881 :         if (UNEXPECTED(EG(exception) != NULL)) {
     653         986 :                 zend_throw_exception_internal(NULL TSRMLS_CC);
     654         986 :                 if (RETURN_VALUE_USED(opline) && EX_T(opline->result.var).var.ptr) {
     655         279 :                         zval_ptr_dtor(&EX_T(opline->result.var).var.ptr);
     656             :                 }
     657         986 :                 HANDLE_EXCEPTION();
     658             :         }
     659             : 
     660    19324895 :         ZEND_VM_NEXT_OPCODE();
     661             : }
     662             : 
     663    17417173 : static int ZEND_FASTCALL  ZEND_JMP_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
     664             : {
     665    17417173 :         USE_OPLINE
     666             : 
     667             : #if DEBUG_ZEND>=2
     668             :         printf("Jumping to %d\n", opline->op1.opline_num);
     669             : #endif
     670    17417173 :         ZEND_VM_SET_OPCODE(opline->op1.jmp_addr);
     671    17417173 :         ZEND_VM_CONTINUE();
     672             : }
     673             : 
     674           0 : static int ZEND_FASTCALL  ZEND_INIT_STRING_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
     675             : {
     676           0 :         USE_OPLINE
     677           0 :         zval *tmp = &EX_T(opline->result.var).tmp_var;
     678             : 
     679             :         SAVE_OPLINE();
     680           0 :         tmp->value.str.val = emalloc(1);
     681           0 :         tmp->value.str.val[0] = 0;
     682           0 :         tmp->value.str.len = 0;
     683             :         Z_SET_REFCOUNT_P(tmp, 1);
     684           0 :         tmp->type = IS_STRING;
     685             :         Z_UNSET_ISREF_P(tmp);
     686             :         /*CHECK_EXCEPTION();*/
     687           0 :         ZEND_VM_NEXT_OPCODE();
     688             : }
     689             : 
     690     1221363 : static int ZEND_FASTCALL  ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
     691             : {
     692     1221363 :         EX(function_state).function = EX(call)->fbc;
     693     1221363 :         return zend_do_fcall_common_helper_SPEC(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
     694             : }
     695             : 
     696          57 : static int ZEND_FASTCALL  ZEND_GENERATOR_RETURN_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
     697             : {
     698             :         /* The generator object is stored in return_value_ptr_ptr */
     699          57 :         zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr);
     700             : 
     701             :         /* Close the generator to free up resources */
     702          57 :         zend_generator_close(generator, 1 TSRMLS_CC);
     703             : 
     704             :         /* Pass execution back to handling code */
     705          57 :         ZEND_VM_RETURN();
     706             : }
     707             : 
     708          61 : static int ZEND_FASTCALL  ZEND_SEND_UNPACK_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
     709             : {
     710          61 :         USE_OPLINE
     711             :         zend_free_op free_op1;
     712             :         zval *args;
     713             :         int arg_num;
     714             :         SAVE_OPLINE();
     715             : 
     716          61 :         args = get_zval_ptr(opline->op1_type, &opline->op1, execute_data, &free_op1, BP_VAR_R);
     717          61 :         arg_num = opline->op2.num + EX(call)->num_additional_args + 1;
     718             : 
     719          61 :         switch (Z_TYPE_P(args)) {
     720             :                 case IS_ARRAY: {
     721          44 :                         HashTable *ht = Z_ARRVAL_P(args);
     722             :                         HashPosition pos;
     723             :                         zval **arg_ptr, *arg;
     724             : 
     725          44 :                         ZEND_VM_STACK_GROW_IF_NEEDED(zend_hash_num_elements(ht));
     726             : 
     727       20172 :                         for (zend_hash_internal_pointer_reset_ex(ht, &pos);
     728       20128 :                              zend_hash_get_current_data_ex(ht, (void **) &arg_ptr, &pos) == SUCCESS;
     729       20084 :                              zend_hash_move_forward_ex(ht, &pos), ++arg_num
     730             :                         ) {
     731             :                                 char *name;
     732             :                                 zend_uint name_len;
     733             :                                 zend_ulong index;
     734             : 
     735       20085 :                                 if (zend_hash_get_current_key_ex(ht, &name, &name_len, &index, 0, &pos) == HASH_KEY_IS_STRING) {
     736           1 :                                         zend_error(E_RECOVERABLE_ERROR, "Cannot unpack array with string keys");
     737           1 :                                         FREE_OP(free_op1);
     738             :                                         CHECK_EXCEPTION();
     739           1 :                                         ZEND_VM_NEXT_OPCODE();
     740             :                                 }
     741             : 
     742       20104 :                                 if (ARG_SHOULD_BE_SENT_BY_REF(EX(call)->fbc, arg_num)) {
     743          80 :                                         SEPARATE_ZVAL_TO_MAKE_IS_REF(arg_ptr);
     744          20 :                                         arg = *arg_ptr;
     745             :                                         Z_ADDREF_P(arg);
     746       40128 :                                 } else if (Z_ISREF_PP(arg_ptr)) {
     747           0 :                                         ALLOC_ZVAL(arg);
     748           0 :                                         MAKE_COPY_ZVAL(arg_ptr, arg);
     749             :                                 } else {
     750       20064 :                                         arg = *arg_ptr;
     751             :                                         Z_ADDREF_P(arg);
     752             :                                 }
     753             : 
     754             :                                 zend_vm_stack_push(arg TSRMLS_CC);
     755       20084 :                                 EX(call)->num_additional_args++;
     756             :                         }
     757          43 :                         break;
     758             :                 }
     759             :                 case IS_OBJECT: {
     760          13 :                         zend_class_entry *ce = Z_OBJCE_P(args);
     761             :                         zend_object_iterator *iter;
     762             : 
     763          13 :                         if (!ce || !ce->get_iterator) {
     764           2 :                                 zend_error(E_WARNING, "Only arrays and Traversables can be unpacked");
     765           2 :                                 break;
     766             :                         }
     767             : 
     768          11 :                         iter = ce->get_iterator(ce, args, 0 TSRMLS_CC);
     769          11 :                         if (UNEXPECTED(!iter)) {
     770           2 :                                 FREE_OP(free_op1);
     771           1 :                                 if (!EG(exception)) {
     772           0 :                                         zend_throw_exception_ex(
     773             :                                                 NULL, 0 TSRMLS_CC, "Object of type %s did not create an Iterator", ce->name
     774             :                                         );
     775             :                                 }
     776           1 :                                 HANDLE_EXCEPTION();
     777             :                         }
     778             : 
     779          10 :                         if (iter->funcs->rewind) {
     780          10 :                                 iter->funcs->rewind(iter TSRMLS_CC);
     781          10 :                                 if (UNEXPECTED(EG(exception) != NULL)) {
     782           0 :                                         goto unpack_iter_dtor;
     783             :                                 }
     784             :                         }
     785             : 
     786          31 :                         for (; iter->funcs->valid(iter TSRMLS_CC) == SUCCESS; ++arg_num) {
     787             :                                 zval **arg_ptr, *arg;
     788             : 
     789          23 :                                 if (UNEXPECTED(EG(exception) != NULL)) {
     790           0 :                                         goto unpack_iter_dtor;
     791             :                                 }
     792             : 
     793          23 :                                 iter->funcs->get_current_data(iter, &arg_ptr TSRMLS_CC);
     794          23 :                                 if (UNEXPECTED(EG(exception) != NULL)) {
     795           0 :                                         goto unpack_iter_dtor;
     796             :                                 }
     797             : 
     798          23 :                                 if (iter->funcs->get_current_key) {
     799             :                                         zval key;
     800          23 :                                         iter->funcs->get_current_key(iter, &key TSRMLS_CC);
     801          23 :                                         if (UNEXPECTED(EG(exception) != NULL)) {
     802           0 :                                                 goto unpack_iter_dtor;
     803             :                                         }
     804             : 
     805          23 :                                         if (Z_TYPE(key) == IS_STRING) {
     806           1 :                                                 zend_error(E_RECOVERABLE_ERROR,
     807             :                                                         "Cannot unpack Traversable with string keys");
     808             :                                                 zval_dtor(&key);
     809           1 :                                                 goto unpack_iter_dtor;
     810             :                                         }
     811             : 
     812             :                                         zval_dtor(&key);
     813             :                                 }
     814             : 
     815          22 :                                 if (ARG_MUST_BE_SENT_BY_REF(EX(call)->fbc, arg_num)) {
     816           9 :                                         zend_error(
     817             :                                                 E_WARNING, "Cannot pass by-reference argument %d of %s%s%s()"
     818             :                                                 " by unpacking a Traversable, passing by-value instead", arg_num,
     819           3 :                                                 EX(call)->fbc->common.scope ? EX(call)->fbc->common.scope->name : "",
     820           3 :                                                 EX(call)->fbc->common.scope ? "::" : "",
     821           3 :                                                 EX(call)->fbc->common.function_name
     822             :                                         );
     823             :                                 }
     824             : 
     825          44 :                                 if (Z_ISREF_PP(arg_ptr)) {
     826           0 :                                         ALLOC_ZVAL(arg);
     827           0 :                                         MAKE_COPY_ZVAL(arg_ptr, arg);
     828             :                                 } else {
     829          22 :                                         arg = *arg_ptr;
     830             :                                         Z_ADDREF_P(arg);
     831             :                                 }
     832             : 
     833          22 :                                 ZEND_VM_STACK_GROW_IF_NEEDED(1);
     834             :                                 zend_vm_stack_push(arg TSRMLS_CC);
     835          22 :                                 EX(call)->num_additional_args++;
     836             : 
     837          22 :                                 iter->funcs->move_forward(iter TSRMLS_CC);
     838          22 :                                 if (UNEXPECTED(EG(exception) != NULL)) {
     839           1 :                                         goto unpack_iter_dtor;
     840             :                                 }
     841             :                         }
     842             : 
     843             : unpack_iter_dtor:
     844          10 :                         iter->funcs->dtor(iter TSRMLS_CC);
     845          10 :                         break;
     846             :                 }
     847             :                 default:
     848           4 :                         zend_error(E_WARNING, "Only arrays and Traversables can be unpacked");
     849             :         }
     850             : 
     851          73 :         FREE_OP(free_op1);
     852             :         CHECK_EXCEPTION();
     853          59 :         ZEND_VM_NEXT_OPCODE();
     854             : }
     855             : 
     856     4022250 : static int ZEND_FASTCALL  ZEND_RECV_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
     857             : {
     858     4022250 :         USE_OPLINE
     859     4022250 :         zend_uint arg_num = opline->op1.num;
     860     8044500 :         zval **param = zend_vm_stack_get_arg(arg_num TSRMLS_CC);
     861             : 
     862             :         SAVE_OPLINE();
     863     4022250 :         if (UNEXPECTED(param == NULL)) {
     864          75 :                 if (zend_verify_arg_type((zend_function *) EG(active_op_array), arg_num, NULL, opline->extended_value TSRMLS_CC)) {
     865             :                         const char *space;
     866             :                         const char *class_name;
     867             :                         zend_execute_data *ptr;
     868             : 
     869          70 :                         if (EG(active_op_array)->scope) {
     870          24 :                                 class_name = EG(active_op_array)->scope->name;
     871          24 :                                 space = "::";
     872             :                         } else {
     873          46 :                                 class_name = space = "";
     874             :                         }
     875          70 :                         ptr = EX(prev_execute_data);
     876             : 
     877          82 :                         if(ptr && ptr->op_array) {
     878          12 :                                 zend_error(E_WARNING, "Missing argument %u for %s%s%s(), called in %s on line %d and defined", opline->op1.num, class_name, space, get_active_function_name(TSRMLS_C), ptr->op_array->filename, ptr->opline->lineno);
     879             :                         } else {
     880          58 :                                 zend_error(E_WARNING, "Missing argument %u for %s%s%s()", opline->op1.num, class_name, space, get_active_function_name(TSRMLS_C));
     881             :                         }
     882             :                 }
     883             :         } else {
     884             :                 zval **var_ptr;
     885             : 
     886     4022175 :                 zend_verify_arg_type((zend_function *) EG(active_op_array), arg_num, *param, opline->extended_value TSRMLS_CC);
     887     8044324 :                 var_ptr = _get_zval_ptr_ptr_cv_BP_VAR_W(execute_data, opline->result.var TSRMLS_CC);
     888     4022162 :                 Z_DELREF_PP(var_ptr);
     889     4022162 :                 *var_ptr = *param;
     890     4022162 :                 Z_ADDREF_PP(var_ptr);
     891             :         }
     892             : 
     893             :         CHECK_EXCEPTION();
     894     4022233 :         ZEND_VM_NEXT_OPCODE();
     895             : }
     896             : 
     897          43 : static int ZEND_FASTCALL  ZEND_RECV_VARIADIC_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
     898             : {
     899          43 :         USE_OPLINE
     900          43 :         zend_uint arg_num = opline->op1.num;
     901          43 :         zend_uint arg_count = zend_vm_stack_get_args_count(TSRMLS_C);
     902             :         zval **var_ptr, *params;
     903             : 
     904             :         SAVE_OPLINE();
     905             : 
     906          86 :         var_ptr = _get_zval_ptr_ptr_cv_BP_VAR_W(execute_data, opline->result.var TSRMLS_CC);
     907          43 :         Z_DELREF_PP(var_ptr);
     908          43 :         MAKE_STD_ZVAL(params);
     909          43 :         *var_ptr = params;
     910             : 
     911          43 :         if (arg_num <= arg_count) {
     912          30 :                 array_init_size(params, arg_count - arg_num + 1);
     913             :         } else {
     914          13 :                 array_init(params);
     915             :         }
     916             : 
     917       20134 :         for (; arg_num <= arg_count; ++arg_num) {
     918       40184 :                 zval **param = zend_vm_stack_get_arg(arg_num TSRMLS_CC);
     919       20092 :                 zend_verify_arg_type((zend_function *) EG(active_op_array), arg_num, *param, opline->extended_value TSRMLS_CC);
     920       20091 :                 zend_hash_next_index_insert(Z_ARRVAL_P(params), param, sizeof(zval *), NULL);
     921       20091 :                 Z_ADDREF_PP(param);
     922             :         }
     923             : 
     924             :         CHECK_EXCEPTION();
     925          42 :         ZEND_VM_NEXT_OPCODE();
     926             : }
     927             : 
     928      461380 : static int ZEND_FASTCALL  ZEND_NEW_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
     929             : {
     930      461380 :         USE_OPLINE
     931             :         zval *object_zval;
     932             :         zend_function *constructor;
     933             : 
     934             :         SAVE_OPLINE();
     935      461380 :         if (UNEXPECTED((EX_T(opline->op1.var).class_entry->ce_flags & (ZEND_ACC_INTERFACE|ZEND_ACC_IMPLICIT_ABSTRACT_CLASS|ZEND_ACC_EXPLICIT_ABSTRACT_CLASS)) != 0)) {
     936           7 :                 if (EX_T(opline->op1.var).class_entry->ce_flags & ZEND_ACC_INTERFACE) {
     937           2 :                         zend_error_noreturn(E_ERROR, "Cannot instantiate interface %s", EX_T(opline->op1.var).class_entry->name);
     938           5 :                 } else if ((EX_T(opline->op1.var).class_entry->ce_flags & ZEND_ACC_TRAIT) == ZEND_ACC_TRAIT) {
     939           1 :                         zend_error_noreturn(E_ERROR, "Cannot instantiate trait %s", EX_T(opline->op1.var).class_entry->name);
     940             :                 } else {
     941           4 :                         zend_error_noreturn(E_ERROR, "Cannot instantiate abstract class %s", EX_T(opline->op1.var).class_entry->name);
     942             :                 }
     943             :         }
     944      461373 :         ALLOC_ZVAL(object_zval);
     945      461373 :         object_init_ex(object_zval, EX_T(opline->op1.var).class_entry);
     946      461372 :         INIT_PZVAL(object_zval);
     947             : 
     948      461372 :         constructor = Z_OBJ_HT_P(object_zval)->get_constructor(object_zval TSRMLS_CC);
     949             : 
     950      461364 :         if (constructor == NULL) {
     951      174367 :                 if (RETURN_VALUE_USED(opline)) {
     952      174354 :                         AI_SET_PTR(&EX_T(opline->result.var), object_zval);
     953             :                 } else {
     954          13 :                         zval_ptr_dtor(&object_zval);
     955             :                 }
     956      174367 :                 ZEND_VM_JMP(EX(op_array)->opcodes + opline->op2.opline_num);
     957             :         } else {
     958      286997 :                 call_slot *call = EX(call_slots) + opline->extended_value;
     959             : 
     960      286997 :                 if (RETURN_VALUE_USED(opline)) {
     961      276833 :                         PZVAL_LOCK(object_zval);
     962      276833 :                         AI_SET_PTR(&EX_T(opline->result.var), object_zval);
     963             :                 }
     964             : 
     965             :                 /* We are not handling overloaded classes right now */
     966      286997 :                 call->fbc = constructor;
     967      286997 :                 call->object = object_zval;
     968      286997 :                 call->called_scope = EX_T(opline->op1.var).class_entry;
     969      286997 :                 call->num_additional_args = 0;
     970      286997 :                 call->is_ctor_call = 1;
     971      286997 :                 call->is_ctor_result_used = RETURN_VALUE_USED(opline);
     972      286997 :                 EX(call) = call;
     973             : 
     974             :                 CHECK_EXCEPTION();
     975      286997 :                 ZEND_VM_NEXT_OPCODE();
     976             :         }
     977             : }
     978             : 
     979     1449992 : static int ZEND_FASTCALL  ZEND_BEGIN_SILENCE_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
     980             : {
     981     1449992 :         USE_OPLINE
     982             : 
     983             :         SAVE_OPLINE();
     984     1449992 :         Z_LVAL(EX_T(opline->result.var).tmp_var) = EG(error_reporting);
     985     1449992 :         Z_TYPE(EX_T(opline->result.var).tmp_var) = IS_LONG;  /* shouldn't be necessary */
     986     1449992 :         if (EX(old_error_reporting) == NULL) {
     987     1449979 :                 EX(old_error_reporting) = &EX_T(opline->result.var).tmp_var;
     988             :         }
     989             : 
     990     1449992 :         if (EG(error_reporting)) {
     991             :                 do {
     992     1266004 :                         EG(error_reporting) = 0;
     993     1266004 :                         if (!EG(error_reporting_ini_entry)) {
     994        2946 :                                 if (UNEXPECTED(zend_hash_find(EG(ini_directives), "error_reporting", sizeof("error_reporting"), (void **) &EG(error_reporting_ini_entry)) == FAILURE)) {
     995           0 :                                         break;
     996             :                                 }
     997             :                         }
     998     1266004 :                         if (!EG(error_reporting_ini_entry)->modified) {
     999        2875 :                                 if (!EG(modified_ini_directives)) {
    1000        2183 :                                         ALLOC_HASHTABLE(EG(modified_ini_directives));
    1001        2183 :                                         zend_hash_init(EG(modified_ini_directives), 8, NULL, NULL, 0);
    1002             :                                 }
    1003        2875 :                                 if (EXPECTED(zend_hash_add(EG(modified_ini_directives), "error_reporting", sizeof("error_reporting"), &EG(error_reporting_ini_entry), sizeof(zend_ini_entry*), NULL) == SUCCESS)) {
    1004        2875 :                                         EG(error_reporting_ini_entry)->orig_value = EG(error_reporting_ini_entry)->value;
    1005        2875 :                                         EG(error_reporting_ini_entry)->orig_value_length = EG(error_reporting_ini_entry)->value_length;
    1006        2875 :                                         EG(error_reporting_ini_entry)->orig_modifiable = EG(error_reporting_ini_entry)->modifiable;
    1007        2875 :                                         EG(error_reporting_ini_entry)->modified = 1;
    1008             :                                 }
    1009     1263129 :                         } else if (EG(error_reporting_ini_entry)->value != EG(error_reporting_ini_entry)->orig_value) {
    1010     1263129 :                                 efree(EG(error_reporting_ini_entry)->value);
    1011             :                         }
    1012     1266004 :                         EG(error_reporting_ini_entry)->value = estrndup("0", sizeof("0")-1);
    1013     1266004 :                         EG(error_reporting_ini_entry)->value_length = sizeof("0")-1;
    1014             :                 } while (0);
    1015             :         }
    1016             :         CHECK_EXCEPTION();
    1017     1449992 :         ZEND_VM_NEXT_OPCODE();
    1018             : }
    1019             : 
    1020           0 : static int ZEND_FASTCALL  ZEND_RAISE_ABSTRACT_ERROR_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1021             : {
    1022             :         SAVE_OPLINE();
    1023           0 :         zend_error_noreturn(E_ERROR, "Cannot call abstract method %s::%s()", EG(scope)->name, EX(op_array)->function_name);
    1024             :         ZEND_VM_NEXT_OPCODE(); /* Never reached */
    1025             : }
    1026             : 
    1027           0 : static int ZEND_FASTCALL  ZEND_EXT_STMT_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1028             : {
    1029             :         SAVE_OPLINE();
    1030           0 :         if (!EG(no_extensions)) {
    1031           0 :                 zend_llist_apply_with_argument(&zend_extensions, (llist_apply_with_arg_func_t) zend_extension_statement_handler, EX(op_array) TSRMLS_CC);
    1032             :         }
    1033             :         CHECK_EXCEPTION();
    1034           0 :         ZEND_VM_NEXT_OPCODE();
    1035             : }
    1036             : 
    1037           0 : static int ZEND_FASTCALL  ZEND_EXT_FCALL_BEGIN_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1038             : {
    1039             :         SAVE_OPLINE();
    1040           0 :         if (!EG(no_extensions)) {
    1041           0 :                 zend_llist_apply_with_argument(&zend_extensions, (llist_apply_with_arg_func_t) zend_extension_fcall_begin_handler, EX(op_array) TSRMLS_CC);
    1042             :         }
    1043             :         CHECK_EXCEPTION();
    1044           0 :         ZEND_VM_NEXT_OPCODE();
    1045             : }
    1046             : 
    1047           0 : static int ZEND_FASTCALL  ZEND_EXT_FCALL_END_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1048             : {
    1049             :         SAVE_OPLINE();
    1050           0 :         if (!EG(no_extensions)) {
    1051           0 :                 zend_llist_apply_with_argument(&zend_extensions, (llist_apply_with_arg_func_t) zend_extension_fcall_end_handler, EX(op_array) TSRMLS_CC);
    1052             :         }
    1053             :         CHECK_EXCEPTION();
    1054           0 :         ZEND_VM_NEXT_OPCODE();
    1055             : }
    1056             : 
    1057         418 : static int ZEND_FASTCALL  ZEND_DECLARE_CLASS_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1058             : {
    1059         418 :         USE_OPLINE
    1060             : 
    1061             :         SAVE_OPLINE();
    1062         418 :         EX_T(opline->result.var).class_entry = do_bind_class(EX(op_array), opline, EG(class_table), 0 TSRMLS_CC);
    1063             :         CHECK_EXCEPTION();
    1064         416 :         ZEND_VM_NEXT_OPCODE();
    1065             : }
    1066             : 
    1067        1276 : static int ZEND_FASTCALL  ZEND_DECLARE_INHERITED_CLASS_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1068             : {
    1069        1276 :         USE_OPLINE
    1070             : 
    1071             :         SAVE_OPLINE();
    1072        1276 :         EX_T(opline->result.var).class_entry = do_bind_inherited_class(EX(op_array), opline, EG(class_table), EX_T(opline->extended_value).class_entry, 0 TSRMLS_CC);
    1073             :         CHECK_EXCEPTION();
    1074        1273 :         ZEND_VM_NEXT_OPCODE();
    1075             : }
    1076             : 
    1077           0 : static int ZEND_FASTCALL  ZEND_DECLARE_INHERITED_CLASS_DELAYED_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1078             : {
    1079           0 :         USE_OPLINE
    1080             :         zend_class_entry **pce, **pce_orig;
    1081             : 
    1082             :         SAVE_OPLINE();
    1083           0 :         if (zend_hash_quick_find(EG(class_table), Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv)+1, Z_HASH_P(opline->op2.zv), (void**)&pce) == FAILURE ||
    1084           0 :             (zend_hash_quick_find(EG(class_table), Z_STRVAL_P(opline->op1.zv), Z_STRLEN_P(opline->op1.zv), Z_HASH_P(opline->op1.zv), (void**)&pce_orig) == SUCCESS &&
    1085           0 :              *pce != *pce_orig)) {
    1086           0 :                 do_bind_inherited_class(EX(op_array), opline, EG(class_table), EX_T(opline->extended_value).class_entry, 0 TSRMLS_CC);
    1087             :         }
    1088             :         CHECK_EXCEPTION();
    1089           0 :         ZEND_VM_NEXT_OPCODE();
    1090             : }
    1091             : 
    1092        3565 : static int ZEND_FASTCALL  ZEND_DECLARE_FUNCTION_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1093             : {
    1094        3565 :         USE_OPLINE
    1095             : 
    1096             :         SAVE_OPLINE();
    1097        3565 :         do_bind_function(EX(op_array), opline, EG(function_table), 0);
    1098             :         CHECK_EXCEPTION();
    1099        3565 :         ZEND_VM_NEXT_OPCODE();
    1100             : }
    1101             : 
    1102          45 : static int ZEND_FASTCALL  ZEND_TICKS_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1103             : {
    1104          45 :         USE_OPLINE
    1105             : 
    1106             :         SAVE_OPLINE();
    1107          45 :         if (++EG(ticks_count)>=opline->extended_value) {
    1108          45 :                 EG(ticks_count)=0;
    1109          45 :                 if (zend_ticks_function) {
    1110          45 :                         zend_ticks_function(opline->extended_value TSRMLS_CC);
    1111             :                 }
    1112             :         }
    1113             :         CHECK_EXCEPTION();
    1114          45 :         ZEND_VM_NEXT_OPCODE();
    1115             : }
    1116             : 
    1117           0 : static int ZEND_FASTCALL  ZEND_EXT_NOP_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1118             : {
    1119           0 :         ZEND_VM_NEXT_OPCODE();
    1120             : }
    1121             : 
    1122       20685 : static int ZEND_FASTCALL  ZEND_NOP_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1123             : {
    1124       20685 :         ZEND_VM_NEXT_OPCODE();
    1125             : }
    1126             : 
    1127         233 : static int ZEND_FASTCALL  ZEND_ADD_TRAIT_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1128             : {
    1129         233 :         USE_OPLINE
    1130         233 :         zend_class_entry *ce = EX_T(opline->op1.var).class_entry;
    1131             :         zend_class_entry *trait;
    1132             : 
    1133             :         SAVE_OPLINE();
    1134         233 :         if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    1135           0 :                 trait = CACHED_PTR(opline->op2.literal->cache_slot);
    1136             :         } else {
    1137         466 :                 trait = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv),
    1138         233 :                                                  Z_STRLEN_P(opline->op2.zv),
    1139             :                                                  opline->op2.literal + 1,
    1140         233 :                                                  opline->extended_value TSRMLS_CC);
    1141         231 :                 if (UNEXPECTED(trait == NULL)) {
    1142             :                         CHECK_EXCEPTION();
    1143           0 :                         ZEND_VM_NEXT_OPCODE();
    1144             :                 }
    1145         231 :                 if (!((trait->ce_flags & ZEND_ACC_TRAIT) == ZEND_ACC_TRAIT)) {
    1146           4 :                         zend_error_noreturn(E_ERROR, "%s cannot use %s - it is not a trait", ce->name, trait->name);
    1147             :                 }
    1148         227 :                 CACHE_PTR(opline->op2.literal->cache_slot, trait);
    1149             :         }
    1150             : 
    1151         227 :         zend_do_implement_trait(ce, trait TSRMLS_CC);
    1152             : 
    1153             :         CHECK_EXCEPTION();
    1154         227 :         ZEND_VM_NEXT_OPCODE();
    1155             : }
    1156             : 
    1157         168 : static int ZEND_FASTCALL  ZEND_BIND_TRAITS_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1158             : {
    1159         168 :         USE_OPLINE
    1160         168 :         zend_class_entry *ce = EX_T(opline->op1.var).class_entry;
    1161             : 
    1162             :         SAVE_OPLINE();
    1163         168 :         zend_do_bind_traits(ce TSRMLS_CC);
    1164             :         CHECK_EXCEPTION();
    1165         126 :         ZEND_VM_NEXT_OPCODE();
    1166             : }
    1167             : 
    1168        1613 : static int ZEND_FASTCALL  ZEND_HANDLE_EXCEPTION_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1169             : {
    1170        1613 :         zend_uint op_num = EG(opline_before_exception)-EG(active_op_array)->opcodes;
    1171             :         int i;
    1172        1613 :         zend_uint catch_op_num = 0, finally_op_num = 0, finally_op_end = 0;
    1173             :         void **stack_frame;
    1174             : 
    1175             :         /* Figure out where the next stack frame (which maybe contains pushed
    1176             :          * arguments that have to be dtor'ed) starts */
    1177        1613 :         stack_frame = zend_vm_stack_frame_base(execute_data);
    1178             : 
    1179             :         /* If the exception was thrown during a function call there might be
    1180             :          * arguments pushed to the stack that have to be dtor'ed. */
    1181        3296 :         while (zend_vm_stack_top(TSRMLS_C) != stack_frame) {
    1182          70 :                 zval *stack_zval_p = zend_vm_stack_pop(TSRMLS_C);
    1183          70 :                 zval_ptr_dtor(&stack_zval_p);
    1184             :         }
    1185             : 
    1186        4309 :         for (i=0; i<EG(active_op_array)->last_try_catch; i++) {
    1187        3125 :                 if (EG(active_op_array)->try_catch_array[i].try_op > op_num) {
    1188             :                         /* further blocks will not be relevant... */
    1189         429 :                         break;
    1190             :                 }
    1191        2696 :                 if (op_num < EG(active_op_array)->try_catch_array[i].catch_op) {
    1192        1153 :                         catch_op_num = EX(op_array)->try_catch_array[i].catch_op;
    1193             :                 }
    1194        2696 :                 if (op_num < EG(active_op_array)->try_catch_array[i].finally_op) {
    1195          48 :                         finally_op_num = EX(op_array)->try_catch_array[i].finally_op;
    1196             :                 }
    1197        5344 :                 if (op_num >= EG(active_op_array)->try_catch_array[i].finally_op &&
    1198        2648 :                                 op_num < EG(active_op_array)->try_catch_array[i].finally_end) {
    1199          12 :                         finally_op_end = EG(active_op_array)->try_catch_array[i].finally_end;
    1200             :                 }
    1201             :         }
    1202             : 
    1203        1613 :         if (EX(call) >= EX(call_slots)) {
    1204          23 :                 call_slot *call = EX(call);
    1205             :                 do {
    1206          23 :                         if (call->object) {
    1207          11 :                                 if (call->is_ctor_call) {
    1208           4 :                                         if (call->is_ctor_result_used) {
    1209           3 :                                                 Z_DELREF_P(call->object);
    1210             :                                         }
    1211           8 :                                         if (Z_REFCOUNT_P(call->object) == 1) {
    1212           4 :                                                 zend_object_store_ctor_failed(call->object TSRMLS_CC);
    1213             :                                         }
    1214             :                                 }
    1215          11 :                                 zval_ptr_dtor(&call->object);
    1216             :                         }
    1217          23 :                         call--;
    1218          23 :                 } while (call >= EX(call_slots));
    1219          23 :                 EX(call) = NULL;
    1220             :         }
    1221             : 
    1222        2093 :         for (i=0; i<EX(op_array)->last_brk_cont; i++) {
    1223         568 :                 if (EX(op_array)->brk_cont_array[i].start < 0) {
    1224         109 :                         continue;
    1225         459 :                 } else if (EX(op_array)->brk_cont_array[i].start > op_num) {
    1226             :                         /* further blocks will not be relevant... */
    1227          88 :                         break;
    1228         371 :                 } else if (op_num < EX(op_array)->brk_cont_array[i].brk) {
    1229         449 :                         if (!catch_op_num ||
    1230         223 :                             catch_op_num >= EX(op_array)->brk_cont_array[i].brk) {
    1231           7 :                                 zend_op *brk_opline = &EX(op_array)->opcodes[EX(op_array)->brk_cont_array[i].brk];
    1232             : 
    1233           7 :                                 switch (brk_opline->opcode) {
    1234             :                                         case ZEND_SWITCH_FREE:
    1235           6 :                                                 if (!(brk_opline->extended_value & EXT_TYPE_FREE_ON_RETURN)) {
    1236           6 :                                                         zval_ptr_dtor(&EX_T(brk_opline->op1.var).var.ptr);
    1237             :                                                 }
    1238           6 :                                                 break;
    1239             :                                         case ZEND_FREE:
    1240           0 :                                                 if (!(brk_opline->extended_value & EXT_TYPE_FREE_ON_RETURN)) {
    1241           0 :                                                         zendi_zval_dtor(EX_T(brk_opline->op1.var).tmp_var);
    1242             :                                                 }
    1243             :                                                 break;
    1244             :                                 }
    1245             :                         }
    1246             :                 }
    1247             :         }
    1248             : 
    1249             :         /* restore previous error_reporting value */
    1250        1613 :         if (!EG(error_reporting) && EX(old_error_reporting) != NULL && Z_LVAL_P(EX(old_error_reporting)) != 0) {
    1251             :                 zval restored_error_reporting;
    1252             : 
    1253          26 :                 Z_TYPE(restored_error_reporting) = IS_LONG;
    1254          26 :                 Z_LVAL(restored_error_reporting) = Z_LVAL_P(EX(old_error_reporting));
    1255          26 :                 convert_to_string(&restored_error_reporting);
    1256          26 :                 zend_alter_ini_entry_ex("error_reporting", sizeof("error_reporting"), Z_STRVAL(restored_error_reporting), Z_STRLEN(restored_error_reporting), ZEND_INI_USER, ZEND_INI_STAGE_RUNTIME, 1 TSRMLS_CC);
    1257             :                 zendi_zval_dtor(restored_error_reporting);
    1258             :         }
    1259        1613 :         EX(old_error_reporting) = NULL;
    1260             : 
    1261        1613 :         if (finally_op_num && (!catch_op_num || catch_op_num >= finally_op_num)) {
    1262          14 :                 if (EX(delayed_exception)) {
    1263           0 :                         zend_exception_set_previous(EG(exception), EX(delayed_exception) TSRMLS_CC);
    1264             :                 }
    1265          14 :                 EX(delayed_exception) = EG(exception);
    1266          14 :                 EG(exception) = NULL;
    1267          14 :                 EX(fast_ret) = NULL;
    1268          14 :                 ZEND_VM_SET_OPCODE(&EX(op_array)->opcodes[finally_op_num]);
    1269          14 :                 ZEND_VM_CONTINUE();
    1270        1599 :         } else if (catch_op_num) {
    1271        1122 :                 if (finally_op_end && catch_op_num > finally_op_end) {
    1272             :                         /* we are going out of current finally scope */
    1273           5 :                         if (EX(delayed_exception)) {
    1274           1 :                                 zend_exception_set_previous(EG(exception), EX(delayed_exception) TSRMLS_CC);
    1275           1 :                                 EX(delayed_exception) = NULL;
    1276             :                         }
    1277             :                 }
    1278        1122 :                 ZEND_VM_SET_OPCODE(&EX(op_array)->opcodes[catch_op_num]);
    1279        1122 :                 ZEND_VM_CONTINUE();
    1280             :         } else {
    1281         477 :                 if (EX(delayed_exception)) {
    1282           1 :                         zend_exception_set_previous(EG(exception), EX(delayed_exception) TSRMLS_CC);
    1283           1 :                         EX(delayed_exception) = NULL;
    1284             :                 }
    1285         477 :                 if (UNEXPECTED((EX(op_array)->fn_flags & ZEND_ACC_GENERATOR) != 0)) {
    1286           7 :                         return ZEND_GENERATOR_RETURN_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    1287             :                 } else {
    1288         470 :                         return zend_leave_helper_SPEC(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    1289             :                 }
    1290             :         }
    1291             : }
    1292             : 
    1293         250 : static int ZEND_FASTCALL  ZEND_VERIFY_ABSTRACT_CLASS_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1294             : {
    1295         250 :         USE_OPLINE
    1296             : 
    1297             :         SAVE_OPLINE();
    1298         250 :         zend_verify_abstract_class(EX_T(opline->op1.var).class_entry TSRMLS_CC);
    1299             :         CHECK_EXCEPTION();
    1300         245 :         ZEND_VM_NEXT_OPCODE();
    1301             : }
    1302             : 
    1303           0 : static int ZEND_FASTCALL  ZEND_USER_OPCODE_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1304             : {
    1305           0 :         USE_OPLINE
    1306             :         int ret;
    1307             : 
    1308             :         SAVE_OPLINE();
    1309           0 :         ret = zend_user_opcode_handlers[opline->opcode](ZEND_OPCODE_HANDLER_ARGS_PASSTHRU_INTERNAL);
    1310             :         LOAD_OPLINE();
    1311             : 
    1312           0 :         switch (ret) {
    1313             :                 case ZEND_USER_OPCODE_CONTINUE:
    1314           0 :                         ZEND_VM_CONTINUE();
    1315             :                 case ZEND_USER_OPCODE_RETURN:
    1316           0 :                         if (UNEXPECTED((EX(op_array)->fn_flags & ZEND_ACC_GENERATOR) != 0)) {
    1317           0 :                                 return ZEND_GENERATOR_RETURN_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    1318             :                         } else {
    1319           0 :                                 return zend_leave_helper_SPEC(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    1320             :                         }
    1321             :                 case ZEND_USER_OPCODE_ENTER:
    1322           0 :                         ZEND_VM_ENTER();
    1323             :                 case ZEND_USER_OPCODE_LEAVE:
    1324           0 :                         ZEND_VM_LEAVE();
    1325             :                 case ZEND_USER_OPCODE_DISPATCH:
    1326           0 :                         ZEND_VM_DISPATCH(opline->opcode, opline);
    1327             :                 default:
    1328           0 :                         ZEND_VM_DISPATCH((zend_uchar)(ret & 0xff), opline);
    1329             :         }
    1330             : }
    1331             : 
    1332           7 : static int ZEND_FASTCALL  ZEND_DISCARD_EXCEPTION_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1333             : {
    1334           7 :         if (EX(delayed_exception) != NULL) {
    1335             :                 /* discard the previously thrown exception */
    1336           1 :                 zval_ptr_dtor(&EX(delayed_exception));
    1337           1 :                 EX(delayed_exception) = NULL;
    1338             :         }
    1339             : 
    1340           7 :         ZEND_VM_NEXT_OPCODE();
    1341             : }
    1342             : 
    1343          54 : static int ZEND_FASTCALL  ZEND_FAST_CALL_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1344             : {
    1345          54 :         USE_OPLINE
    1346             : 
    1347          61 :         if ((opline->extended_value & ZEND_FAST_CALL_FROM_CATCH) &&
    1348           7 :             UNEXPECTED(EG(prev_exception) != NULL)) {
    1349             :             /* in case of unhandled exception jump to catch block instead of finally */
    1350           0 :                 ZEND_VM_SET_OPCODE(&EX(op_array)->opcodes[opline->op2.opline_num]);
    1351           0 :                 ZEND_VM_CONTINUE();
    1352             :         }
    1353          54 :         EX(fast_ret) = opline;
    1354          54 :         EX(delayed_exception) = NULL;
    1355          54 :         ZEND_VM_SET_OPCODE(opline->op1.jmp_addr);
    1356          54 :         ZEND_VM_CONTINUE();
    1357             : }
    1358             : 
    1359          53 : static int ZEND_FASTCALL  ZEND_FAST_RET_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1360             : {
    1361          53 :         if (EX(fast_ret)) {
    1362          36 :                 ZEND_VM_SET_OPCODE(EX(fast_ret) + 1);
    1363          36 :                 if ((EX(fast_ret)->extended_value & ZEND_FAST_CALL_FROM_FINALLY)) {
    1364           7 :                         EX(fast_ret) = &EX(op_array)->opcodes[EX(fast_ret)->op2.opline_num];
    1365             :                 }
    1366          36 :                 ZEND_VM_CONTINUE();
    1367             :         } else {
    1368             :                 /* special case for unhandled exceptions */
    1369          17 :                 USE_OPLINE
    1370             : 
    1371          17 :                 if (opline->extended_value == ZEND_FAST_RET_TO_FINALLY) {
    1372           5 :                         ZEND_VM_SET_OPCODE(&EX(op_array)->opcodes[opline->op2.opline_num]);
    1373           5 :                         ZEND_VM_CONTINUE();
    1374             :                 } else {
    1375          12 :                         EG(exception) = EX(delayed_exception);
    1376          12 :                         EX(delayed_exception) = NULL;
    1377          12 :                         if (opline->extended_value == ZEND_FAST_RET_TO_CATCH) {
    1378           5 :                                 ZEND_VM_SET_OPCODE(&EX(op_array)->opcodes[opline->op2.opline_num]);
    1379           5 :                                 ZEND_VM_CONTINUE();
    1380           7 :                         } else if (UNEXPECTED((EX(op_array)->fn_flags & ZEND_ACC_GENERATOR) != 0)) {
    1381           3 :                                 return ZEND_GENERATOR_RETURN_SPEC_HANDLER(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    1382             :                         } else {
    1383           4 :                                 return zend_leave_helper_SPEC(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    1384             :                         }
    1385             :                 }
    1386             :         }
    1387             : }
    1388             : 
    1389      461489 : static int ZEND_FASTCALL  ZEND_FETCH_CLASS_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1390             : {
    1391      461489 :         USE_OPLINE
    1392             : 
    1393             :         SAVE_OPLINE();
    1394      461489 :         if (EG(exception)) {
    1395           0 :                 zend_exception_save(TSRMLS_C);
    1396             :         }
    1397      461489 :         if (IS_CONST == IS_UNUSED) {
    1398             :                 EX_T(opline->result.var).class_entry = zend_fetch_class(NULL, 0, opline->extended_value TSRMLS_CC);
    1399             :                 CHECK_EXCEPTION();
    1400             :                 ZEND_VM_NEXT_OPCODE();
    1401             :         } else {
    1402             : 
    1403      461489 :                 zval *class_name = opline->op2.zv;
    1404             : 
    1405             :                 if (IS_CONST == IS_CONST) {
    1406      461489 :                         if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    1407      448266 :                                 EX_T(opline->result.var).class_entry = CACHED_PTR(opline->op2.literal->cache_slot);
    1408             :                         } else {
    1409       13223 :                                 EX_T(opline->result.var).class_entry = zend_fetch_class_by_name(Z_STRVAL_P(class_name), Z_STRLEN_P(class_name), opline->op2.literal + 1, opline->extended_value TSRMLS_CC);
    1410       13209 :                                 CACHE_PTR(opline->op2.literal->cache_slot, EX_T(opline->result.var).class_entry);
    1411             :                         }
    1412             :                 } else if (Z_TYPE_P(class_name) == IS_OBJECT) {
    1413             :                         EX_T(opline->result.var).class_entry = Z_OBJCE_P(class_name);
    1414             :                 } else if (Z_TYPE_P(class_name) == IS_STRING) {
    1415             :                         EX_T(opline->result.var).class_entry = zend_fetch_class(Z_STRVAL_P(class_name), Z_STRLEN_P(class_name), opline->extended_value TSRMLS_CC);
    1416             :                 } else {
    1417             :                         if (UNEXPECTED(EG(exception) != NULL)) {
    1418             :                                 HANDLE_EXCEPTION();
    1419             :                         }
    1420             :                         zend_error_noreturn(E_ERROR, "Class name must be a valid object or a string");
    1421             :                 }
    1422             : 
    1423             :                 CHECK_EXCEPTION();
    1424      461475 :                 ZEND_VM_NEXT_OPCODE();
    1425             :         }
    1426             : }
    1427             : 
    1428      324591 : static int ZEND_FASTCALL  ZEND_INIT_FCALL_BY_NAME_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1429             : {
    1430      324591 :         USE_OPLINE
    1431             :         zval *function_name;
    1432      324591 :         call_slot *call = EX(call_slots) + opline->result.num;
    1433             : 
    1434             :         if (IS_CONST == IS_CONST) {
    1435      324591 :                 function_name = (zval*)(opline->op2.literal+1);
    1436      324591 :                 if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    1437      321223 :                         call->fbc = CACHED_PTR(opline->op2.literal->cache_slot);
    1438        3368 :                 } else if (UNEXPECTED(zend_hash_quick_find(EG(function_table), Z_STRVAL_P(function_name), Z_STRLEN_P(function_name)+1, Z_HASH_P(function_name), (void **) &call->fbc) == FAILURE)) {
    1439             :                         SAVE_OPLINE();
    1440          14 :                         zend_error_noreturn(E_ERROR, "Call to undefined function %s()", Z_STRVAL_P(opline->op2.zv));
    1441             :                 } else {
    1442        3354 :                         CACHE_PTR(opline->op2.literal->cache_slot, call->fbc);
    1443             :                 }
    1444             : 
    1445      324577 :                 call->object = NULL;
    1446      324577 :                 call->called_scope = NULL;
    1447      324577 :                 call->num_additional_args = 0;
    1448      324577 :                 call->is_ctor_call = 0;
    1449      324577 :                 EX(call) = call;
    1450             : 
    1451             :                 /*CHECK_EXCEPTION();*/
    1452      324577 :                 ZEND_VM_NEXT_OPCODE();
    1453             :         } else {
    1454             :                 char *function_name_strval, *lcname;
    1455             :                 int function_name_strlen;
    1456             : 
    1457             : 
    1458             :                 SAVE_OPLINE();
    1459             :                 function_name = opline->op2.zv;
    1460             : 
    1461             :                 if (EXPECTED(Z_TYPE_P(function_name) == IS_STRING)) {
    1462             :                         function_name_strval = Z_STRVAL_P(function_name);
    1463             :                         function_name_strlen = Z_STRLEN_P(function_name);
    1464             :                         if (function_name_strval[0] == '\\') {
    1465             :                             function_name_strlen -= 1;
    1466             :                                 lcname = zend_str_tolower_dup(function_name_strval + 1, function_name_strlen);
    1467             :                         } else {
    1468             :                                 lcname = zend_str_tolower_dup(function_name_strval, function_name_strlen);
    1469             :                         }
    1470             :                         if (UNEXPECTED(zend_hash_find(EG(function_table), lcname, function_name_strlen+1, (void **) &call->fbc) == FAILURE)) {
    1471             :                                 zend_error_noreturn(E_ERROR, "Call to undefined function %s()", function_name_strval);
    1472             :                         }
    1473             :                         efree(lcname);
    1474             : 
    1475             :                         call->object = NULL;
    1476             :                         call->called_scope = NULL;
    1477             :                         call->num_additional_args = 0;
    1478             :                         call->is_ctor_call = 0;
    1479             :                         EX(call) = call;
    1480             : 
    1481             :                         CHECK_EXCEPTION();
    1482             :                         ZEND_VM_NEXT_OPCODE();
    1483             :                 } else if (IS_CONST != IS_CONST && IS_CONST != IS_TMP_VAR &&
    1484             :                     EXPECTED(Z_TYPE_P(function_name) == IS_OBJECT) &&
    1485             :                         Z_OBJ_HANDLER_P(function_name, get_closure) &&
    1486             :                         Z_OBJ_HANDLER_P(function_name, get_closure)(function_name, &call->called_scope, &call->fbc, &call->object TSRMLS_CC) == SUCCESS) {
    1487             :                         if (call->object) {
    1488             :                                 Z_ADDREF_P(call->object);
    1489             :                         }
    1490             :                         if (IS_CONST == IS_VAR && 0 && Z_REFCOUNT_P(function_name) == 1 &&
    1491             :                             call->fbc->common.fn_flags & ZEND_ACC_CLOSURE) {
    1492             :                                 /* Delay closure destruction until its invocation */
    1493             :                                 call->fbc->common.prototype = (zend_function*)function_name;
    1494             :                         } else {
    1495             : 
    1496             :                         }
    1497             : 
    1498             :                         call->num_additional_args = 0;
    1499             :                         call->is_ctor_call = 0;
    1500             :                         EX(call) = call;
    1501             : 
    1502             :                         CHECK_EXCEPTION();
    1503             :                         ZEND_VM_NEXT_OPCODE();
    1504             :                 } else if (IS_CONST != IS_CONST &&
    1505             :                                 EXPECTED(Z_TYPE_P(function_name) == IS_ARRAY) &&
    1506             :                                 zend_hash_num_elements(Z_ARRVAL_P(function_name)) == 2) {
    1507             :                         zend_class_entry *ce;
    1508             :                         zval **method = NULL;
    1509             :                         zval **obj = NULL;
    1510             : 
    1511             :                         zend_hash_index_find(Z_ARRVAL_P(function_name), 0, (void **) &obj);
    1512             :                         zend_hash_index_find(Z_ARRVAL_P(function_name), 1, (void **) &method);
    1513             : 
    1514             :                         if (!obj || !method) {
    1515             :                                 zend_error_noreturn(E_ERROR, "Array callback has to contain indices 0 and 1");
    1516             :                         }
    1517             : 
    1518             :                         if (Z_TYPE_PP(obj) != IS_STRING && Z_TYPE_PP(obj) != IS_OBJECT) {
    1519             :                                 zend_error_noreturn(E_ERROR, "First array member is not a valid class name or object");
    1520             :                         }
    1521             : 
    1522             :                         if (Z_TYPE_PP(method) != IS_STRING) {
    1523             :                                 zend_error_noreturn(E_ERROR, "Second array member is not a valid method");
    1524             :                         }
    1525             : 
    1526             :                         if (Z_TYPE_PP(obj) == IS_STRING) {
    1527             :                                 ce = zend_fetch_class_by_name(Z_STRVAL_PP(obj), Z_STRLEN_PP(obj), NULL, 0 TSRMLS_CC);
    1528             :                                 if (UNEXPECTED(ce == NULL)) {
    1529             :                                         CHECK_EXCEPTION();
    1530             :                                         ZEND_VM_NEXT_OPCODE();
    1531             :                                 }
    1532             :                                 call->called_scope = ce;
    1533             :                                 call->object = NULL;
    1534             : 
    1535             :                                 if (ce->get_static_method) {
    1536             :                                         call->fbc = ce->get_static_method(ce, Z_STRVAL_PP(method), Z_STRLEN_PP(method) TSRMLS_CC);
    1537             :                                 } else {
    1538             :                                         call->fbc = zend_std_get_static_method(ce, Z_STRVAL_PP(method), Z_STRLEN_PP(method), NULL TSRMLS_CC);
    1539             :                                 }
    1540             :                         } else {
    1541             :                                 call->object = *obj;
    1542             :                                 ce = call->called_scope = Z_OBJCE_PP(obj);
    1543             : 
    1544             :                                 call->fbc = Z_OBJ_HT_P(call->object)->get_method(&call->object, Z_STRVAL_PP(method), Z_STRLEN_PP(method), NULL TSRMLS_CC);
    1545             :                                 if (UNEXPECTED(call->fbc == NULL)) {
    1546             :                                         zend_error_noreturn(E_ERROR, "Call to undefined method %s::%s()", Z_OBJ_CLASS_NAME_P(call->object), Z_STRVAL_PP(method));
    1547             :                                 }
    1548             : 
    1549             :                                 if ((call->fbc->common.fn_flags & ZEND_ACC_STATIC) != 0) {
    1550             :                                         call->object = NULL;
    1551             :                                 } else {
    1552             :                                         if (!PZVAL_IS_REF(call->object)) {
    1553             :                                                 Z_ADDREF_P(call->object); /* For $this pointer */
    1554             :                                         } else {
    1555             :                                                 zval *this_ptr;
    1556             :                                                 ALLOC_ZVAL(this_ptr);
    1557             :                                                 INIT_PZVAL_COPY(this_ptr, call->object);
    1558             :                                                 zval_copy_ctor(this_ptr);
    1559             :                                                 call->object = this_ptr;
    1560             :                                         }
    1561             :                                 }
    1562             :                         }
    1563             : 
    1564             :                         if (UNEXPECTED(call->fbc == NULL)) {
    1565             :                                 zend_error_noreturn(E_ERROR, "Call to undefined method %s::%s()", ce->name, Z_STRVAL_PP(method));
    1566             :                         }
    1567             : 
    1568             :                         call->num_additional_args = 0;
    1569             :                         call->is_ctor_call = 0;
    1570             :                         EX(call) = call;
    1571             : 
    1572             :                         CHECK_EXCEPTION();
    1573             :                         ZEND_VM_NEXT_OPCODE();
    1574             :                 } else {
    1575             :                         if (UNEXPECTED(EG(exception) != NULL)) {
    1576             :                                 HANDLE_EXCEPTION();
    1577             :                         }
    1578             :                         zend_error_noreturn(E_ERROR, "Function name must be a string");
    1579             :                         ZEND_VM_NEXT_OPCODE(); /* Never reached */
    1580             :                 }
    1581             :         }
    1582             : }
    1583             : 
    1584             : 
    1585         297 : static int ZEND_FASTCALL  ZEND_INIT_NS_FCALL_BY_NAME_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1586             : {
    1587         297 :         USE_OPLINE
    1588             :         zend_literal *func_name;
    1589         297 :         call_slot *call = EX(call_slots) + opline->result.num;
    1590             : 
    1591         297 :         func_name = opline->op2.literal + 1;
    1592         297 :         if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    1593           8 :                 call->fbc = CACHED_PTR(opline->op2.literal->cache_slot);
    1594         289 :         } else if (zend_hash_quick_find(EG(function_table), Z_STRVAL(func_name->constant), Z_STRLEN(func_name->constant)+1, func_name->hash_value, (void **) &call->fbc)==FAILURE) {
    1595         239 :                 func_name++;
    1596         239 :                 if (UNEXPECTED(zend_hash_quick_find(EG(function_table), Z_STRVAL(func_name->constant), Z_STRLEN(func_name->constant)+1, func_name->hash_value, (void **) &call->fbc)==FAILURE)) {
    1597             :                         SAVE_OPLINE();
    1598           0 :                         zend_error_noreturn(E_ERROR, "Call to undefined function %s()", Z_STRVAL_P(opline->op2.zv));
    1599             :                 } else {
    1600         239 :                         CACHE_PTR(opline->op2.literal->cache_slot, call->fbc);
    1601             :                 }
    1602             :         } else {
    1603          50 :                 CACHE_PTR(opline->op2.literal->cache_slot, call->fbc);
    1604             :         }
    1605             : 
    1606         297 :         call->object = NULL;
    1607         297 :         call->called_scope = NULL;
    1608         297 :         call->num_additional_args = 0;
    1609         297 :         call->is_ctor_call = 0;
    1610             : 
    1611         297 :         EX(call) = call;
    1612         297 :         ZEND_VM_NEXT_OPCODE();
    1613             : }
    1614             : 
    1615      312973 : static int ZEND_FASTCALL  ZEND_RECV_INIT_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1616             : {
    1617      312973 :         USE_OPLINE
    1618             :         zval *assignment_value;
    1619      312973 :         zend_uint arg_num = opline->op1.num;
    1620      625946 :         zval **param = zend_vm_stack_get_arg(arg_num TSRMLS_CC);
    1621             :         zval **var_ptr;
    1622             : 
    1623             :         SAVE_OPLINE();
    1624      312973 :         if (param == NULL) {
    1625      101786 :                 ALLOC_ZVAL(assignment_value);
    1626      101786 :                 *assignment_value = *opline->op2.zv;
    1627      101877 :                 if (IS_CONSTANT_TYPE(Z_TYPE_P(assignment_value))) {
    1628         111 :                         Z_SET_REFCOUNT_P(assignment_value, 1);
    1629         111 :                         zval_update_constant(&assignment_value, 0 TSRMLS_CC);
    1630      101675 :                 } else if (Z_TYPE_P(assignment_value) == IS_ARRAY) {
    1631             :                         HashTable *ht;
    1632             : 
    1633          28 :                         ALLOC_HASHTABLE(ht);
    1634          28 :                         zend_hash_init(ht, zend_hash_num_elements(Z_ARRVAL_P(assignment_value)), NULL, ZVAL_PTR_DTOR, 0);
    1635          28 :                         zend_hash_copy(ht, Z_ARRVAL_P(assignment_value), (copy_ctor_func_t) zval_deep_copy, NULL, sizeof(zval *));
    1636          28 :                         Z_ARRVAL_P(assignment_value) = ht;
    1637             :                 } else {
    1638      101647 :                         zval_copy_ctor(assignment_value);
    1639             :                 }
    1640      101766 :                 INIT_PZVAL(assignment_value);
    1641             :         } else {
    1642      211187 :                 assignment_value = *param;
    1643      211187 :                 Z_ADDREF_P(assignment_value);
    1644             :         }
    1645             : 
    1646      312953 :         zend_verify_arg_type((zend_function *) EG(active_op_array), arg_num, assignment_value, opline->extended_value TSRMLS_CC);
    1647      625902 :         var_ptr = _get_zval_ptr_ptr_cv_BP_VAR_W(execute_data, opline->result.var TSRMLS_CC);
    1648      312951 :         zval_ptr_dtor(var_ptr);
    1649      312951 :         *var_ptr = assignment_value;
    1650             : 
    1651             :         CHECK_EXCEPTION();
    1652      312951 :         ZEND_VM_NEXT_OPCODE();
    1653             : }
    1654             : 
    1655       34760 : static int ZEND_FASTCALL  ZEND_BRK_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1656             : {
    1657       34760 :         USE_OPLINE
    1658             :         zend_brk_cont_element *el;
    1659             : 
    1660             :         SAVE_OPLINE();
    1661       34760 :         el = zend_brk_cont(Z_LVAL_P(opline->op2.zv), opline->op1.opline_num,
    1662       34760 :                            EX(op_array), execute_data TSRMLS_CC);
    1663       34759 :         ZEND_VM_JMP(EX(op_array)->opcodes + el->brk);
    1664             : }
    1665             : 
    1666       45086 : static int ZEND_FASTCALL  ZEND_CONT_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1667             : {
    1668       45086 :         USE_OPLINE
    1669             :         zend_brk_cont_element *el;
    1670             : 
    1671             :         SAVE_OPLINE();
    1672       45086 :         el = zend_brk_cont(Z_LVAL_P(opline->op2.zv), opline->op1.opline_num,
    1673       45086 :                            EX(op_array), execute_data TSRMLS_CC);
    1674       45086 :         ZEND_VM_JMP(EX(op_array)->opcodes + el->cont);
    1675             : }
    1676             : 
    1677           2 : static int ZEND_FASTCALL  ZEND_GOTO_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1678             : {
    1679             :         zend_op *brk_opline;
    1680           2 :         USE_OPLINE
    1681             :         zend_brk_cont_element *el;
    1682             : 
    1683             :         SAVE_OPLINE();
    1684           2 :         el = zend_brk_cont(Z_LVAL_P(opline->op2.zv), opline->extended_value,
    1685           2 :                            EX(op_array), execute_data TSRMLS_CC);
    1686             : 
    1687           2 :         brk_opline = EX(op_array)->opcodes + el->brk;
    1688             : 
    1689           2 :         switch (brk_opline->opcode) {
    1690             :                 case ZEND_SWITCH_FREE:
    1691           1 :                         if (!(brk_opline->extended_value & EXT_TYPE_FREE_ON_RETURN)) {
    1692           1 :                                 zval_ptr_dtor(&EX_T(brk_opline->op1.var).var.ptr);
    1693             :                         }
    1694           1 :                         break;
    1695             :                 case ZEND_FREE:
    1696           0 :                         if (!(brk_opline->extended_value & EXT_TYPE_FREE_ON_RETURN)) {
    1697           0 :                                 zendi_zval_dtor(EX_T(brk_opline->op1.var).tmp_var);
    1698             :                         }
    1699             :                         break;
    1700             :         }
    1701           2 :         ZEND_VM_JMP(opline->op1.jmp_addr);
    1702             : }
    1703             : 
    1704         366 : static int ZEND_FASTCALL  ZEND_ADD_INTERFACE_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1705             : {
    1706         366 :         USE_OPLINE
    1707         366 :         zend_class_entry *ce = EX_T(opline->op1.var).class_entry;
    1708             :         zend_class_entry *iface;
    1709             : 
    1710             :         SAVE_OPLINE();
    1711         366 :         if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    1712           0 :                 iface = CACHED_PTR(opline->op2.literal->cache_slot);
    1713             :         } else {
    1714         366 :                 iface = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.literal + 1, opline->extended_value TSRMLS_CC);
    1715         364 :                 if (UNEXPECTED(iface == NULL)) {
    1716             :                         CHECK_EXCEPTION();
    1717           1 :                         ZEND_VM_NEXT_OPCODE();
    1718             :                 }
    1719         363 :                 CACHE_PTR(opline->op2.literal->cache_slot, iface);
    1720             :         }
    1721             : 
    1722         363 :         if (UNEXPECTED((iface->ce_flags & ZEND_ACC_INTERFACE) == 0)) {
    1723           4 :                 zend_error_noreturn(E_ERROR, "%s cannot implement %s - it is not an interface", ce->name, iface->name);
    1724             :         }
    1725         359 :         zend_do_implement_interface(ce, iface TSRMLS_CC);
    1726             : 
    1727             :         CHECK_EXCEPTION();
    1728         336 :         ZEND_VM_NEXT_OPCODE();
    1729             : }
    1730             : 
    1731           0 : static int ZEND_FASTCALL  ZEND_FETCH_CLASS_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1732             : {
    1733           0 :         USE_OPLINE
    1734             : 
    1735             :         SAVE_OPLINE();
    1736           0 :         if (EG(exception)) {
    1737           0 :                 zend_exception_save(TSRMLS_C);
    1738             :         }
    1739           0 :         if (IS_TMP_VAR == IS_UNUSED) {
    1740             :                 EX_T(opline->result.var).class_entry = zend_fetch_class(NULL, 0, opline->extended_value TSRMLS_CC);
    1741             :                 CHECK_EXCEPTION();
    1742             :                 ZEND_VM_NEXT_OPCODE();
    1743             :         } else {
    1744             :                 zend_free_op free_op2;
    1745           0 :                 zval *class_name = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
    1746             : 
    1747           0 :                 if (IS_TMP_VAR == IS_CONST) {
    1748             :                         if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    1749             :                                 EX_T(opline->result.var).class_entry = CACHED_PTR(opline->op2.literal->cache_slot);
    1750             :                         } else {
    1751             :                                 EX_T(opline->result.var).class_entry = zend_fetch_class_by_name(Z_STRVAL_P(class_name), Z_STRLEN_P(class_name), opline->op2.literal + 1, opline->extended_value TSRMLS_CC);
    1752             :                                 CACHE_PTR(opline->op2.literal->cache_slot, EX_T(opline->result.var).class_entry);
    1753             :                         }
    1754           0 :                 } else if (Z_TYPE_P(class_name) == IS_OBJECT) {
    1755           0 :                         EX_T(opline->result.var).class_entry = Z_OBJCE_P(class_name);
    1756           0 :                 } else if (Z_TYPE_P(class_name) == IS_STRING) {
    1757           0 :                         EX_T(opline->result.var).class_entry = zend_fetch_class(Z_STRVAL_P(class_name), Z_STRLEN_P(class_name), opline->extended_value TSRMLS_CC);
    1758             :                 } else {
    1759           0 :                         if (UNEXPECTED(EG(exception) != NULL)) {
    1760           0 :                                 HANDLE_EXCEPTION();
    1761             :                         }
    1762           0 :                         zend_error_noreturn(E_ERROR, "Class name must be a valid object or a string");
    1763             :                 }
    1764             : 
    1765           0 :                 zval_dtor(free_op2.var);
    1766             :                 CHECK_EXCEPTION();
    1767           0 :                 ZEND_VM_NEXT_OPCODE();
    1768             :         }
    1769             : }
    1770             : 
    1771           0 : static int ZEND_FASTCALL  ZEND_INIT_FCALL_BY_NAME_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1772             : {
    1773           0 :         USE_OPLINE
    1774             :         zval *function_name;
    1775           0 :         call_slot *call = EX(call_slots) + opline->result.num;
    1776             : 
    1777           0 :         if (IS_TMP_VAR == IS_CONST) {
    1778             :                 function_name = (zval*)(opline->op2.literal+1);
    1779             :                 if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    1780             :                         call->fbc = CACHED_PTR(opline->op2.literal->cache_slot);
    1781             :                 } else if (UNEXPECTED(zend_hash_quick_find(EG(function_table), Z_STRVAL_P(function_name), Z_STRLEN_P(function_name)+1, Z_HASH_P(function_name), (void **) &call->fbc) == FAILURE)) {
    1782             :                         SAVE_OPLINE();
    1783             :                         zend_error_noreturn(E_ERROR, "Call to undefined function %s()", Z_STRVAL_P(opline->op2.zv));
    1784             :                 } else {
    1785             :                         CACHE_PTR(opline->op2.literal->cache_slot, call->fbc);
    1786             :                 }
    1787             : 
    1788             :                 call->object = NULL;
    1789             :                 call->called_scope = NULL;
    1790             :                 call->num_additional_args = 0;
    1791             :                 call->is_ctor_call = 0;
    1792             :                 EX(call) = call;
    1793             : 
    1794             :                 /*CHECK_EXCEPTION();*/
    1795             :                 ZEND_VM_NEXT_OPCODE();
    1796             :         } else {
    1797             :                 char *function_name_strval, *lcname;
    1798             :                 int function_name_strlen;
    1799             :                 zend_free_op free_op2;
    1800             : 
    1801             :                 SAVE_OPLINE();
    1802           0 :                 function_name = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
    1803             : 
    1804           0 :                 if (EXPECTED(Z_TYPE_P(function_name) == IS_STRING)) {
    1805           0 :                         function_name_strval = Z_STRVAL_P(function_name);
    1806           0 :                         function_name_strlen = Z_STRLEN_P(function_name);
    1807           0 :                         if (function_name_strval[0] == '\\') {
    1808           0 :                             function_name_strlen -= 1;
    1809           0 :                                 lcname = zend_str_tolower_dup(function_name_strval + 1, function_name_strlen);
    1810             :                         } else {
    1811           0 :                                 lcname = zend_str_tolower_dup(function_name_strval, function_name_strlen);
    1812             :                         }
    1813           0 :                         if (UNEXPECTED(zend_hash_find(EG(function_table), lcname, function_name_strlen+1, (void **) &call->fbc) == FAILURE)) {
    1814           0 :                                 zend_error_noreturn(E_ERROR, "Call to undefined function %s()", function_name_strval);
    1815             :                         }
    1816           0 :                         efree(lcname);
    1817           0 :                         zval_dtor(free_op2.var);
    1818             : 
    1819           0 :                         call->object = NULL;
    1820           0 :                         call->called_scope = NULL;
    1821           0 :                         call->num_additional_args = 0;
    1822           0 :                         call->is_ctor_call = 0;
    1823           0 :                         EX(call) = call;
    1824             : 
    1825             :                         CHECK_EXCEPTION();
    1826           0 :                         ZEND_VM_NEXT_OPCODE();
    1827           0 :                 } else if (IS_TMP_VAR != IS_CONST && IS_TMP_VAR != IS_TMP_VAR &&
    1828             :                     EXPECTED(Z_TYPE_P(function_name) == IS_OBJECT) &&
    1829             :                         Z_OBJ_HANDLER_P(function_name, get_closure) &&
    1830             :                         Z_OBJ_HANDLER_P(function_name, get_closure)(function_name, &call->called_scope, &call->fbc, &call->object TSRMLS_CC) == SUCCESS) {
    1831             :                         if (call->object) {
    1832             :                                 Z_ADDREF_P(call->object);
    1833             :                         }
    1834             :                         if (IS_TMP_VAR == IS_VAR && 1 && Z_REFCOUNT_P(function_name) == 1 &&
    1835             :                             call->fbc->common.fn_flags & ZEND_ACC_CLOSURE) {
    1836             :                                 /* Delay closure destruction until its invocation */
    1837             :                                 call->fbc->common.prototype = (zend_function*)function_name;
    1838             :                         } else {
    1839             :                                 zval_dtor(free_op2.var);
    1840             :                         }
    1841             : 
    1842             :                         call->num_additional_args = 0;
    1843             :                         call->is_ctor_call = 0;
    1844             :                         EX(call) = call;
    1845             : 
    1846             :                         CHECK_EXCEPTION();
    1847             :                         ZEND_VM_NEXT_OPCODE();
    1848           0 :                 } else if (IS_TMP_VAR != IS_CONST &&
    1849           0 :                                 EXPECTED(Z_TYPE_P(function_name) == IS_ARRAY) &&
    1850           0 :                                 zend_hash_num_elements(Z_ARRVAL_P(function_name)) == 2) {
    1851             :                         zend_class_entry *ce;
    1852           0 :                         zval **method = NULL;
    1853           0 :                         zval **obj = NULL;
    1854             : 
    1855           0 :                         zend_hash_index_find(Z_ARRVAL_P(function_name), 0, (void **) &obj);
    1856           0 :                         zend_hash_index_find(Z_ARRVAL_P(function_name), 1, (void **) &method);
    1857             : 
    1858           0 :                         if (!obj || !method) {
    1859           0 :                                 zend_error_noreturn(E_ERROR, "Array callback has to contain indices 0 and 1");
    1860             :                         }
    1861             : 
    1862           0 :                         if (Z_TYPE_PP(obj) != IS_STRING && Z_TYPE_PP(obj) != IS_OBJECT) {
    1863           0 :                                 zend_error_noreturn(E_ERROR, "First array member is not a valid class name or object");
    1864             :                         }
    1865             : 
    1866           0 :                         if (Z_TYPE_PP(method) != IS_STRING) {
    1867           0 :                                 zend_error_noreturn(E_ERROR, "Second array member is not a valid method");
    1868             :                         }
    1869             : 
    1870           0 :                         if (Z_TYPE_PP(obj) == IS_STRING) {
    1871           0 :                                 ce = zend_fetch_class_by_name(Z_STRVAL_PP(obj), Z_STRLEN_PP(obj), NULL, 0 TSRMLS_CC);
    1872           0 :                                 if (UNEXPECTED(ce == NULL)) {
    1873             :                                         CHECK_EXCEPTION();
    1874           0 :                                         ZEND_VM_NEXT_OPCODE();
    1875             :                                 }
    1876           0 :                                 call->called_scope = ce;
    1877           0 :                                 call->object = NULL;
    1878             : 
    1879           0 :                                 if (ce->get_static_method) {
    1880           0 :                                         call->fbc = ce->get_static_method(ce, Z_STRVAL_PP(method), Z_STRLEN_PP(method) TSRMLS_CC);
    1881             :                                 } else {
    1882           0 :                                         call->fbc = zend_std_get_static_method(ce, Z_STRVAL_PP(method), Z_STRLEN_PP(method), NULL TSRMLS_CC);
    1883             :                                 }
    1884             :                         } else {
    1885           0 :                                 call->object = *obj;
    1886           0 :                                 ce = call->called_scope = Z_OBJCE_PP(obj);
    1887             : 
    1888           0 :                                 call->fbc = Z_OBJ_HT_P(call->object)->get_method(&call->object, Z_STRVAL_PP(method), Z_STRLEN_PP(method), NULL TSRMLS_CC);
    1889           0 :                                 if (UNEXPECTED(call->fbc == NULL)) {
    1890           0 :                                         zend_error_noreturn(E_ERROR, "Call to undefined method %s::%s()", Z_OBJ_CLASS_NAME_P(call->object), Z_STRVAL_PP(method));
    1891             :                                 }
    1892             : 
    1893           0 :                                 if ((call->fbc->common.fn_flags & ZEND_ACC_STATIC) != 0) {
    1894           0 :                                         call->object = NULL;
    1895             :                                 } else {
    1896           0 :                                         if (!PZVAL_IS_REF(call->object)) {
    1897           0 :                                                 Z_ADDREF_P(call->object); /* For $this pointer */
    1898             :                                         } else {
    1899             :                                                 zval *this_ptr;
    1900           0 :                                                 ALLOC_ZVAL(this_ptr);
    1901           0 :                                                 INIT_PZVAL_COPY(this_ptr, call->object);
    1902             :                                                 zval_copy_ctor(this_ptr);
    1903           0 :                                                 call->object = this_ptr;
    1904             :                                         }
    1905             :                                 }
    1906             :                         }
    1907             : 
    1908           0 :                         if (UNEXPECTED(call->fbc == NULL)) {
    1909           0 :                                 zend_error_noreturn(E_ERROR, "Call to undefined method %s::%s()", ce->name, Z_STRVAL_PP(method));
    1910             :                         }
    1911             : 
    1912           0 :                         call->num_additional_args = 0;
    1913           0 :                         call->is_ctor_call = 0;
    1914           0 :                         EX(call) = call;
    1915             : 
    1916           0 :                         zval_dtor(free_op2.var);
    1917             :                         CHECK_EXCEPTION();
    1918           0 :                         ZEND_VM_NEXT_OPCODE();
    1919             :                 } else {
    1920           0 :                         if (UNEXPECTED(EG(exception) != NULL)) {
    1921           0 :                                 HANDLE_EXCEPTION();
    1922             :                         }
    1923           0 :                         zend_error_noreturn(E_ERROR, "Function name must be a string");
    1924             :                         ZEND_VM_NEXT_OPCODE(); /* Never reached */
    1925             :                 }
    1926             :         }
    1927             : }
    1928             : 
    1929             : 
    1930           8 : static int ZEND_FASTCALL  ZEND_FETCH_CLASS_SPEC_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1931             : {
    1932           8 :         USE_OPLINE
    1933             : 
    1934             :         SAVE_OPLINE();
    1935           8 :         if (EG(exception)) {
    1936           0 :                 zend_exception_save(TSRMLS_C);
    1937             :         }
    1938           8 :         if (IS_VAR == IS_UNUSED) {
    1939             :                 EX_T(opline->result.var).class_entry = zend_fetch_class(NULL, 0, opline->extended_value TSRMLS_CC);
    1940             :                 CHECK_EXCEPTION();
    1941             :                 ZEND_VM_NEXT_OPCODE();
    1942             :         } else {
    1943             :                 zend_free_op free_op2;
    1944          16 :                 zval *class_name = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
    1945             : 
    1946           8 :                 if (IS_VAR == IS_CONST) {
    1947             :                         if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    1948             :                                 EX_T(opline->result.var).class_entry = CACHED_PTR(opline->op2.literal->cache_slot);
    1949             :                         } else {
    1950             :                                 EX_T(opline->result.var).class_entry = zend_fetch_class_by_name(Z_STRVAL_P(class_name), Z_STRLEN_P(class_name), opline->op2.literal + 1, opline->extended_value TSRMLS_CC);
    1951             :                                 CACHE_PTR(opline->op2.literal->cache_slot, EX_T(opline->result.var).class_entry);
    1952             :                         }
    1953           8 :                 } else if (Z_TYPE_P(class_name) == IS_OBJECT) {
    1954           2 :                         EX_T(opline->result.var).class_entry = Z_OBJCE_P(class_name);
    1955           6 :                 } else if (Z_TYPE_P(class_name) == IS_STRING) {
    1956           6 :                         EX_T(opline->result.var).class_entry = zend_fetch_class(Z_STRVAL_P(class_name), Z_STRLEN_P(class_name), opline->extended_value TSRMLS_CC);
    1957             :                 } else {
    1958           0 :                         if (UNEXPECTED(EG(exception) != NULL)) {
    1959           0 :                                 HANDLE_EXCEPTION();
    1960             :                         }
    1961           0 :                         zend_error_noreturn(E_ERROR, "Class name must be a valid object or a string");
    1962             :                 }
    1963             : 
    1964           8 :                 zval_ptr_dtor_nogc(&free_op2.var);
    1965             :                 CHECK_EXCEPTION();
    1966           8 :                 ZEND_VM_NEXT_OPCODE();
    1967             :         }
    1968             : }
    1969             : 
    1970          22 : static int ZEND_FASTCALL  ZEND_INIT_FCALL_BY_NAME_SPEC_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    1971             : {
    1972          22 :         USE_OPLINE
    1973             :         zval *function_name;
    1974          22 :         call_slot *call = EX(call_slots) + opline->result.num;
    1975             : 
    1976          22 :         if (IS_VAR == IS_CONST) {
    1977             :                 function_name = (zval*)(opline->op2.literal+1);
    1978             :                 if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    1979             :                         call->fbc = CACHED_PTR(opline->op2.literal->cache_slot);
    1980             :                 } else if (UNEXPECTED(zend_hash_quick_find(EG(function_table), Z_STRVAL_P(function_name), Z_STRLEN_P(function_name)+1, Z_HASH_P(function_name), (void **) &call->fbc) == FAILURE)) {
    1981             :                         SAVE_OPLINE();
    1982             :                         zend_error_noreturn(E_ERROR, "Call to undefined function %s()", Z_STRVAL_P(opline->op2.zv));
    1983             :                 } else {
    1984             :                         CACHE_PTR(opline->op2.literal->cache_slot, call->fbc);
    1985             :                 }
    1986             : 
    1987             :                 call->object = NULL;
    1988             :                 call->called_scope = NULL;
    1989             :                 call->num_additional_args = 0;
    1990             :                 call->is_ctor_call = 0;
    1991             :                 EX(call) = call;
    1992             : 
    1993             :                 /*CHECK_EXCEPTION();*/
    1994             :                 ZEND_VM_NEXT_OPCODE();
    1995             :         } else {
    1996             :                 char *function_name_strval, *lcname;
    1997             :                 int function_name_strlen;
    1998             :                 zend_free_op free_op2;
    1999             : 
    2000             :                 SAVE_OPLINE();
    2001          44 :                 function_name = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
    2002             : 
    2003          22 :                 if (EXPECTED(Z_TYPE_P(function_name) == IS_STRING)) {
    2004          14 :                         function_name_strval = Z_STRVAL_P(function_name);
    2005          14 :                         function_name_strlen = Z_STRLEN_P(function_name);
    2006          14 :                         if (function_name_strval[0] == '\\') {
    2007           0 :                             function_name_strlen -= 1;
    2008           0 :                                 lcname = zend_str_tolower_dup(function_name_strval + 1, function_name_strlen);
    2009             :                         } else {
    2010          14 :                                 lcname = zend_str_tolower_dup(function_name_strval, function_name_strlen);
    2011             :                         }
    2012          14 :                         if (UNEXPECTED(zend_hash_find(EG(function_table), lcname, function_name_strlen+1, (void **) &call->fbc) == FAILURE)) {
    2013           0 :                                 zend_error_noreturn(E_ERROR, "Call to undefined function %s()", function_name_strval);
    2014             :                         }
    2015          14 :                         efree(lcname);
    2016          14 :                         zval_ptr_dtor_nogc(&free_op2.var);
    2017             : 
    2018          14 :                         call->object = NULL;
    2019          14 :                         call->called_scope = NULL;
    2020          14 :                         call->num_additional_args = 0;
    2021          14 :                         call->is_ctor_call = 0;
    2022          14 :                         EX(call) = call;
    2023             : 
    2024             :                         CHECK_EXCEPTION();
    2025          14 :                         ZEND_VM_NEXT_OPCODE();
    2026          22 :                 } else if (IS_VAR != IS_CONST && IS_VAR != IS_TMP_VAR &&
    2027           8 :                     EXPECTED(Z_TYPE_P(function_name) == IS_OBJECT) &&
    2028           7 :                         Z_OBJ_HANDLER_P(function_name, get_closure) &&
    2029           7 :                         Z_OBJ_HANDLER_P(function_name, get_closure)(function_name, &call->called_scope, &call->fbc, &call->object TSRMLS_CC) == SUCCESS) {
    2030           7 :                         if (call->object) {
    2031           3 :                                 Z_ADDREF_P(call->object);
    2032             :                         }
    2033          16 :                         if (IS_VAR == IS_VAR && (free_op2.var != NULL) && Z_REFCOUNT_P(function_name) == 1 &&
    2034           1 :                             call->fbc->common.fn_flags & ZEND_ACC_CLOSURE) {
    2035             :                                 /* Delay closure destruction until its invocation */
    2036           1 :                                 call->fbc->common.prototype = (zend_function*)function_name;
    2037             :                         } else {
    2038           6 :                                 zval_ptr_dtor_nogc(&free_op2.var);
    2039             :                         }
    2040             : 
    2041           7 :                         call->num_additional_args = 0;
    2042           7 :                         call->is_ctor_call = 0;
    2043           7 :                         EX(call) = call;
    2044             : 
    2045             :                         CHECK_EXCEPTION();
    2046           7 :                         ZEND_VM_NEXT_OPCODE();
    2047           1 :                 } else if (IS_VAR != IS_CONST &&
    2048           1 :                                 EXPECTED(Z_TYPE_P(function_name) == IS_ARRAY) &&
    2049           0 :                                 zend_hash_num_elements(Z_ARRVAL_P(function_name)) == 2) {
    2050             :                         zend_class_entry *ce;
    2051           0 :                         zval **method = NULL;
    2052           0 :                         zval **obj = NULL;
    2053             : 
    2054           0 :                         zend_hash_index_find(Z_ARRVAL_P(function_name), 0, (void **) &obj);
    2055           0 :                         zend_hash_index_find(Z_ARRVAL_P(function_name), 1, (void **) &method);
    2056             : 
    2057           0 :                         if (!obj || !method) {
    2058           0 :                                 zend_error_noreturn(E_ERROR, "Array callback has to contain indices 0 and 1");
    2059             :                         }
    2060             : 
    2061           0 :                         if (Z_TYPE_PP(obj) != IS_STRING && Z_TYPE_PP(obj) != IS_OBJECT) {
    2062           0 :                                 zend_error_noreturn(E_ERROR, "First array member is not a valid class name or object");
    2063             :                         }
    2064             : 
    2065           0 :                         if (Z_TYPE_PP(method) != IS_STRING) {
    2066           0 :                                 zend_error_noreturn(E_ERROR, "Second array member is not a valid method");
    2067             :                         }
    2068             : 
    2069           0 :                         if (Z_TYPE_PP(obj) == IS_STRING) {
    2070           0 :                                 ce = zend_fetch_class_by_name(Z_STRVAL_PP(obj), Z_STRLEN_PP(obj), NULL, 0 TSRMLS_CC);
    2071           0 :                                 if (UNEXPECTED(ce == NULL)) {
    2072             :                                         CHECK_EXCEPTION();
    2073           0 :                                         ZEND_VM_NEXT_OPCODE();
    2074             :                                 }
    2075           0 :                                 call->called_scope = ce;
    2076           0 :                                 call->object = NULL;
    2077             : 
    2078           0 :                                 if (ce->get_static_method) {
    2079           0 :                                         call->fbc = ce->get_static_method(ce, Z_STRVAL_PP(method), Z_STRLEN_PP(method) TSRMLS_CC);
    2080             :                                 } else {
    2081           0 :                                         call->fbc = zend_std_get_static_method(ce, Z_STRVAL_PP(method), Z_STRLEN_PP(method), NULL TSRMLS_CC);
    2082             :                                 }
    2083             :                         } else {
    2084           0 :                                 call->object = *obj;
    2085           0 :                                 ce = call->called_scope = Z_OBJCE_PP(obj);
    2086             : 
    2087           0 :                                 call->fbc = Z_OBJ_HT_P(call->object)->get_method(&call->object, Z_STRVAL_PP(method), Z_STRLEN_PP(method), NULL TSRMLS_CC);
    2088           0 :                                 if (UNEXPECTED(call->fbc == NULL)) {
    2089           0 :                                         zend_error_noreturn(E_ERROR, "Call to undefined method %s::%s()", Z_OBJ_CLASS_NAME_P(call->object), Z_STRVAL_PP(method));
    2090             :                                 }
    2091             : 
    2092           0 :                                 if ((call->fbc->common.fn_flags & ZEND_ACC_STATIC) != 0) {
    2093           0 :                                         call->object = NULL;
    2094             :                                 } else {
    2095           0 :                                         if (!PZVAL_IS_REF(call->object)) {
    2096           0 :                                                 Z_ADDREF_P(call->object); /* For $this pointer */
    2097             :                                         } else {
    2098             :                                                 zval *this_ptr;
    2099           0 :                                                 ALLOC_ZVAL(this_ptr);
    2100           0 :                                                 INIT_PZVAL_COPY(this_ptr, call->object);
    2101             :                                                 zval_copy_ctor(this_ptr);
    2102           0 :                                                 call->object = this_ptr;
    2103             :                                         }
    2104             :                                 }
    2105             :                         }
    2106             : 
    2107           0 :                         if (UNEXPECTED(call->fbc == NULL)) {
    2108           0 :                                 zend_error_noreturn(E_ERROR, "Call to undefined method %s::%s()", ce->name, Z_STRVAL_PP(method));
    2109             :                         }
    2110             : 
    2111           0 :                         call->num_additional_args = 0;
    2112           0 :                         call->is_ctor_call = 0;
    2113           0 :                         EX(call) = call;
    2114             : 
    2115           0 :                         zval_ptr_dtor_nogc(&free_op2.var);
    2116             :                         CHECK_EXCEPTION();
    2117           0 :                         ZEND_VM_NEXT_OPCODE();
    2118             :                 } else {
    2119           1 :                         if (UNEXPECTED(EG(exception) != NULL)) {
    2120           0 :                                 HANDLE_EXCEPTION();
    2121             :                         }
    2122           1 :                         zend_error_noreturn(E_ERROR, "Function name must be a string");
    2123             :                         ZEND_VM_NEXT_OPCODE(); /* Never reached */
    2124             :                 }
    2125             :         }
    2126             : }
    2127             : 
    2128             : 
    2129        3096 : static int ZEND_FASTCALL  ZEND_FETCH_CLASS_SPEC_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    2130             : {
    2131        3096 :         USE_OPLINE
    2132             : 
    2133             :         SAVE_OPLINE();
    2134        3096 :         if (EG(exception)) {
    2135           0 :                 zend_exception_save(TSRMLS_C);
    2136             :         }
    2137             :         if (IS_UNUSED == IS_UNUSED) {
    2138        3096 :                 EX_T(opline->result.var).class_entry = zend_fetch_class(NULL, 0, opline->extended_value TSRMLS_CC);
    2139             :                 CHECK_EXCEPTION();
    2140        3096 :                 ZEND_VM_NEXT_OPCODE();
    2141             :         } else {
    2142             : 
    2143             :                 zval *class_name = NULL;
    2144             : 
    2145             :                 if (IS_UNUSED == IS_CONST) {
    2146             :                         if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    2147             :                                 EX_T(opline->result.var).class_entry = CACHED_PTR(opline->op2.literal->cache_slot);
    2148             :                         } else {
    2149             :                                 EX_T(opline->result.var).class_entry = zend_fetch_class_by_name(Z_STRVAL_P(class_name), Z_STRLEN_P(class_name), opline->op2.literal + 1, opline->extended_value TSRMLS_CC);
    2150             :                                 CACHE_PTR(opline->op2.literal->cache_slot, EX_T(opline->result.var).class_entry);
    2151             :                         }
    2152             :                 } else if (Z_TYPE_P(class_name) == IS_OBJECT) {
    2153             :                         EX_T(opline->result.var).class_entry = Z_OBJCE_P(class_name);
    2154             :                 } else if (Z_TYPE_P(class_name) == IS_STRING) {
    2155             :                         EX_T(opline->result.var).class_entry = zend_fetch_class(Z_STRVAL_P(class_name), Z_STRLEN_P(class_name), opline->extended_value TSRMLS_CC);
    2156             :                 } else {
    2157             :                         if (UNEXPECTED(EG(exception) != NULL)) {
    2158             :                                 HANDLE_EXCEPTION();
    2159             :                         }
    2160             :                         zend_error_noreturn(E_ERROR, "Class name must be a valid object or a string");
    2161             :                 }
    2162             : 
    2163             :                 CHECK_EXCEPTION();
    2164             :                 ZEND_VM_NEXT_OPCODE();
    2165             :         }
    2166             : }
    2167             : 
    2168        1270 : static int ZEND_FASTCALL  ZEND_FETCH_CLASS_SPEC_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    2169             : {
    2170        1270 :         USE_OPLINE
    2171             : 
    2172             :         SAVE_OPLINE();
    2173        1270 :         if (EG(exception)) {
    2174           0 :                 zend_exception_save(TSRMLS_C);
    2175             :         }
    2176        1270 :         if (IS_CV == IS_UNUSED) {
    2177             :                 EX_T(opline->result.var).class_entry = zend_fetch_class(NULL, 0, opline->extended_value TSRMLS_CC);
    2178             :                 CHECK_EXCEPTION();
    2179             :                 ZEND_VM_NEXT_OPCODE();
    2180             :         } else {
    2181             : 
    2182        2540 :                 zval *class_name = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC);
    2183             : 
    2184        1270 :                 if (IS_CV == IS_CONST) {
    2185             :                         if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    2186             :                                 EX_T(opline->result.var).class_entry = CACHED_PTR(opline->op2.literal->cache_slot);
    2187             :                         } else {
    2188             :                                 EX_T(opline->result.var).class_entry = zend_fetch_class_by_name(Z_STRVAL_P(class_name), Z_STRLEN_P(class_name), opline->op2.literal + 1, opline->extended_value TSRMLS_CC);
    2189             :                                 CACHE_PTR(opline->op2.literal->cache_slot, EX_T(opline->result.var).class_entry);
    2190             :                         }
    2191        1270 :                 } else if (Z_TYPE_P(class_name) == IS_OBJECT) {
    2192          18 :                         EX_T(opline->result.var).class_entry = Z_OBJCE_P(class_name);
    2193        1252 :                 } else if (Z_TYPE_P(class_name) == IS_STRING) {
    2194        1249 :                         EX_T(opline->result.var).class_entry = zend_fetch_class(Z_STRVAL_P(class_name), Z_STRLEN_P(class_name), opline->extended_value TSRMLS_CC);
    2195             :                 } else {
    2196           3 :                         if (UNEXPECTED(EG(exception) != NULL)) {
    2197           2 :                                 HANDLE_EXCEPTION();
    2198             :                         }
    2199           1 :                         zend_error_noreturn(E_ERROR, "Class name must be a valid object or a string");
    2200             :                 }
    2201             : 
    2202             :                 CHECK_EXCEPTION();
    2203        1262 :                 ZEND_VM_NEXT_OPCODE();
    2204             :         }
    2205             : }
    2206             : 
    2207       13526 : static int ZEND_FASTCALL  ZEND_INIT_FCALL_BY_NAME_SPEC_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    2208             : {
    2209       13526 :         USE_OPLINE
    2210             :         zval *function_name;
    2211       13526 :         call_slot *call = EX(call_slots) + opline->result.num;
    2212             : 
    2213       13526 :         if (IS_CV == IS_CONST) {
    2214             :                 function_name = (zval*)(opline->op2.literal+1);
    2215             :                 if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    2216             :                         call->fbc = CACHED_PTR(opline->op2.literal->cache_slot);
    2217             :                 } else if (UNEXPECTED(zend_hash_quick_find(EG(function_table), Z_STRVAL_P(function_name), Z_STRLEN_P(function_name)+1, Z_HASH_P(function_name), (void **) &call->fbc) == FAILURE)) {
    2218             :                         SAVE_OPLINE();
    2219             :                         zend_error_noreturn(E_ERROR, "Call to undefined function %s()", Z_STRVAL_P(opline->op2.zv));
    2220             :                 } else {
    2221             :                         CACHE_PTR(opline->op2.literal->cache_slot, call->fbc);
    2222             :                 }
    2223             : 
    2224             :                 call->object = NULL;
    2225             :                 call->called_scope = NULL;
    2226             :                 call->num_additional_args = 0;
    2227             :                 call->is_ctor_call = 0;
    2228             :                 EX(call) = call;
    2229             : 
    2230             :                 /*CHECK_EXCEPTION();*/
    2231             :                 ZEND_VM_NEXT_OPCODE();
    2232             :         } else {
    2233             :                 char *function_name_strval, *lcname;
    2234             :                 int function_name_strlen;
    2235             : 
    2236             : 
    2237             :                 SAVE_OPLINE();
    2238       27052 :                 function_name = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC);
    2239             : 
    2240       13526 :                 if (EXPECTED(Z_TYPE_P(function_name) == IS_STRING)) {
    2241       13272 :                         function_name_strval = Z_STRVAL_P(function_name);
    2242       13272 :                         function_name_strlen = Z_STRLEN_P(function_name);
    2243       13272 :                         if (function_name_strval[0] == '\\') {
    2244           1 :                             function_name_strlen -= 1;
    2245           1 :                                 lcname = zend_str_tolower_dup(function_name_strval + 1, function_name_strlen);
    2246             :                         } else {
    2247       13271 :                                 lcname = zend_str_tolower_dup(function_name_strval, function_name_strlen);
    2248             :                         }
    2249       13272 :                         if (UNEXPECTED(zend_hash_find(EG(function_table), lcname, function_name_strlen+1, (void **) &call->fbc) == FAILURE)) {
    2250           1 :                                 zend_error_noreturn(E_ERROR, "Call to undefined function %s()", function_name_strval);
    2251             :                         }
    2252       13271 :                         efree(lcname);
    2253             : 
    2254       13271 :                         call->object = NULL;
    2255       13271 :                         call->called_scope = NULL;
    2256       13271 :                         call->num_additional_args = 0;
    2257       13271 :                         call->is_ctor_call = 0;
    2258       13271 :                         EX(call) = call;
    2259             : 
    2260             :                         CHECK_EXCEPTION();
    2261       13271 :                         ZEND_VM_NEXT_OPCODE();
    2262         720 :                 } else if (IS_CV != IS_CONST && IS_CV != IS_TMP_VAR &&
    2263         254 :                     EXPECTED(Z_TYPE_P(function_name) == IS_OBJECT) &&
    2264         233 :                         Z_OBJ_HANDLER_P(function_name, get_closure) &&
    2265         233 :                         Z_OBJ_HANDLER_P(function_name, get_closure)(function_name, &call->called_scope, &call->fbc, &call->object TSRMLS_CC) == SUCCESS) {
    2266         233 :                         if (call->object) {
    2267          60 :                                 Z_ADDREF_P(call->object);
    2268             :                         }
    2269         233 :                         if (IS_CV == IS_VAR && 0 && Z_REFCOUNT_P(function_name) == 1 &&
    2270             :                             call->fbc->common.fn_flags & ZEND_ACC_CLOSURE) {
    2271             :                                 /* Delay closure destruction until its invocation */
    2272             :                                 call->fbc->common.prototype = (zend_function*)function_name;
    2273             :                         } else {
    2274             : 
    2275             :                         }
    2276             : 
    2277         233 :                         call->num_additional_args = 0;
    2278         233 :                         call->is_ctor_call = 0;
    2279         233 :                         EX(call) = call;
    2280             : 
    2281             :                         CHECK_EXCEPTION();
    2282         233 :                         ZEND_VM_NEXT_OPCODE();
    2283          40 :                 } else if (IS_CV != IS_CONST &&
    2284          21 :                                 EXPECTED(Z_TYPE_P(function_name) == IS_ARRAY) &&
    2285          19 :                                 zend_hash_num_elements(Z_ARRVAL_P(function_name)) == 2) {
    2286             :                         zend_class_entry *ce;
    2287          19 :                         zval **method = NULL;
    2288          19 :                         zval **obj = NULL;
    2289             : 
    2290          19 :                         zend_hash_index_find(Z_ARRVAL_P(function_name), 0, (void **) &obj);
    2291          19 :                         zend_hash_index_find(Z_ARRVAL_P(function_name), 1, (void **) &method);
    2292             : 
    2293          19 :                         if (!obj || !method) {
    2294           1 :                                 zend_error_noreturn(E_ERROR, "Array callback has to contain indices 0 and 1");
    2295             :                         }
    2296             : 
    2297          18 :                         if (Z_TYPE_PP(obj) != IS_STRING && Z_TYPE_PP(obj) != IS_OBJECT) {
    2298           0 :                                 zend_error_noreturn(E_ERROR, "First array member is not a valid class name or object");
    2299             :                         }
    2300             : 
    2301          18 :                         if (Z_TYPE_PP(method) != IS_STRING) {
    2302           0 :                                 zend_error_noreturn(E_ERROR, "Second array member is not a valid method");
    2303             :                         }
    2304             : 
    2305          18 :                         if (Z_TYPE_PP(obj) == IS_STRING) {
    2306           9 :                                 ce = zend_fetch_class_by_name(Z_STRVAL_PP(obj), Z_STRLEN_PP(obj), NULL, 0 TSRMLS_CC);
    2307           8 :                                 if (UNEXPECTED(ce == NULL)) {
    2308             :                                         CHECK_EXCEPTION();
    2309           1 :                                         ZEND_VM_NEXT_OPCODE();
    2310             :                                 }
    2311           7 :                                 call->called_scope = ce;
    2312           7 :                                 call->object = NULL;
    2313             : 
    2314           7 :                                 if (ce->get_static_method) {
    2315           0 :                                         call->fbc = ce->get_static_method(ce, Z_STRVAL_PP(method), Z_STRLEN_PP(method) TSRMLS_CC);
    2316             :                                 } else {
    2317           7 :                                         call->fbc = zend_std_get_static_method(ce, Z_STRVAL_PP(method), Z_STRLEN_PP(method), NULL TSRMLS_CC);
    2318             :                                 }
    2319             :                         } else {
    2320           9 :                                 call->object = *obj;
    2321           9 :                                 ce = call->called_scope = Z_OBJCE_PP(obj);
    2322             : 
    2323           9 :                                 call->fbc = Z_OBJ_HT_P(call->object)->get_method(&call->object, Z_STRVAL_PP(method), Z_STRLEN_PP(method), NULL TSRMLS_CC);
    2324           9 :                                 if (UNEXPECTED(call->fbc == NULL)) {
    2325           0 :                                         zend_error_noreturn(E_ERROR, "Call to undefined method %s::%s()", Z_OBJ_CLASS_NAME_P(call->object), Z_STRVAL_PP(method));
    2326             :                                 }
    2327             : 
    2328           9 :                                 if ((call->fbc->common.fn_flags & ZEND_ACC_STATIC) != 0) {
    2329           2 :                                         call->object = NULL;
    2330             :                                 } else {
    2331          14 :                                         if (!PZVAL_IS_REF(call->object)) {
    2332           7 :                                                 Z_ADDREF_P(call->object); /* For $this pointer */
    2333             :                                         } else {
    2334             :                                                 zval *this_ptr;
    2335           0 :                                                 ALLOC_ZVAL(this_ptr);
    2336           0 :                                                 INIT_PZVAL_COPY(this_ptr, call->object);
    2337             :                                                 zval_copy_ctor(this_ptr);
    2338           0 :                                                 call->object = this_ptr;
    2339             :                                         }
    2340             :                                 }
    2341             :                         }
    2342             : 
    2343          16 :                         if (UNEXPECTED(call->fbc == NULL)) {
    2344           1 :                                 zend_error_noreturn(E_ERROR, "Call to undefined method %s::%s()", ce->name, Z_STRVAL_PP(method));
    2345             :                         }
    2346             : 
    2347          15 :                         call->num_additional_args = 0;
    2348          15 :                         call->is_ctor_call = 0;
    2349          15 :                         EX(call) = call;
    2350             : 
    2351             :                         CHECK_EXCEPTION();
    2352          15 :                         ZEND_VM_NEXT_OPCODE();
    2353             :                 } else {
    2354           2 :                         if (UNEXPECTED(EG(exception) != NULL)) {
    2355           2 :                                 HANDLE_EXCEPTION();
    2356             :                         }
    2357           0 :                         zend_error_noreturn(E_ERROR, "Function name must be a string");
    2358             :                         ZEND_VM_NEXT_OPCODE(); /* Never reached */
    2359             :                 }
    2360             :         }
    2361             : }
    2362             : 
    2363             : 
    2364         115 : static int ZEND_FASTCALL  ZEND_BW_NOT_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    2365             : {
    2366         115 :         USE_OPLINE
    2367             : 
    2368             : 
    2369             :         SAVE_OPLINE();
    2370         115 :         bitwise_not_function(&EX_T(opline->result.var).tmp_var,
    2371             :                 opline->op1.zv TSRMLS_CC);
    2372             : 
    2373             :         CHECK_EXCEPTION();
    2374         115 :         ZEND_VM_NEXT_OPCODE();
    2375             : }
    2376             : 
    2377       20040 : static int ZEND_FASTCALL  ZEND_BOOL_NOT_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    2378             : {
    2379       20040 :         USE_OPLINE
    2380             : 
    2381             : 
    2382             :         SAVE_OPLINE();
    2383       20040 :         boolean_not_function(&EX_T(opline->result.var).tmp_var,
    2384             :                 opline->op1.zv TSRMLS_CC);
    2385             : 
    2386             :         CHECK_EXCEPTION();
    2387       20040 :         ZEND_VM_NEXT_OPCODE();
    2388             : }
    2389             : 
    2390       49106 : static int ZEND_FASTCALL  ZEND_ECHO_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    2391             : {
    2392       49106 :         USE_OPLINE
    2393             : 
    2394             :         zval *z;
    2395             : 
    2396             :         SAVE_OPLINE();
    2397       49106 :         z = opline->op1.zv;
    2398             : 
    2399       49106 :         if (IS_CONST == IS_TMP_VAR && Z_TYPE_P(z) == IS_OBJECT) {
    2400             :                 INIT_PZVAL(z);
    2401             :         }
    2402       49106 :         zend_print_variable(z);
    2403             : 
    2404             :         CHECK_EXCEPTION();
    2405       49105 :         ZEND_VM_NEXT_OPCODE();
    2406             : }
    2407             : 
    2408        1569 : static int ZEND_FASTCALL  ZEND_PRINT_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    2409             : {
    2410        1569 :         USE_OPLINE
    2411             : 
    2412        1569 :         ZVAL_LONG(&EX_T(opline->result.var).tmp_var, 1);
    2413        1569 :         return ZEND_ECHO_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    2414             : }
    2415             : 
    2416      955084 : static int ZEND_FASTCALL  ZEND_JMPZ_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    2417             : {
    2418      955084 :         USE_OPLINE
    2419             : 
    2420             :         zval *val;
    2421             :         int ret;
    2422             : 
    2423             :         SAVE_OPLINE();
    2424      955084 :         val = opline->op1.zv;
    2425             : 
    2426      955084 :         if (IS_CONST == IS_TMP_VAR && EXPECTED(Z_TYPE_P(val) == IS_BOOL)) {
    2427             :                 ret = Z_LVAL_P(val);
    2428             :         } else {
    2429      955084 :                 ret = i_zend_is_true(val TSRMLS_CC);
    2430             : 
    2431      955084 :                 if (UNEXPECTED(EG(exception) != NULL)) {
    2432           0 :                         HANDLE_EXCEPTION();
    2433             :                 }
    2434             :         }
    2435      955084 :         if (!ret) {
    2436             : #if DEBUG_ZEND>=2
    2437             :                 printf("Conditional jmp to %d\n", opline->op2.opline_num);
    2438             : #endif
    2439         112 :                 ZEND_VM_SET_OPCODE(opline->op2.jmp_addr);
    2440         112 :                 ZEND_VM_CONTINUE();
    2441             :         }
    2442             : 
    2443      954972 :         ZEND_VM_NEXT_OPCODE();
    2444             : }
    2445             : 
    2446          12 : static int ZEND_FASTCALL  ZEND_JMPNZ_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    2447             : {
    2448          12 :         USE_OPLINE
    2449             : 
    2450             :         zval *val;
    2451             :         int ret;
    2452             : 
    2453             :         SAVE_OPLINE();
    2454          12 :         val = opline->op1.zv;
    2455             : 
    2456          12 :         if (IS_CONST == IS_TMP_VAR && EXPECTED(Z_TYPE_P(val) == IS_BOOL)) {
    2457             :                 ret = Z_LVAL_P(val);
    2458             :         } else {
    2459          12 :                 ret = i_zend_is_true(val TSRMLS_CC);
    2460             : 
    2461          12 :                 if (UNEXPECTED(EG(exception) != NULL)) {
    2462           0 :                         HANDLE_EXCEPTION();
    2463             :                 }
    2464             :         }
    2465          12 :         if (ret) {
    2466             : #if DEBUG_ZEND>=2
    2467             :                 printf("Conditional jmp to %d\n", opline->op2.opline_num);
    2468             : #endif
    2469           8 :                 ZEND_VM_SET_OPCODE(opline->op2.jmp_addr);
    2470           8 :                 ZEND_VM_CONTINUE();
    2471             :         }
    2472             : 
    2473           4 :         ZEND_VM_NEXT_OPCODE();
    2474             : }
    2475             : 
    2476      743989 : static int ZEND_FASTCALL  ZEND_JMPZNZ_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    2477             : {
    2478      743989 :         USE_OPLINE
    2479             : 
    2480             :         zval *val;
    2481             :         int retval;
    2482             : 
    2483             :         SAVE_OPLINE();
    2484      743989 :         val = opline->op1.zv;
    2485             : 
    2486      743989 :         if (IS_CONST == IS_TMP_VAR && EXPECTED(Z_TYPE_P(val) == IS_BOOL)) {
    2487             :                 retval = Z_LVAL_P(val);
    2488             :         } else {
    2489      743989 :                 retval = i_zend_is_true(val TSRMLS_CC);
    2490             : 
    2491      743989 :                 if (UNEXPECTED(EG(exception) != NULL)) {
    2492           0 :                         HANDLE_EXCEPTION();
    2493             :                 }
    2494             :         }
    2495      743989 :         if (EXPECTED(retval != 0)) {
    2496             : #if DEBUG_ZEND>=2
    2497             :                 printf("Conditional jmp on true to %d\n", opline->extended_value);
    2498             : #endif
    2499      743989 :                 ZEND_VM_SET_OPCODE(&EX(op_array)->opcodes[opline->extended_value]);
    2500      743989 :                 ZEND_VM_CONTINUE(); /* CHECK_ME */
    2501             :         } else {
    2502             : #if DEBUG_ZEND>=2
    2503             :                 printf("Conditional jmp on false to %d\n", opline->op2.opline_num);
    2504             : #endif
    2505           0 :                 ZEND_VM_SET_OPCODE(&EX(op_array)->opcodes[opline->op2.opline_num]);
    2506           0 :                 ZEND_VM_CONTINUE(); /* CHECK_ME */
    2507             :         }
    2508             : }
    2509             : 
    2510           0 : static int ZEND_FASTCALL  ZEND_JMPZ_EX_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    2511             : {
    2512           0 :         USE_OPLINE
    2513             : 
    2514             :         zval *val;
    2515             :         int retval;
    2516             : 
    2517             :         SAVE_OPLINE();
    2518           0 :         val = opline->op1.zv;
    2519             : 
    2520           0 :         if (IS_CONST == IS_TMP_VAR && EXPECTED(Z_TYPE_P(val) == IS_BOOL)) {
    2521             :                 retval = Z_LVAL_P(val);
    2522             :         } else {
    2523           0 :                 retval = i_zend_is_true(val TSRMLS_CC);
    2524             : 
    2525           0 :                 if (UNEXPECTED(EG(exception) != NULL)) {
    2526           0 :                         HANDLE_EXCEPTION();
    2527             :                 }
    2528             :         }
    2529           0 :         Z_LVAL(EX_T(opline->result.var).tmp_var) = retval;
    2530           0 :         Z_TYPE(EX_T(opline->result.var).tmp_var) = IS_BOOL;
    2531           0 :         if (!retval) {
    2532             : #if DEBUG_ZEND>=2
    2533             :                 printf("Conditional jmp to %d\n", opline->op2.opline_num);
    2534             : #endif
    2535           0 :                 ZEND_VM_SET_OPCODE(opline->op2.jmp_addr);
    2536           0 :                 ZEND_VM_CONTINUE();
    2537             :         }
    2538           0 :         ZEND_VM_NEXT_OPCODE();
    2539             : }
    2540             : 
    2541           7 : static int ZEND_FASTCALL  ZEND_JMPNZ_EX_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    2542             : {
    2543           7 :         USE_OPLINE
    2544             : 
    2545             :         zval *val;
    2546             :         int retval;
    2547             : 
    2548             :         SAVE_OPLINE();
    2549           7 :         val = opline->op1.zv;
    2550             : 
    2551           7 :         if (IS_CONST == IS_TMP_VAR && EXPECTED(Z_TYPE_P(val) == IS_BOOL)) {
    2552             :                 retval = Z_LVAL_P(val);
    2553             :         } else {
    2554           7 :                 retval = i_zend_is_true(val TSRMLS_CC);
    2555             : 
    2556           7 :                 if (UNEXPECTED(EG(exception) != NULL)) {
    2557           0 :                         HANDLE_EXCEPTION();
    2558             :                 }
    2559             :         }
    2560           7 :         Z_LVAL(EX_T(opline->result.var).tmp_var) = retval;
    2561           7 :         Z_TYPE(EX_T(opline->result.var).tmp_var) = IS_BOOL;
    2562           7 :         if (retval) {
    2563             : #if DEBUG_ZEND>=2
    2564             :                 printf("Conditional jmp to %d\n", opline->op2.opline_num);
    2565             : #endif
    2566           7 :                 ZEND_VM_SET_OPCODE(opline->op2.jmp_addr);
    2567           7 :                 ZEND_VM_CONTINUE();
    2568             :         }
    2569           0 :         ZEND_VM_NEXT_OPCODE();
    2570             : }
    2571             : 
    2572    19538849 : static int ZEND_FASTCALL  ZEND_DO_FCALL_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    2573             : {
    2574    19538849 :         USE_OPLINE
    2575             : 
    2576    19538849 :         zval *fname = opline->op1.zv;
    2577    19538849 :         call_slot *call = EX(call_slots) + opline->op2.num;
    2578             : 
    2579    19538849 :         if (CACHED_PTR(opline->op1.literal->cache_slot)) {
    2580    19363098 :                 EX(function_state).function = CACHED_PTR(opline->op1.literal->cache_slot);
    2581      175751 :         } else if (UNEXPECTED(zend_hash_quick_find(EG(function_table), Z_STRVAL_P(fname), Z_STRLEN_P(fname)+1, Z_HASH_P(fname), (void **) &EX(function_state).function)==FAILURE)) {
    2582             :             SAVE_OPLINE();
    2583           2 :                 zend_error_noreturn(E_ERROR, "Call to undefined function %s()", fname->value.str.val);
    2584             :         } else {
    2585      175749 :                 CACHE_PTR(opline->op1.literal->cache_slot, EX(function_state).function);
    2586             :         }
    2587             : 
    2588    19538847 :         call->fbc = EX(function_state).function;
    2589    19538847 :         call->object = NULL;
    2590    19538847 :         call->called_scope = NULL;
    2591    19538847 :         call->num_additional_args = 0;
    2592    19538847 :         call->is_ctor_call = 0;
    2593    19538847 :         EX(call) = call;
    2594             : 
    2595    19538847 :         return zend_do_fcall_common_helper_SPEC(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    2596             : }
    2597             : 
    2598      569277 : static int ZEND_FASTCALL  ZEND_RETURN_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    2599             : {
    2600      569277 :         USE_OPLINE
    2601             :         zval *retval_ptr;
    2602             : 
    2603             : 
    2604             :         SAVE_OPLINE();
    2605      569277 :         retval_ptr = opline->op1.zv;
    2606             : 
    2607      569277 :         if (!EG(return_value_ptr_ptr)) {
    2608             : 
    2609             :         } else {
    2610             :                 if (IS_CONST == IS_CONST ||
    2611             :                     IS_CONST == IS_TMP_VAR ||
    2612             :                     PZVAL_IS_REF(retval_ptr)) {
    2613             :                         zval *ret;
    2614             : 
    2615      245693 :                         ALLOC_ZVAL(ret);
    2616      245693 :                         INIT_PZVAL_COPY(ret, retval_ptr);
    2617             :                         if (IS_CONST != IS_TMP_VAR) {
    2618             :                                 zval_copy_ctor(ret);
    2619             :                         }
    2620      245693 :                         *EG(return_value_ptr_ptr) = ret;
    2621             : 
    2622             :                 } else if ((IS_CONST == IS_CV || IS_CONST == IS_VAR) &&
    2623             :                            retval_ptr == &EG(uninitialized_zval)) {
    2624             :                         zval *ret;
    2625             : 
    2626             :                         if (IS_CONST == IS_VAR) {
    2627             :                                 Z_DELREF_P(retval_ptr);
    2628             :                         }
    2629             :                         ALLOC_INIT_ZVAL(ret);
    2630             :                         *EG(return_value_ptr_ptr) = ret;
    2631             :                 } else {
    2632             :                         *EG(return_value_ptr_ptr) = retval_ptr;
    2633             :                         if (IS_CONST == IS_CV) {
    2634             :                                 Z_ADDREF_P(retval_ptr);
    2635             :                         }
    2636             :                 }
    2637             :         }
    2638      569277 :         return zend_leave_helper_SPEC(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    2639             : }
    2640             : 
    2641           6 : static int ZEND_FASTCALL  ZEND_RETURN_BY_REF_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    2642             : {
    2643           6 :         USE_OPLINE
    2644             :         zval *retval_ptr;
    2645             :         zval **retval_ptr_ptr;
    2646             : 
    2647             : 
    2648             :         SAVE_OPLINE();
    2649             : 
    2650             :         do {
    2651             :                 if (IS_CONST == IS_CONST || IS_CONST == IS_TMP_VAR ||
    2652             :                     (IS_CONST == IS_VAR && opline->extended_value == ZEND_RETURNS_VALUE)) {
    2653             :                         /* Not supposed to happen, but we'll allow it */
    2654           6 :                         zend_error(E_NOTICE, "Only variable references should be returned by reference");
    2655             : 
    2656           6 :                         retval_ptr = opline->op1.zv;
    2657           6 :                         if (!EG(return_value_ptr_ptr)) {
    2658             :                                 if (IS_CONST == IS_TMP_VAR) {
    2659             : 
    2660             :                                 }
    2661             :                         } else if (!0) { /* Not a temp var */
    2662             :                                 zval *ret;
    2663             : 
    2664           6 :                                 ALLOC_ZVAL(ret);
    2665           6 :                                 INIT_PZVAL_COPY(ret, retval_ptr);
    2666             :                                 zval_copy_ctor(ret);
    2667           6 :                                 *EG(return_value_ptr_ptr) = ret;
    2668             :                         } else {
    2669             :                                 zval *ret;
    2670             : 
    2671             :                                 ALLOC_ZVAL(ret);
    2672             :                                 INIT_PZVAL_COPY(ret, retval_ptr);
    2673             :                                 *EG(return_value_ptr_ptr) = ret;
    2674             :                         }
    2675           6 :                         break;
    2676             :                 }
    2677             : 
    2678             :                 retval_ptr_ptr = NULL;
    2679             : 
    2680             :                 if (IS_CONST == IS_VAR && UNEXPECTED(retval_ptr_ptr == NULL)) {
    2681             :                         zend_error_noreturn(E_ERROR, "Cannot return string offsets by reference");
    2682             :                 }
    2683             : 
    2684             :                 if (IS_CONST == IS_VAR && !Z_ISREF_PP(retval_ptr_ptr)) {
    2685             :                         if (opline->extended_value == ZEND_RETURNS_FUNCTION &&
    2686             :                             EX_T(opline->op1.var).var.fcall_returned_reference) {
    2687             :                         } else if (EX_T(opline->op1.var).var.ptr_ptr == &EX_T(opline->op1.var).var.ptr) {
    2688             :                                 zend_error(E_NOTICE, "Only variable references should be returned by reference");
    2689             :                                 if (EG(return_value_ptr_ptr)) {
    2690             :                                         zval *ret;
    2691             : 
    2692             :                                         ALLOC_ZVAL(ret);
    2693             :                                         INIT_PZVAL_COPY(ret, *retval_ptr_ptr);
    2694             :                                         zval_copy_ctor(ret);
    2695             :                                         *EG(return_value_ptr_ptr) = ret;
    2696             :                                 }
    2697             :                                 break;
    2698             :                         }
    2699             :                 }
    2700             : 
    2701             :                 if (EG(return_value_ptr_ptr)) {
    2702             :                         SEPARATE_ZVAL_TO_MAKE_IS_REF(retval_ptr_ptr);
    2703             :                         Z_ADDREF_PP(retval_ptr_ptr);
    2704             : 
    2705             :                         *EG(return_value_ptr_ptr) = *retval_ptr_ptr;
    2706             :                 }
    2707             :         } while (0);
    2708             : 
    2709           6 :         return zend_leave_helper_SPEC(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    2710             : }
    2711             : 
    2712           2 : static int ZEND_FASTCALL  ZEND_THROW_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    2713             : {
    2714           2 :         USE_OPLINE
    2715             :         zval *value;
    2716             :         zval *exception;
    2717             : 
    2718             : 
    2719             :         SAVE_OPLINE();
    2720           2 :         value = opline->op1.zv;
    2721             : 
    2722             :         if (IS_CONST == IS_CONST || UNEXPECTED(Z_TYPE_P(value) != IS_OBJECT)) {
    2723           2 :                 if (UNEXPECTED(EG(exception) != NULL)) {
    2724           0 :                         HANDLE_EXCEPTION();
    2725             :                 }
    2726           2 :                 zend_error_noreturn(E_ERROR, "Can only throw objects");
    2727             :         }
    2728             : 
    2729             :         zend_exception_save(TSRMLS_C);
    2730             :         /* Not sure if a complete copy is what we want here */
    2731             :         ALLOC_ZVAL(exception);
    2732             :         INIT_PZVAL_COPY(exception, value);
    2733             :         if (!0) {
    2734             :                 zval_copy_ctor(exception);
    2735             :         }
    2736             : 
    2737             :         zend_throw_exception_object(exception TSRMLS_CC);
    2738             :         zend_exception_restore(TSRMLS_C);
    2739             : 
    2740             :         HANDLE_EXCEPTION();
    2741             : }
    2742             : 
    2743     9868056 : static int ZEND_FASTCALL  ZEND_SEND_VAL_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    2744             : {
    2745     9868056 :         USE_OPLINE
    2746             : 
    2747             :         SAVE_OPLINE();
    2748     9868056 :         if (opline->extended_value == ZEND_DO_FCALL_BY_NAME) {
    2749      247021 :                 if (ARG_MUST_BE_SENT_BY_REF(EX(call)->fbc, opline->op2.num)) {
    2750           3 :                         zend_error_noreturn(E_ERROR, "Cannot pass parameter %d by reference", opline->op2.num);
    2751             :                 }
    2752             :         }
    2753             : 
    2754             :         {
    2755             :                 zval *valptr;
    2756             :                 zval *value;
    2757             : 
    2758             : 
    2759     9868053 :                 value = opline->op1.zv;
    2760             : 
    2761     9868053 :                 ALLOC_ZVAL(valptr);
    2762     9868053 :                 INIT_PZVAL_COPY(valptr, value);
    2763             :                 if (!0) {
    2764             :                         zval_copy_ctor(valptr);
    2765             :                 }
    2766             :                 zend_vm_stack_push(valptr TSRMLS_CC);
    2767             : 
    2768             :         }
    2769             :         CHECK_EXCEPTION();
    2770     9868053 :         ZEND_VM_NEXT_OPCODE();
    2771             : }
    2772             : 
    2773           1 : static int ZEND_FASTCALL  ZEND_BOOL_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    2774             : {
    2775           1 :         USE_OPLINE
    2776             : 
    2777           1 :         zval *retval = &EX_T(opline->result.var).tmp_var;
    2778             : 
    2779             :         SAVE_OPLINE();
    2780             :         /* PHP 3.0 returned "" for false and 1 for true, here we use 0 and 1 for now */
    2781           2 :         ZVAL_BOOL(retval, i_zend_is_true(opline->op1.zv TSRMLS_CC));
    2782             : 
    2783             :         CHECK_EXCEPTION();
    2784           1 :         ZEND_VM_NEXT_OPCODE();
    2785             : }
    2786             : 
    2787           2 : static int ZEND_FASTCALL  ZEND_CLONE_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    2788             : {
    2789           2 :         USE_OPLINE
    2790             : 
    2791             :         zval *obj;
    2792             :         zend_class_entry *ce;
    2793             :         zend_function *clone;
    2794             :         zend_object_clone_obj_t clone_call;
    2795             : 
    2796             :         SAVE_OPLINE();
    2797           2 :         obj = opline->op1.zv;
    2798             : 
    2799             :         if (IS_CONST == IS_CONST ||
    2800             :             UNEXPECTED(Z_TYPE_P(obj) != IS_OBJECT)) {
    2801           2 :                 if (UNEXPECTED(EG(exception) != NULL)) {
    2802           0 :                         HANDLE_EXCEPTION();
    2803             :                 }
    2804           2 :                 zend_error_noreturn(E_ERROR, "__clone method called on non-object");
    2805             :         }
    2806             : 
    2807             :         ce = Z_OBJCE_P(obj);
    2808             :         clone = ce ? ce->clone : NULL;
    2809             :         clone_call =  Z_OBJ_HT_P(obj)->clone_obj;
    2810             :         if (UNEXPECTED(clone_call == NULL)) {
    2811             :                 if (ce) {
    2812             :                         zend_error_noreturn(E_ERROR, "Trying to clone an uncloneable object of class %s", ce->name);
    2813             :                 } else {
    2814             :                         zend_error_noreturn(E_ERROR, "Trying to clone an uncloneable object");
    2815             :                 }
    2816             :         }
    2817             : 
    2818             :         if (ce && clone) {
    2819             :                 if (clone->op_array.fn_flags & ZEND_ACC_PRIVATE) {
    2820             :                         /* Ensure that if we're calling a private function, we're allowed to do so.
    2821             :                          */
    2822             :                         if (UNEXPECTED(ce != EG(scope))) {
    2823             :                                 zend_error_noreturn(E_ERROR, "Call to private %s::__clone() from context '%s'", ce->name, EG(scope) ? EG(scope)->name : "");
    2824             :                         }
    2825             :                 } else if ((clone->common.fn_flags & ZEND_ACC_PROTECTED)) {
    2826             :                         /* Ensure that if we're calling a protected function, we're allowed to do so.
    2827             :                          */
    2828             :                         if (UNEXPECTED(!zend_check_protected(zend_get_function_root_class(clone), EG(scope)))) {
    2829             :                                 zend_error_noreturn(E_ERROR, "Call to protected %s::__clone() from context '%s'", ce->name, EG(scope) ? EG(scope)->name : "");
    2830             :                         }
    2831             :                 }
    2832             :         }
    2833             : 
    2834             :         if (EXPECTED(EG(exception) == NULL)) {
    2835             :                 zval *retval;
    2836             : 
    2837             :                 ALLOC_ZVAL(retval);
    2838             :                 Z_OBJVAL_P(retval) = clone_call(obj TSRMLS_CC);
    2839             :                 Z_TYPE_P(retval) = IS_OBJECT;
    2840             :                 Z_SET_REFCOUNT_P(retval, 1);
    2841             :                 Z_SET_ISREF_P(retval);
    2842             :                 if (!RETURN_VALUE_USED(opline) || UNEXPECTED(EG(exception) != NULL)) {
    2843             :                         zval_ptr_dtor(&retval);
    2844             :                 } else {
    2845             :                         EX_T(opline->result.var).var.ptr = retval;
    2846             :                 }
    2847             :         }
    2848             : 
    2849             :         CHECK_EXCEPTION();
    2850             :         ZEND_VM_NEXT_OPCODE();
    2851             : }
    2852             : 
    2853         226 : static int ZEND_FASTCALL  ZEND_CAST_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    2854             : {
    2855         226 :         USE_OPLINE
    2856             : 
    2857             :         zval *expr;
    2858         226 :         zval *result = &EX_T(opline->result.var).tmp_var;
    2859             : 
    2860             :         SAVE_OPLINE();
    2861         226 :         expr = opline->op1.zv;
    2862             : 
    2863         226 :         if (opline->extended_value != IS_STRING) {
    2864          24 :                 ZVAL_COPY_VALUE(result, expr);
    2865             :                 if (!0) {
    2866             :                         zendi_zval_copy_ctor(*result);
    2867             :                 }
    2868             :         }
    2869         226 :         switch (opline->extended_value) {
    2870             :                 case IS_NULL:
    2871           0 :                         convert_to_null(result);
    2872           0 :                         break;
    2873             :                 case IS_BOOL:
    2874           2 :                         convert_to_boolean(result);
    2875           2 :                         break;
    2876             :                 case IS_LONG:
    2877           6 :                         convert_to_long(result);
    2878           6 :                         break;
    2879             :                 case IS_DOUBLE:
    2880           6 :                         convert_to_double(result);
    2881           6 :                         break;
    2882             :                 case IS_STRING: {
    2883             :                         zval var_copy;
    2884             :                         int use_copy;
    2885             : 
    2886         202 :                         zend_make_printable_zval(expr, &var_copy, &use_copy);
    2887         202 :                         if (use_copy) {
    2888           8 :                                 ZVAL_COPY_VALUE(result, &var_copy);
    2889             :                                 if (0) {
    2890             : 
    2891             :                                 }
    2892             :                         } else {
    2893         194 :                                 ZVAL_COPY_VALUE(result, expr);
    2894             :                                 if (!0) {
    2895             :                                         zendi_zval_copy_ctor(*result);
    2896             :                                 }
    2897             :                         }
    2898         202 :                         break;
    2899             :                 }
    2900             :                 case IS_ARRAY:
    2901           5 :                         convert_to_array(result);
    2902           5 :                         break;
    2903             :                 case IS_OBJECT:
    2904           5 :                         convert_to_object(result);
    2905             :                         break;
    2906             :         }
    2907             : 
    2908             :         CHECK_EXCEPTION();
    2909         226 :         ZEND_VM_NEXT_OPCODE();
    2910             : }
    2911             : 
    2912        6989 : static int ZEND_FASTCALL  ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    2913             : {
    2914        6989 :         USE_OPLINE
    2915        6989 :         zend_op_array *new_op_array=NULL;
    2916             : 
    2917             :         zval *inc_filename;
    2918        6989 :         zval *tmp_inc_filename = NULL;
    2919        6989 :         zend_bool failure_retval=0;
    2920             : 
    2921             :         SAVE_OPLINE();
    2922        6989 :         inc_filename = opline->op1.zv;
    2923             : 
    2924        6989 :         if (inc_filename->type!=IS_STRING) {
    2925           0 :                 MAKE_STD_ZVAL(tmp_inc_filename);
    2926           0 :                 ZVAL_COPY_VALUE(tmp_inc_filename, inc_filename);
    2927           0 :                 zval_copy_ctor(tmp_inc_filename);
    2928           0 :                 convert_to_string(tmp_inc_filename);
    2929           0 :                 inc_filename = tmp_inc_filename;
    2930             :         }
    2931             : 
    2932        6989 :         if (opline->extended_value != ZEND_EVAL && strlen(Z_STRVAL_P(inc_filename)) != Z_STRLEN_P(inc_filename)) {
    2933           0 :                 if (opline->extended_value == ZEND_INCLUDE_ONCE || opline->extended_value == ZEND_INCLUDE) {
    2934           0 :                         zend_message_dispatcher(ZMSG_FAILED_INCLUDE_FOPEN, Z_STRVAL_P(inc_filename) TSRMLS_CC);
    2935             :                 } else {
    2936           0 :                         zend_message_dispatcher(ZMSG_FAILED_REQUIRE_FOPEN, Z_STRVAL_P(inc_filename) TSRMLS_CC);
    2937             :                 }
    2938             :         } else {
    2939        6989 :                 switch (opline->extended_value) {
    2940             :                         case ZEND_INCLUDE_ONCE:
    2941             :                         case ZEND_REQUIRE_ONCE: {
    2942             :                                         zend_file_handle file_handle;
    2943             :                                         char *resolved_path;
    2944             : 
    2945        4282 :                                         resolved_path = zend_resolve_path(Z_STRVAL_P(inc_filename), Z_STRLEN_P(inc_filename) TSRMLS_CC);
    2946        4282 :                                         if (resolved_path) {
    2947        4278 :                                                 failure_retval = zend_hash_exists(&EG(included_files), resolved_path, strlen(resolved_path)+1);
    2948             :                                         } else {
    2949           4 :                                                 resolved_path = Z_STRVAL_P(inc_filename);
    2950             :                                         }
    2951             : 
    2952        4282 :                                         if (failure_retval) {
    2953             :                                                 /* do nothing, file already included */
    2954        3624 :                                         } else if (SUCCESS == zend_stream_open(resolved_path, &file_handle TSRMLS_CC)) {
    2955             : 
    2956        3622 :                                                 if (!file_handle.opened_path) {
    2957           4 :                                                         file_handle.opened_path = estrdup(resolved_path);
    2958             :                                                 }
    2959             : 
    2960        3622 :                                                 if (zend_hash_add_empty_element(&EG(included_files), file_handle.opened_path, strlen(file_handle.opened_path)+1)==SUCCESS) {
    2961        3621 :                                                         new_op_array = zend_compile_file(&file_handle, (opline->extended_value==ZEND_INCLUDE_ONCE?ZEND_INCLUDE:ZEND_REQUIRE) TSRMLS_CC);
    2962        3621 :                                                         zend_destroy_file_handle(&file_handle TSRMLS_CC);
    2963             :                                                 } else {
    2964           1 :                                                         zend_file_handle_dtor(&file_handle TSRMLS_CC);
    2965           1 :                                                         failure_retval=1;
    2966             :                                                 }
    2967             :                                         } else {
    2968           2 :                                                 if (opline->extended_value == ZEND_INCLUDE_ONCE) {
    2969           0 :                                                         zend_message_dispatcher(ZMSG_FAILED_INCLUDE_FOPEN, Z_STRVAL_P(inc_filename) TSRMLS_CC);
    2970             :                                                 } else {
    2971           2 :                                                         zend_message_dispatcher(ZMSG_FAILED_REQUIRE_FOPEN, Z_STRVAL_P(inc_filename) TSRMLS_CC);
    2972             :                                                 }
    2973             :                                         }
    2974        4280 :                                         if (resolved_path != Z_STRVAL_P(inc_filename)) {
    2975        4278 :                                                 efree(resolved_path);
    2976             :                                         }
    2977             :                                 }
    2978        4280 :                                 break;
    2979             :                         case ZEND_INCLUDE:
    2980             :                         case ZEND_REQUIRE:
    2981        2651 :                                 new_op_array = compile_filename(opline->extended_value, inc_filename TSRMLS_CC);
    2982        2649 :                                 break;
    2983             :                         case ZEND_EVAL: {
    2984          56 :                                         char *eval_desc = zend_make_compiled_string_description("eval()'d code" TSRMLS_CC);
    2985             : 
    2986          56 :                                         new_op_array = zend_compile_string(inc_filename, eval_desc TSRMLS_CC);
    2987          54 :                                         efree(eval_desc);
    2988             :                                 }
    2989             :                                 break;
    2990             :                         EMPTY_SWITCH_DEFAULT_CASE()
    2991             :                 }
    2992             :         }
    2993        6983 :         if (tmp_inc_filename) {
    2994           0 :                 zval_ptr_dtor(&tmp_inc_filename);
    2995             :         }
    2996             : 
    2997        6983 :         if (UNEXPECTED(EG(exception) != NULL)) {
    2998           0 :                 HANDLE_EXCEPTION();
    2999        6983 :         } else if (EXPECTED(new_op_array != NULL)) {
    3000        6311 :                 EX(original_return_value) = EG(return_value_ptr_ptr);
    3001        6311 :                 EG(active_op_array) = new_op_array;
    3002        6311 :                 if (RETURN_VALUE_USED(opline)) {
    3003           0 :                         EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr;
    3004           0 :                         EG(return_value_ptr_ptr) = EX_T(opline->result.var).var.ptr_ptr;
    3005             :                 } else {
    3006        6311 :                         EG(return_value_ptr_ptr) = NULL;
    3007             :                 }
    3008             : 
    3009        6311 :                 EX(function_state).function = (zend_function *) new_op_array;
    3010        6311 :                 EX(object) = NULL;
    3011             : 
    3012        6311 :                 if (!EG(active_symbol_table)) {
    3013          27 :                         zend_rebuild_symbol_table(TSRMLS_C);
    3014             :                 }
    3015             : 
    3016        6311 :                 if (EXPECTED(zend_execute_ex == execute_ex)) {
    3017        6311 :                         ZEND_VM_ENTER();
    3018             :                 } else {
    3019           0 :                         zend_execute(new_op_array TSRMLS_CC);
    3020             :                 }
    3021             : 
    3022           0 :                 EX(function_state).function = (zend_function *) EX(op_array);
    3023             : 
    3024           0 :                 EG(opline_ptr) = &EX(opline);
    3025           0 :                 EG(active_op_array) = EX(op_array);
    3026           0 :                 EG(return_value_ptr_ptr) = EX(original_return_value);
    3027           0 :                 destroy_op_array(new_op_array TSRMLS_CC);
    3028           0 :                 efree(new_op_array);
    3029           0 :                 if (UNEXPECTED(EG(exception) != NULL)) {
    3030           0 :                         zend_throw_exception_internal(NULL TSRMLS_CC);
    3031           0 :                         HANDLE_EXCEPTION();
    3032             :                 }
    3033             : 
    3034         672 :         } else if (RETURN_VALUE_USED(opline)) {
    3035             :                 zval *retval;
    3036             : 
    3037           0 :                 ALLOC_ZVAL(retval);
    3038           0 :                 ZVAL_BOOL(retval, failure_retval);
    3039           0 :                 INIT_PZVAL(retval);
    3040           0 :                 EX_T(opline->result.var).var.ptr = retval;
    3041             :         }
    3042         672 :         ZEND_VM_NEXT_OPCODE();
    3043             : }
    3044             : 
    3045           0 : static int ZEND_FASTCALL  ZEND_FE_RESET_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3046             : {
    3047           0 :         USE_OPLINE
    3048             : 
    3049             :         zval *array_ptr, **array_ptr_ptr;
    3050             :         HashTable *fe_ht;
    3051           0 :         zend_object_iterator *iter = NULL;
    3052           0 :         zend_class_entry *ce = NULL;
    3053           0 :         zend_bool is_empty = 0;
    3054             : 
    3055             :         SAVE_OPLINE();
    3056             : 
    3057           0 :         if ((IS_CONST == IS_CV || IS_CONST == IS_VAR) &&
    3058             :             (opline->extended_value & ZEND_FE_RESET_VARIABLE)) {
    3059             :                 array_ptr_ptr = NULL;
    3060             :                 if (array_ptr_ptr == NULL || array_ptr_ptr == &EG(uninitialized_zval_ptr)) {
    3061             :                         MAKE_STD_ZVAL(array_ptr);
    3062             :                         ZVAL_NULL(array_ptr);
    3063             :                 } else if (Z_TYPE_PP(array_ptr_ptr) == IS_OBJECT) {
    3064             :                         if(Z_OBJ_HT_PP(array_ptr_ptr)->get_class_entry == NULL) {
    3065             :                                 zend_error(E_WARNING, "foreach() cannot iterate over objects without PHP class");
    3066             :                                 ZEND_VM_JMP(EX(op_array)->opcodes+opline->op2.opline_num);
    3067             :                         }
    3068             : 
    3069             :                         ce = Z_OBJCE_PP(array_ptr_ptr);
    3070             :                         if (!ce || ce->get_iterator == NULL) {
    3071             :                                 SEPARATE_ZVAL_IF_NOT_REF(array_ptr_ptr);
    3072             :                                 Z_ADDREF_PP(array_ptr_ptr);
    3073             :                         }
    3074             :                         array_ptr = *array_ptr_ptr;
    3075             :                 } else {
    3076             :                         if (Z_TYPE_PP(array_ptr_ptr) == IS_ARRAY) {
    3077             :                                 SEPARATE_ZVAL_IF_NOT_REF(array_ptr_ptr);
    3078             :                                 if (opline->extended_value & ZEND_FE_FETCH_BYREF) {
    3079             :                                         Z_SET_ISREF_PP(array_ptr_ptr);
    3080             :                                 }
    3081             :                         }
    3082             :                         array_ptr = *array_ptr_ptr;
    3083             :                         Z_ADDREF_P(array_ptr);
    3084             :                 }
    3085             :         } else {
    3086           0 :                 array_ptr = opline->op1.zv;
    3087           0 :                 if (0) { /* IS_TMP_VAR */
    3088             :                         zval *tmp;
    3089             : 
    3090             :                         ALLOC_ZVAL(tmp);
    3091             :                         INIT_PZVAL_COPY(tmp, array_ptr);
    3092             :                         array_ptr = tmp;
    3093             :                         if (Z_TYPE_P(array_ptr) == IS_OBJECT) {
    3094             :                                 ce = Z_OBJCE_P(array_ptr);
    3095             :                                 if (ce && ce->get_iterator) {
    3096             :                                         Z_DELREF_P(array_ptr);
    3097             :                                 }
    3098             :                         }
    3099           0 :                 } else if (Z_TYPE_P(array_ptr) == IS_OBJECT) {
    3100           0 :                         ce = Z_OBJCE_P(array_ptr);
    3101           0 :                         if (!ce || !ce->get_iterator) {
    3102           0 :                                 if (IS_CONST == IS_CV) {
    3103             :                                         Z_ADDREF_P(array_ptr);
    3104             :                                 }
    3105             :                         }
    3106             :                 } else if (IS_CONST == IS_CONST ||
    3107             :                            (IS_CONST == IS_CV &&
    3108             :                             !Z_ISREF_P(array_ptr) &&
    3109             :                             Z_REFCOUNT_P(array_ptr) > 1) ||
    3110             :                            (IS_CONST == IS_VAR &&
    3111             :                             !Z_ISREF_P(array_ptr) &&
    3112             :                             Z_REFCOUNT_P(array_ptr) > 2)) {
    3113             :                         zval *tmp;
    3114             : 
    3115           0 :                         if (IS_CONST == IS_VAR) {
    3116             :                                 Z_DELREF_P(array_ptr);
    3117             :                         }
    3118           0 :                         ALLOC_ZVAL(tmp);
    3119           0 :                         INIT_PZVAL_COPY(tmp, array_ptr);
    3120             :                         zval_copy_ctor(tmp);
    3121           0 :                         array_ptr = tmp;
    3122             :                 } else if (IS_CONST == IS_CV) {
    3123             :                         Z_ADDREF_P(array_ptr);
    3124             :                 }
    3125             :         }
    3126             : 
    3127           0 :         if (ce && ce->get_iterator) {
    3128           0 :                 iter = ce->get_iterator(ce, array_ptr, opline->extended_value & ZEND_FE_RESET_REFERENCE TSRMLS_CC);
    3129             : 
    3130             :                 if (IS_CONST == IS_VAR && !(opline->extended_value & ZEND_FE_RESET_VARIABLE)) {
    3131             : 
    3132             :                 }
    3133           0 :                 if (iter && EXPECTED(EG(exception) == NULL)) {
    3134           0 :                         array_ptr = zend_iterator_wrap(iter TSRMLS_CC);
    3135             :                 } else {
    3136             :                         if (IS_CONST == IS_VAR && opline->extended_value & ZEND_FE_RESET_VARIABLE) {
    3137             : 
    3138             :                         }
    3139           0 :                         if (!EG(exception)) {
    3140           0 :                                 zend_throw_exception_ex(NULL, 0 TSRMLS_CC, "Object of type %s did not create an Iterator", ce->name);
    3141             :                         }
    3142           0 :                         zend_throw_exception_internal(NULL TSRMLS_CC);
    3143           0 :                         HANDLE_EXCEPTION();
    3144             :                 }
    3145             :         }
    3146             : 
    3147           0 :         EX_T(opline->result.var).fe.ptr = array_ptr;
    3148             : 
    3149           0 :         if (iter) {
    3150           0 :                 iter->index = 0;
    3151           0 :                 if (iter->funcs->rewind) {
    3152           0 :                         iter->funcs->rewind(iter TSRMLS_CC);
    3153           0 :                         if (UNEXPECTED(EG(exception) != NULL)) {
    3154           0 :                                 zval_ptr_dtor(&array_ptr);
    3155             :                                 if (IS_CONST == IS_VAR && opline->extended_value & ZEND_FE_RESET_VARIABLE) {
    3156             : 
    3157             :                                 }
    3158           0 :                                 HANDLE_EXCEPTION();
    3159             :                         }
    3160             :                 }
    3161           0 :                 is_empty = iter->funcs->valid(iter TSRMLS_CC) != SUCCESS;
    3162           0 :                 if (UNEXPECTED(EG(exception) != NULL)) {
    3163           0 :                         zval_ptr_dtor(&array_ptr);
    3164             :                         if (IS_CONST == IS_VAR && opline->extended_value & ZEND_FE_RESET_VARIABLE) {
    3165             : 
    3166             :                         }
    3167           0 :                         HANDLE_EXCEPTION();
    3168             :                 }
    3169           0 :                 iter->index = -1; /* will be set to 0 before using next handler */
    3170           0 :         } else if ((fe_ht = HASH_OF(array_ptr)) != NULL) {
    3171           0 :                 zend_hash_internal_pointer_reset(fe_ht);
    3172           0 :                 if (ce) {
    3173           0 :                         zend_object *zobj = zend_objects_get_address(array_ptr TSRMLS_CC);
    3174           0 :                         while (zend_hash_has_more_elements(fe_ht) == SUCCESS) {
    3175             :                                 char *str_key;
    3176             :                                 uint str_key_len;
    3177             :                                 ulong int_key;
    3178             :                                 zend_uchar key_type;
    3179             : 
    3180           0 :                                 key_type = zend_hash_get_current_key_ex(fe_ht, &str_key, &str_key_len, &int_key, 0, NULL);
    3181           0 :                                 if (key_type != HASH_KEY_NON_EXISTENT &&
    3182             :                                         (key_type == HASH_KEY_IS_LONG ||
    3183           0 :                                      zend_check_property_access(zobj, str_key, str_key_len-1 TSRMLS_CC) == SUCCESS)) {
    3184             :                                         break;
    3185             :                                 }
    3186           0 :                                 zend_hash_move_forward(fe_ht);
    3187             :                         }
    3188             :                 }
    3189           0 :                 is_empty = zend_hash_has_more_elements(fe_ht) != SUCCESS;
    3190           0 :                 zend_hash_get_pointer(fe_ht, &EX_T(opline->result.var).fe.fe_pos);
    3191             :         } else {
    3192           0 :                 zend_error(E_WARNING, "Invalid argument supplied for foreach()");
    3193           0 :                 is_empty = 1;
    3194             :         }
    3195             : 
    3196             :         if (IS_CONST == IS_VAR && opline->extended_value & ZEND_FE_RESET_VARIABLE) {
    3197             : 
    3198             :         }
    3199           0 :         if (is_empty) {
    3200           0 :                 ZEND_VM_JMP(EX(op_array)->opcodes+opline->op2.opline_num);
    3201             :         } else {
    3202             :                 CHECK_EXCEPTION();
    3203           0 :                 ZEND_VM_NEXT_OPCODE();
    3204             :         }
    3205             : }
    3206             : 
    3207         835 : static int ZEND_FASTCALL  ZEND_EXIT_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3208             : {
    3209             : #if 0 || (IS_CONST != IS_UNUSED)
    3210         835 :         USE_OPLINE
    3211             : 
    3212             :         SAVE_OPLINE();
    3213             :         if (IS_CONST != IS_UNUSED) {
    3214             : 
    3215         835 :                 zval *ptr = opline->op1.zv;
    3216             : 
    3217         835 :                 if (Z_TYPE_P(ptr) == IS_LONG) {
    3218          32 :                         EG(exit_status) = Z_LVAL_P(ptr);
    3219             :                 } else {
    3220         803 :                         zend_print_variable(ptr);
    3221             :                 }
    3222             : 
    3223             :         }
    3224             : #endif
    3225         835 :         zend_bailout();
    3226           0 :         ZEND_VM_NEXT_OPCODE(); /* Never reached */
    3227             : }
    3228             : 
    3229           5 : static int ZEND_FASTCALL  ZEND_JMP_SET_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3230             : {
    3231           5 :         USE_OPLINE
    3232             : 
    3233             :         zval *value;
    3234             : 
    3235             :         SAVE_OPLINE();
    3236           5 :         value = opline->op1.zv;
    3237             : 
    3238           5 :         if (i_zend_is_true(value TSRMLS_CC)) {
    3239           3 :                 ZVAL_COPY_VALUE(&EX_T(opline->result.var).tmp_var, value);
    3240             :                 if (!0) {
    3241           3 :                         zendi_zval_copy_ctor(EX_T(opline->result.var).tmp_var);
    3242             :                 }
    3243             : 
    3244             : #if DEBUG_ZEND>=2
    3245             :                 printf("Conditional jmp to %d\n", opline->op2.opline_num);
    3246             : #endif
    3247           3 :                 ZEND_VM_JMP(opline->op2.jmp_addr);
    3248             :         }
    3249             : 
    3250             :         CHECK_EXCEPTION();
    3251           2 :         ZEND_VM_NEXT_OPCODE();
    3252             : }
    3253             : 
    3254           0 : static int ZEND_FASTCALL  ZEND_JMP_SET_VAR_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3255             : {
    3256           0 :         USE_OPLINE
    3257             : 
    3258             :         zval *value, *ret;
    3259             : 
    3260             :         SAVE_OPLINE();
    3261           0 :         value = opline->op1.zv;
    3262             : 
    3263           0 :         if (i_zend_is_true(value TSRMLS_CC)) {
    3264           0 :                 if (IS_CONST == IS_VAR || IS_CONST == IS_CV) {
    3265             :                         Z_ADDREF_P(value);
    3266             :                         EX_T(opline->result.var).var.ptr = value;
    3267             :                         EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr;
    3268             :                 } else {
    3269           0 :                         ALLOC_ZVAL(ret);
    3270           0 :                         INIT_PZVAL_COPY(ret, value);
    3271           0 :                         EX_T(opline->result.var).var.ptr = ret;
    3272           0 :                         EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr;
    3273             :                         if (!0) {
    3274           0 :                                 zval_copy_ctor(EX_T(opline->result.var).var.ptr);
    3275             :                         }
    3276             :                 }
    3277             : 
    3278             : #if DEBUG_ZEND>=2
    3279             :                 printf("Conditional jmp to %d\n", opline->op2.opline_num);
    3280             : #endif
    3281           0 :                 ZEND_VM_JMP(opline->op2.jmp_addr);
    3282             :         }
    3283             : 
    3284             :         CHECK_EXCEPTION();
    3285           0 :         ZEND_VM_NEXT_OPCODE();
    3286             : }
    3287             : 
    3288      496692 : static int ZEND_FASTCALL  ZEND_QM_ASSIGN_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3289             : {
    3290      496692 :         USE_OPLINE
    3291             : 
    3292             :         zval *value;
    3293             : 
    3294             :         SAVE_OPLINE();
    3295      496692 :         value = opline->op1.zv;
    3296             : 
    3297      496692 :         ZVAL_COPY_VALUE(&EX_T(opline->result.var).tmp_var, value);
    3298             :         if (!0) {
    3299      496692 :                 zval_copy_ctor(&EX_T(opline->result.var).tmp_var);
    3300             :         }
    3301             : 
    3302             :         CHECK_EXCEPTION();
    3303      496692 :         ZEND_VM_NEXT_OPCODE();
    3304             : }
    3305             : 
    3306       42343 : static int ZEND_FASTCALL  ZEND_QM_ASSIGN_VAR_SPEC_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3307             : {
    3308       42343 :         USE_OPLINE
    3309             : 
    3310             :         zval *value, *ret;
    3311             : 
    3312             :         SAVE_OPLINE();
    3313       42343 :         value = opline->op1.zv;
    3314             : 
    3315       42343 :         if (IS_CONST == IS_VAR || IS_CONST == IS_CV) {
    3316             :                 Z_ADDREF_P(value);
    3317             :                 EX_T(opline->result.var).var.ptr = value;
    3318             :                 EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr;
    3319             :         } else {
    3320       42343 :                 ALLOC_ZVAL(ret);
    3321       42343 :                 INIT_PZVAL_COPY(ret, value);
    3322       42343 :                 EX_T(opline->result.var).var.ptr = ret;
    3323       42343 :                 EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr;
    3324             :                 if (!0) {
    3325       42343 :                         zval_copy_ctor(EX_T(opline->result.var).var.ptr);
    3326             :                 }
    3327             :         }
    3328             : 
    3329             :         CHECK_EXCEPTION();
    3330       42343 :         ZEND_VM_NEXT_OPCODE();
    3331             : }
    3332             : 
    3333      101329 : static int ZEND_FASTCALL  ZEND_ADD_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3334             : {
    3335      101329 :         USE_OPLINE
    3336             : 
    3337             : 
    3338             :         SAVE_OPLINE();
    3339      101329 :         fast_add_function(&EX_T(opline->result.var).tmp_var,
    3340             :                 opline->op1.zv,
    3341             :                 opline->op2.zv TSRMLS_CC);
    3342             : 
    3343             : 
    3344             :         CHECK_EXCEPTION();
    3345      101329 :         ZEND_VM_NEXT_OPCODE();
    3346             : }
    3347             : 
    3348         222 : static int ZEND_FASTCALL  ZEND_SUB_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3349             : {
    3350         222 :         USE_OPLINE
    3351             : 
    3352             : 
    3353             :         SAVE_OPLINE();
    3354         222 :         fast_sub_function(&EX_T(opline->result.var).tmp_var,
    3355             :                 opline->op1.zv,
    3356             :                 opline->op2.zv TSRMLS_CC);
    3357             : 
    3358             : 
    3359             :         CHECK_EXCEPTION();
    3360         222 :         ZEND_VM_NEXT_OPCODE();
    3361             : }
    3362             : 
    3363        8243 : static int ZEND_FASTCALL  ZEND_MUL_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3364             : {
    3365        8243 :         USE_OPLINE
    3366             : 
    3367             : 
    3368             :         SAVE_OPLINE();
    3369        8243 :         fast_mul_function(&EX_T(opline->result.var).tmp_var,
    3370             :                 opline->op1.zv,
    3371             :                 opline->op2.zv TSRMLS_CC);
    3372             : 
    3373             : 
    3374             :         CHECK_EXCEPTION();
    3375        8243 :         ZEND_VM_NEXT_OPCODE();
    3376             : }
    3377             : 
    3378          36 : static int ZEND_FASTCALL  ZEND_DIV_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3379             : {
    3380          36 :         USE_OPLINE
    3381             : 
    3382             : 
    3383             :         SAVE_OPLINE();
    3384          36 :         fast_div_function(&EX_T(opline->result.var).tmp_var,
    3385             :                 opline->op1.zv,
    3386             :                 opline->op2.zv TSRMLS_CC);
    3387             : 
    3388             : 
    3389             :         CHECK_EXCEPTION();
    3390          36 :         ZEND_VM_NEXT_OPCODE();
    3391             : }
    3392             : 
    3393           4 : static int ZEND_FASTCALL  ZEND_MOD_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3394             : {
    3395           4 :         USE_OPLINE
    3396             : 
    3397             : 
    3398             :         SAVE_OPLINE();
    3399           4 :         fast_mod_function(&EX_T(opline->result.var).tmp_var,
    3400             :                 opline->op1.zv,
    3401             :                 opline->op2.zv TSRMLS_CC);
    3402             : 
    3403             : 
    3404             :         CHECK_EXCEPTION();
    3405           4 :         ZEND_VM_NEXT_OPCODE();
    3406             : }
    3407             : 
    3408          27 : static int ZEND_FASTCALL  ZEND_SL_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3409             : {
    3410          27 :         USE_OPLINE
    3411             : 
    3412             : 
    3413             :         SAVE_OPLINE();
    3414          27 :         shift_left_function(&EX_T(opline->result.var).tmp_var,
    3415             :                 opline->op1.zv,
    3416             :                 opline->op2.zv TSRMLS_CC);
    3417             : 
    3418             : 
    3419             :         CHECK_EXCEPTION();
    3420          27 :         ZEND_VM_NEXT_OPCODE();
    3421             : }
    3422             : 
    3423           3 : static int ZEND_FASTCALL  ZEND_SR_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3424             : {
    3425           3 :         USE_OPLINE
    3426             : 
    3427             : 
    3428             :         SAVE_OPLINE();
    3429           3 :         shift_right_function(&EX_T(opline->result.var).tmp_var,
    3430             :                 opline->op1.zv,
    3431             :                 opline->op2.zv TSRMLS_CC);
    3432             : 
    3433             : 
    3434             :         CHECK_EXCEPTION();
    3435           3 :         ZEND_VM_NEXT_OPCODE();
    3436             : }
    3437             : 
    3438       24065 : static int ZEND_FASTCALL  ZEND_CONCAT_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3439             : {
    3440       24065 :         USE_OPLINE
    3441             : 
    3442             : 
    3443             :         SAVE_OPLINE();
    3444       24065 :         concat_function(&EX_T(opline->result.var).tmp_var,
    3445             :                 opline->op1.zv,
    3446             :                 opline->op2.zv TSRMLS_CC);
    3447             : 
    3448             : 
    3449             :         CHECK_EXCEPTION();
    3450       24065 :         ZEND_VM_NEXT_OPCODE();
    3451             : }
    3452             : 
    3453           0 : static int ZEND_FASTCALL  ZEND_IS_IDENTICAL_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3454             : {
    3455           0 :         USE_OPLINE
    3456             : 
    3457             : 
    3458             :         SAVE_OPLINE();
    3459           0 :         is_identical_function(&EX_T(opline->result.var).tmp_var,
    3460             :                 opline->op1.zv,
    3461             :                 opline->op2.zv TSRMLS_CC);
    3462             : 
    3463             : 
    3464             :         CHECK_EXCEPTION();
    3465           0 :         ZEND_VM_NEXT_OPCODE();
    3466             : }
    3467             : 
    3468           4 : static int ZEND_FASTCALL  ZEND_IS_NOT_IDENTICAL_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3469             : {
    3470           4 :         USE_OPLINE
    3471             : 
    3472           4 :         zval *result = &EX_T(opline->result.var).tmp_var;
    3473             : 
    3474             :         SAVE_OPLINE();
    3475           4 :         is_identical_function(result,
    3476             :                 opline->op1.zv,
    3477             :                 opline->op2.zv TSRMLS_CC);
    3478           4 :         Z_LVAL_P(result) = !Z_LVAL_P(result);
    3479             : 
    3480             : 
    3481             :         CHECK_EXCEPTION();
    3482           4 :         ZEND_VM_NEXT_OPCODE();
    3483             : }
    3484             : 
    3485         105 : static int ZEND_FASTCALL  ZEND_IS_EQUAL_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3486             : {
    3487         105 :         USE_OPLINE
    3488             : 
    3489         105 :         zval *result = &EX_T(opline->result.var).tmp_var;
    3490             : 
    3491             :         SAVE_OPLINE();
    3492         210 :         ZVAL_BOOL(result, fast_equal_function(result,
    3493             :                 opline->op1.zv,
    3494             :                 opline->op2.zv TSRMLS_CC));
    3495             : 
    3496             : 
    3497             :         CHECK_EXCEPTION();
    3498         105 :         ZEND_VM_NEXT_OPCODE();
    3499             : }
    3500             : 
    3501         323 : static int ZEND_FASTCALL  ZEND_IS_NOT_EQUAL_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3502             : {
    3503         323 :         USE_OPLINE
    3504             : 
    3505         323 :         zval *result = &EX_T(opline->result.var).tmp_var;
    3506             : 
    3507             :         SAVE_OPLINE();
    3508         646 :         ZVAL_BOOL(result, fast_not_equal_function(result,
    3509             :                 opline->op1.zv,
    3510             :                 opline->op2.zv TSRMLS_CC));
    3511             : 
    3512             : 
    3513             :         CHECK_EXCEPTION();
    3514         323 :         ZEND_VM_NEXT_OPCODE();
    3515             : }
    3516             : 
    3517          45 : static int ZEND_FASTCALL  ZEND_IS_SMALLER_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3518             : {
    3519          45 :         USE_OPLINE
    3520             : 
    3521          45 :         zval *result = &EX_T(opline->result.var).tmp_var;
    3522             : 
    3523             :         SAVE_OPLINE();
    3524          90 :         ZVAL_BOOL(result, fast_is_smaller_function(result,
    3525             :                 opline->op1.zv,
    3526             :                 opline->op2.zv TSRMLS_CC));
    3527             : 
    3528             : 
    3529             :         CHECK_EXCEPTION();
    3530          45 :         ZEND_VM_NEXT_OPCODE();
    3531             : }
    3532             : 
    3533           0 : static int ZEND_FASTCALL  ZEND_IS_SMALLER_OR_EQUAL_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3534             : {
    3535           0 :         USE_OPLINE
    3536             : 
    3537           0 :         zval *result = &EX_T(opline->result.var).tmp_var;
    3538             : 
    3539             :         SAVE_OPLINE();
    3540           0 :         ZVAL_BOOL(result, fast_is_smaller_or_equal_function(result,
    3541             :                 opline->op1.zv,
    3542             :                 opline->op2.zv TSRMLS_CC));
    3543             : 
    3544             : 
    3545             :         CHECK_EXCEPTION();
    3546           0 :         ZEND_VM_NEXT_OPCODE();
    3547             : }
    3548             : 
    3549      123957 : static int ZEND_FASTCALL  ZEND_BW_OR_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3550             : {
    3551      123957 :         USE_OPLINE
    3552             : 
    3553             : 
    3554             :         SAVE_OPLINE();
    3555      123957 :         bitwise_or_function(&EX_T(opline->result.var).tmp_var,
    3556             :                 opline->op1.zv,
    3557             :                 opline->op2.zv TSRMLS_CC);
    3558             : 
    3559             : 
    3560             :         CHECK_EXCEPTION();
    3561      123957 :         ZEND_VM_NEXT_OPCODE();
    3562             : }
    3563             : 
    3564           0 : static int ZEND_FASTCALL  ZEND_BW_AND_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3565             : {
    3566           0 :         USE_OPLINE
    3567             : 
    3568             : 
    3569             :         SAVE_OPLINE();
    3570           0 :         bitwise_and_function(&EX_T(opline->result.var).tmp_var,
    3571             :                 opline->op1.zv,
    3572             :                 opline->op2.zv TSRMLS_CC);
    3573             : 
    3574             : 
    3575             :         CHECK_EXCEPTION();
    3576           0 :         ZEND_VM_NEXT_OPCODE();
    3577             : }
    3578             : 
    3579           9 : static int ZEND_FASTCALL  ZEND_BW_XOR_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3580             : {
    3581           9 :         USE_OPLINE
    3582             : 
    3583             : 
    3584             :         SAVE_OPLINE();
    3585           9 :         bitwise_xor_function(&EX_T(opline->result.var).tmp_var,
    3586             :                 opline->op1.zv,
    3587             :                 opline->op2.zv TSRMLS_CC);
    3588             : 
    3589             : 
    3590             :         CHECK_EXCEPTION();
    3591           9 :         ZEND_VM_NEXT_OPCODE();
    3592             : }
    3593             : 
    3594           0 : static int ZEND_FASTCALL  ZEND_BOOL_XOR_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3595             : {
    3596           0 :         USE_OPLINE
    3597             : 
    3598             : 
    3599             :         SAVE_OPLINE();
    3600           0 :         boolean_xor_function(&EX_T(opline->result.var).tmp_var,
    3601             :                 opline->op1.zv,
    3602             :                 opline->op2.zv TSRMLS_CC);
    3603             : 
    3604             : 
    3605             :         CHECK_EXCEPTION();
    3606           0 :         ZEND_VM_NEXT_OPCODE();
    3607             : }
    3608             : 
    3609         273 : static int ZEND_FASTCALL zend_fetch_var_address_helper_SPEC_CONST_CONST(int type, ZEND_OPCODE_HANDLER_ARGS)
    3610             : {
    3611         273 :         USE_OPLINE
    3612             :         zend_free_op free_op1;
    3613             :         zval *varname;
    3614             :         zval **retval;
    3615             :         zval tmp_varname;
    3616             :         HashTable *target_symbol_table;
    3617             :         ulong hash_value;
    3618             : 
    3619             :         SAVE_OPLINE();
    3620         273 :         varname = opline->op1.zv;
    3621             : 
    3622         273 :         if (IS_CONST != IS_CONST && UNEXPECTED(Z_TYPE_P(varname) != IS_STRING)) {
    3623             :                 ZVAL_COPY_VALUE(&tmp_varname, varname);
    3624             :                 zval_copy_ctor(&tmp_varname);
    3625             :                 Z_SET_REFCOUNT(tmp_varname, 1);
    3626             :                 Z_UNSET_ISREF(tmp_varname);
    3627             :                 convert_to_string(&tmp_varname);
    3628             :                 varname = &tmp_varname;
    3629             :         }
    3630             : 
    3631             :         if (IS_CONST != IS_UNUSED) {
    3632             :                 zend_class_entry *ce;
    3633             : 
    3634             :                 if (IS_CONST == IS_CONST) {
    3635         273 :                         if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    3636          69 :                                 ce = CACHED_PTR(opline->op2.literal->cache_slot);
    3637             :                         } else {
    3638         204 :                                 ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.literal + 1, 0 TSRMLS_CC);
    3639         204 :                                 if (UNEXPECTED(ce == NULL)) {
    3640           1 :                                         if (IS_CONST != IS_CONST && varname == &tmp_varname) {
    3641             :                                                 zval_dtor(&tmp_varname);
    3642             :                                         }
    3643             : 
    3644             :                                         CHECK_EXCEPTION();
    3645           1 :                                         ZEND_VM_NEXT_OPCODE();
    3646             :                                 }
    3647         203 :                                 CACHE_PTR(opline->op2.literal->cache_slot, ce);
    3648             :                         }
    3649             :                 } else {
    3650             :                         ce = EX_T(opline->op2.var).class_entry;
    3651             :                 }
    3652         272 :                 retval = zend_std_get_static_property(ce, Z_STRVAL_P(varname), Z_STRLEN_P(varname), 0, ((IS_CONST == IS_CONST) ? opline->op1.literal : NULL) TSRMLS_CC);
    3653             : 
    3654             :         } else {
    3655             :                 target_symbol_table = zend_get_target_symbol_table(opline->extended_value & ZEND_FETCH_TYPE_MASK TSRMLS_CC);
    3656             : /*
    3657             :                 if (!target_symbol_table) {
    3658             :                         CHECK_EXCEPTION();
    3659             :                         ZEND_VM_NEXT_OPCODE();
    3660             :                 }
    3661             : */
    3662             :                 if (IS_CONST == IS_CONST) {
    3663             :                         hash_value = Z_HASH_P(varname);
    3664             :                 } else {
    3665             :                         hash_value = str_hash(Z_STRVAL_P(varname), Z_STRLEN_P(varname));
    3666             :                 }
    3667             : 
    3668             :                 if (zend_hash_quick_find(target_symbol_table, Z_STRVAL_P(varname), Z_STRLEN_P(varname)+1, hash_value, (void **) &retval) == FAILURE) {
    3669             :                         switch (type) {
    3670             :                                 case BP_VAR_R:
    3671             :                                 case BP_VAR_UNSET:
    3672             :                                         zend_error(E_NOTICE,"Undefined variable: %s", Z_STRVAL_P(varname));
    3673             :                                         /* break missing intentionally */
    3674             :                                 case BP_VAR_IS:
    3675             :                                         retval = &EG(uninitialized_zval_ptr);
    3676             :                                         break;
    3677             :                                 case BP_VAR_RW:
    3678             :                                         zend_error(E_NOTICE,"Undefined variable: %s", Z_STRVAL_P(varname));
    3679             :                                         /* break missing intentionally */
    3680             :                                 case BP_VAR_W:
    3681             :                                         Z_ADDREF_P(&EG(uninitialized_zval));
    3682             :                                         zend_hash_quick_update(target_symbol_table, Z_STRVAL_P(varname), Z_STRLEN_P(varname)+1, hash_value, &EG(uninitialized_zval_ptr), sizeof(zval *), (void **) &retval);
    3683             :                                         break;
    3684             :                                 EMPTY_SWITCH_DEFAULT_CASE()
    3685             :                         }
    3686             :                 }
    3687             :                 switch (opline->extended_value & ZEND_FETCH_TYPE_MASK) {
    3688             :                         case ZEND_FETCH_GLOBAL:
    3689             :                                 if (IS_CONST != IS_TMP_VAR) {
    3690             : 
    3691             :                                 }
    3692             :                                 break;
    3693             :                         case ZEND_FETCH_LOCAL:
    3694             : 
    3695             :                                 break;
    3696             :                         case ZEND_FETCH_STATIC:
    3697             :                                 zval_update_constant(retval, 1 TSRMLS_CC);
    3698             :                                 break;
    3699             :                         case ZEND_FETCH_GLOBAL_LOCK:
    3700             :                                 if (IS_CONST == IS_VAR && !free_op1.var) {
    3701             :                                         PZVAL_LOCK(*EX_T(opline->op1.var).var.ptr_ptr);
    3702             :                                 }
    3703             :                                 break;
    3704             :                 }
    3705             :         }
    3706             : 
    3707             : 
    3708         264 :         if (IS_CONST != IS_CONST && varname == &tmp_varname) {
    3709             :                 zval_dtor(&tmp_varname);
    3710             :         }
    3711         264 :         if (opline->extended_value & ZEND_FETCH_MAKE_REF) {
    3712           0 :                 SEPARATE_ZVAL_TO_MAKE_IS_REF(retval);
    3713             :         }
    3714         264 :         PZVAL_LOCK(*retval);
    3715         264 :         switch (type) {
    3716             :                 case BP_VAR_R:
    3717             :                 case BP_VAR_IS:
    3718         188 :                         EX_T(opline->result.var).var.ptr = *retval;
    3719         188 :                         break;
    3720             :                 case BP_VAR_UNSET: {
    3721             :                         zend_free_op free_res;
    3722             : 
    3723           2 :                         PZVAL_UNLOCK(*retval, &free_res);
    3724           2 :                         if (retval != &EG(uninitialized_zval_ptr)) {
    3725           6 :                                 SEPARATE_ZVAL_IF_NOT_REF(retval);
    3726             :                         }
    3727           2 :                         PZVAL_LOCK(*retval);
    3728           2 :                         FREE_OP_VAR_PTR(free_res);
    3729             :                 }
    3730             :                 /* break missing intentionally */
    3731             :                 default:
    3732          76 :                         EX_T(opline->result.var).var.ptr_ptr = retval;
    3733             :                         break;
    3734             :         }
    3735             :         CHECK_EXCEPTION();
    3736         264 :         ZEND_VM_NEXT_OPCODE();
    3737             : }
    3738             : 
    3739         157 : static int ZEND_FASTCALL  ZEND_FETCH_R_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3740             : {
    3741         157 :         return zend_fetch_var_address_helper_SPEC_CONST_CONST(BP_VAR_R, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    3742             : }
    3743             : 
    3744          61 : static int ZEND_FASTCALL  ZEND_FETCH_W_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3745             : {
    3746          61 :         return zend_fetch_var_address_helper_SPEC_CONST_CONST(BP_VAR_W, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    3747             : }
    3748             : 
    3749          17 : static int ZEND_FASTCALL  ZEND_FETCH_RW_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3750             : {
    3751          17 :         return zend_fetch_var_address_helper_SPEC_CONST_CONST(BP_VAR_RW, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    3752             : }
    3753             : 
    3754          36 : static int ZEND_FASTCALL  ZEND_FETCH_FUNC_ARG_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3755             : {
    3756          36 :         USE_OPLINE
    3757             : 
    3758          72 :         return zend_fetch_var_address_helper_SPEC_CONST_CONST(zend_is_by_ref_func_arg_fetch(opline, EX(call) TSRMLS_CC) ? BP_VAR_W : BP_VAR_R, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    3759             : }
    3760             : 
    3761           2 : static int ZEND_FASTCALL  ZEND_FETCH_UNSET_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3762             : {
    3763           2 :         return zend_fetch_var_address_helper_SPEC_CONST_CONST(BP_VAR_UNSET, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    3764             : }
    3765             : 
    3766           0 : static int ZEND_FASTCALL  ZEND_FETCH_IS_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3767             : {
    3768           0 :         return zend_fetch_var_address_helper_SPEC_CONST_CONST(BP_VAR_IS, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    3769             : }
    3770             : 
    3771           3 : static int ZEND_FASTCALL  ZEND_FETCH_DIM_R_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3772             : {
    3773           3 :         USE_OPLINE
    3774             : 
    3775             :         zval *container;
    3776             : 
    3777             :         SAVE_OPLINE();
    3778           3 :         container = opline->op1.zv;
    3779           3 :         zend_fetch_dimension_address_read(&EX_T(opline->result.var), container, opline->op2.zv, IS_CONST, BP_VAR_R TSRMLS_CC);
    3780             : 
    3781             :         if (IS_CONST != IS_VAR || !(opline->extended_value & ZEND_FETCH_ADD_LOCK)) {
    3782             : 
    3783             :         }
    3784             :         CHECK_EXCEPTION();
    3785           3 :         ZEND_VM_NEXT_OPCODE();
    3786             : }
    3787             : 
    3788           6 : static int ZEND_FASTCALL  ZEND_FETCH_DIM_TMP_VAR_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3789             : {
    3790           6 :         USE_OPLINE
    3791             : 
    3792             :         zval *container;
    3793             : 
    3794             :         SAVE_OPLINE();
    3795           6 :         container = opline->op1.zv;
    3796             : 
    3797           6 :         if (UNEXPECTED(Z_TYPE_P(container) != IS_ARRAY)) {
    3798             :                 PZVAL_LOCK(&EG(uninitialized_zval));
    3799           6 :                 EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
    3800             :         } else {
    3801             : 
    3802           0 :                 zval *value = *zend_fetch_dimension_address_inner(Z_ARRVAL_P(container), opline->op2.zv, IS_CONST, BP_VAR_R TSRMLS_CC);
    3803             : 
    3804             :                 PZVAL_LOCK(value);
    3805           0 :                 EX_T(opline->result.var).var.ptr = value;
    3806             : 
    3807             :         }
    3808             :         CHECK_EXCEPTION();
    3809           6 :         ZEND_VM_NEXT_OPCODE();
    3810             : }
    3811             : 
    3812        5684 : static int ZEND_FASTCALL  ZEND_INIT_STATIC_METHOD_CALL_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3813             : {
    3814        5684 :         USE_OPLINE
    3815             :         zval *function_name;
    3816             :         zend_class_entry *ce;
    3817        5684 :         call_slot *call = EX(call_slots) + opline->result.num;
    3818             : 
    3819             :         SAVE_OPLINE();
    3820             : 
    3821             :         if (IS_CONST == IS_CONST) {
    3822             :                 /* no function found. try a static method in class */
    3823        5684 :                 if (CACHED_PTR(opline->op1.literal->cache_slot)) {
    3824        2690 :                         ce = CACHED_PTR(opline->op1.literal->cache_slot);
    3825             :                 } else {
    3826        2994 :                         ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op1.zv), Z_STRLEN_P(opline->op1.zv), opline->op1.literal + 1, opline->extended_value TSRMLS_CC);
    3827        2994 :                         if (UNEXPECTED(EG(exception) != NULL)) {
    3828           2 :                                 HANDLE_EXCEPTION();
    3829             :                         }
    3830        2992 :                         if (UNEXPECTED(ce == NULL)) {
    3831           0 :                                 zend_error_noreturn(E_ERROR, "Class '%s' not found", Z_STRVAL_P(opline->op1.zv));
    3832             :                         }
    3833        2992 :                         CACHE_PTR(opline->op1.literal->cache_slot, ce);
    3834             :                 }
    3835        5682 :                 call->called_scope = ce;
    3836             :         } else {
    3837             :                 ce = EX_T(opline->op1.var).class_entry;
    3838             : 
    3839             :                 if (opline->extended_value == ZEND_FETCH_CLASS_PARENT || opline->extended_value == ZEND_FETCH_CLASS_SELF) {
    3840             :                         call->called_scope = EG(called_scope);
    3841             :                 } else {
    3842             :                         call->called_scope = ce;
    3843             :                 }
    3844             :         }
    3845             : 
    3846        5682 :         if (IS_CONST == IS_CONST &&
    3847             :             IS_CONST == IS_CONST &&
    3848        5682 :             CACHED_PTR(opline->op2.literal->cache_slot)) {
    3849        2679 :                 call->fbc = CACHED_PTR(opline->op2.literal->cache_slot);
    3850        3003 :         } else if (IS_CONST != IS_CONST &&
    3851             :                    IS_CONST == IS_CONST &&
    3852             :                    (call->fbc = CACHED_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, ce))) {
    3853             :                 /* do nothing */
    3854             :         } else if (IS_CONST != IS_UNUSED) {
    3855        3003 :                 char *function_name_strval = NULL;
    3856        3003 :                 int function_name_strlen = 0;
    3857             : 
    3858             : 
    3859             :                 if (IS_CONST == IS_CONST) {
    3860        3003 :                         function_name_strval = Z_STRVAL_P(opline->op2.zv);
    3861        3003 :                         function_name_strlen = Z_STRLEN_P(opline->op2.zv);
    3862             :                 } else {
    3863             :                         function_name = opline->op2.zv;
    3864             : 
    3865             :                         if (UNEXPECTED(Z_TYPE_P(function_name) != IS_STRING)) {
    3866             :                                 if (UNEXPECTED(EG(exception) != NULL)) {
    3867             :                                         HANDLE_EXCEPTION();
    3868             :                                 }
    3869             :                                 zend_error_noreturn(E_ERROR, "Function name must be a string");
    3870             :                         } else {
    3871             :                                 function_name_strval = Z_STRVAL_P(function_name);
    3872             :                                 function_name_strlen = Z_STRLEN_P(function_name);
    3873             :                         }
    3874             :                 }
    3875             : 
    3876        3003 :                 if (function_name_strval) {
    3877        3003 :                         if (ce->get_static_method) {
    3878           0 :                                 call->fbc = ce->get_static_method(ce, function_name_strval, function_name_strlen TSRMLS_CC);
    3879             :                         } else {
    3880        3003 :                                 call->fbc = zend_std_get_static_method(ce, function_name_strval, function_name_strlen, ((IS_CONST == IS_CONST) ? (opline->op2.literal + 1) : NULL) TSRMLS_CC);
    3881             :                         }
    3882        2996 :                         if (UNEXPECTED(call->fbc == NULL)) {
    3883           3 :                                 zend_error_noreturn(E_ERROR, "Call to undefined method %s::%s()", ce->name, function_name_strval);
    3884             :                         }
    3885        5986 :                         if (IS_CONST == IS_CONST &&
    3886        2993 :                             EXPECTED(call->fbc->type <= ZEND_USER_FUNCTION) &&
    3887        2993 :                             EXPECTED((call->fbc->common.fn_flags & (ZEND_ACC_CALL_VIA_HANDLER|ZEND_ACC_NEVER_CACHE)) == 0)) {
    3888             :                                 if (IS_CONST == IS_CONST) {
    3889        2967 :                                         CACHE_PTR(opline->op2.literal->cache_slot, call->fbc);
    3890             :                                 } else {
    3891             :                                         CACHE_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, ce, call->fbc);
    3892             :                                 }
    3893             :                         }
    3894             :                 }
    3895             :                 if (IS_CONST != IS_CONST) {
    3896             : 
    3897             :                 }
    3898             :         } else {
    3899             :                 if (UNEXPECTED(ce->constructor == NULL)) {
    3900             :                         zend_error_noreturn(E_ERROR, "Cannot call constructor");
    3901             :                 }
    3902             :                 if (EG(This) && Z_OBJCE_P(EG(This)) != ce->constructor->common.scope && (ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
    3903             :                         zend_error_noreturn(E_ERROR, "Cannot call private %s::__construct()", ce->name);
    3904             :                 }
    3905             :                 call->fbc = ce->constructor;
    3906             :         }
    3907             : 
    3908        5672 :         if (call->fbc->common.fn_flags & ZEND_ACC_STATIC) {
    3909        5585 :                 call->object = NULL;
    3910             :         } else {
    3911         215 :                 if (EG(This) &&
    3912          64 :                     Z_OBJ_HT_P(EG(This))->get_class_entry &&
    3913          64 :                     !instanceof_function(Z_OBJCE_P(EG(This)), ce TSRMLS_CC)) {
    3914             :                     /* We are calling method of the other (incompatible) class,
    3915             :                        but passing $this. This is done for compatibility with php-4. */
    3916           2 :                         if (call->fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
    3917           1 :                                 zend_error(E_DEPRECATED, "Non-static method %s::%s() should not be called statically, assuming $this from incompatible context", call->fbc->common.scope->name, call->fbc->common.function_name);
    3918             :                         } else {
    3919             :                                 /* An internal function assumes $this is present and won't check that. So PHP would crash by allowing the call. */
    3920           1 :                                 zend_error_noreturn(E_ERROR, "Non-static method %s::%s() cannot be called statically, assuming $this from incompatible context", call->fbc->common.scope->name, call->fbc->common.function_name);
    3921             :                         }
    3922             :                 }
    3923          86 :                 if ((call->object = EG(This))) {
    3924          63 :                         Z_ADDREF_P(call->object);
    3925          63 :                         call->called_scope = Z_OBJCE_P(call->object);
    3926             :                 }
    3927             :         }
    3928             : 
    3929        5671 :         call->num_additional_args = 0;
    3930        5671 :         call->is_ctor_call = 0;
    3931        5671 :         EX(call) = call;
    3932             : 
    3933             :         CHECK_EXCEPTION();
    3934        5671 :         ZEND_VM_NEXT_OPCODE();
    3935             : }
    3936             : 
    3937          12 : static int ZEND_FASTCALL  ZEND_CASE_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3938             : {
    3939          12 :         USE_OPLINE
    3940             : 
    3941             : 
    3942             :         SAVE_OPLINE();
    3943          12 :         is_equal_function(&EX_T(opline->result.var).tmp_var,
    3944             :                                  opline->op1.zv,
    3945             :                                  opline->op2.zv TSRMLS_CC);
    3946             : 
    3947             :         CHECK_EXCEPTION();
    3948          12 :         ZEND_VM_NEXT_OPCODE();
    3949             : }
    3950             : 
    3951       10082 : static int ZEND_FASTCALL  ZEND_FETCH_CONSTANT_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    3952             : {
    3953       10082 :         USE_OPLINE
    3954             : 
    3955             :         SAVE_OPLINE();
    3956       10082 :         if (IS_CONST == IS_UNUSED) {
    3957             :                 zend_constant *c;
    3958             :                 zval *retval;
    3959             : 
    3960             :                 if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    3961             :                         c = CACHED_PTR(opline->op2.literal->cache_slot);
    3962             :                 } else if ((c = zend_quick_get_constant(opline->op2.literal + 1, opline->extended_value TSRMLS_CC)) == NULL) {
    3963             :                         if ((opline->extended_value & IS_CONSTANT_UNQUALIFIED) != 0) {
    3964             :                                 char *actual = (char *)zend_memrchr(Z_STRVAL_P(opline->op2.zv), '\\', Z_STRLEN_P(opline->op2.zv));
    3965             :                                 if(!actual) {
    3966             :                                         actual = Z_STRVAL_P(opline->op2.zv);
    3967             :                                 } else {
    3968             :                                         actual++;
    3969             :                                 }
    3970             :                                 /* non-qualified constant - allow text substitution */
    3971             :                                 zend_error(E_NOTICE, "Use of undefined constant %s - assumed '%s'", actual, actual);
    3972             :                                 ZVAL_STRINGL(&EX_T(opline->result.var).tmp_var, actual, Z_STRLEN_P(opline->op2.zv)-(actual - Z_STRVAL_P(opline->op2.zv)), 1);
    3973             :                                 CHECK_EXCEPTION();
    3974             :                                 ZEND_VM_NEXT_OPCODE();
    3975             :                         } else {
    3976             :                                 zend_error_noreturn(E_ERROR, "Undefined constant '%s'", Z_STRVAL_P(opline->op2.zv));
    3977             :                         }
    3978             :                 } else {
    3979             :                         CACHE_PTR(opline->op2.literal->cache_slot, c);
    3980             :                 }
    3981             :                 retval = &EX_T(opline->result.var).tmp_var;
    3982             :                 ZVAL_COPY_VALUE(retval, &c->value);
    3983             :                 zval_copy_ctor(retval);
    3984             :         } else {
    3985             :                 /* class constant */
    3986             :                 zend_class_entry *ce;
    3987             :                 zval **value;
    3988             : 
    3989             :                 if (IS_CONST == IS_CONST) {
    3990       10082 :                         if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    3991        1991 :                                 value = CACHED_PTR(opline->op2.literal->cache_slot);
    3992        1991 :                                 ZVAL_COPY_VALUE(&EX_T(opline->result.var).tmp_var, *value);
    3993        1991 :                                 zval_copy_ctor(&EX_T(opline->result.var).tmp_var);
    3994        1991 :                                 goto constant_fetch_end;
    3995        8091 :                         } else if (CACHED_PTR(opline->op1.literal->cache_slot)) {
    3996           0 :                                 ce = CACHED_PTR(opline->op1.literal->cache_slot);
    3997             :                         } else {
    3998        8091 :                                 ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op1.zv), Z_STRLEN_P(opline->op1.zv), opline->op1.literal + 1, opline->extended_value TSRMLS_CC);
    3999        8090 :                                 if (UNEXPECTED(EG(exception) != NULL)) {
    4000           1 :                                         HANDLE_EXCEPTION();
    4001             :                                 }
    4002        8089 :                                 if (UNEXPECTED(ce == NULL)) {
    4003           0 :                                         zend_error_noreturn(E_ERROR, "Class '%s' not found", Z_STRVAL_P(opline->op1.zv));
    4004             :                                 }
    4005        8089 :                                 CACHE_PTR(opline->op1.literal->cache_slot, ce);
    4006             :                         }
    4007             :                 } else {
    4008             :                         ce = EX_T(opline->op1.var).class_entry;
    4009             :                         if ((value = CACHED_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, ce)) != NULL) {
    4010             :                                 ZVAL_COPY_VALUE(&EX_T(opline->result.var).tmp_var, *value);
    4011             :                                 zval_copy_ctor(&EX_T(opline->result.var).tmp_var);
    4012             :                                 goto constant_fetch_end;
    4013             :                         }
    4014             :                 }
    4015             : 
    4016        8089 :                 if (EXPECTED(zend_hash_quick_find(&ce->constants_table, Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv)+1, Z_HASH_P(opline->op2.zv), (void **) &value) == SUCCESS)) {
    4017        8087 :                         if (IS_CONSTANT_TYPE(Z_TYPE_PP(value))) {
    4018          27 :                                 zend_class_entry *old_scope = EG(scope);
    4019             : 
    4020          27 :                                 EG(scope) = ce;
    4021          27 :                                 zval_update_constant(value, 1 TSRMLS_CC);
    4022          25 :                                 EG(scope) = old_scope;
    4023             :                         }
    4024             :                         if (IS_CONST == IS_CONST) {
    4025        8085 :                                 CACHE_PTR(opline->op2.literal->cache_slot, value);
    4026             :                         } else {
    4027             :                                 CACHE_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, ce, value);
    4028             :                         }
    4029        8085 :                         ZVAL_COPY_VALUE(&EX_T(opline->result.var).tmp_var, *value);
    4030        8085 :                         zval_copy_ctor(&EX_T(opline->result.var).tmp_var);
    4031           2 :                 } else if (Z_STRLEN_P(opline->op2.zv) == sizeof("class")-1 && memcmp(Z_STRVAL_P(opline->op2.zv), "class", sizeof("class") - 1) == 0) {
    4032             :                         /* "class" is assigned as a case-sensitive keyword from zend_do_resolve_class_name */
    4033           0 :                         ZVAL_STRINGL(&EX_T(opline->result.var).tmp_var, ce->name, ce->name_length, 1);
    4034             :                 } else {
    4035           2 :                         zend_error_noreturn(E_ERROR, "Undefined class constant '%s'", Z_STRVAL_P(opline->op2.zv));
    4036             :                 }
    4037             :         }
    4038             : constant_fetch_end:
    4039       10076 :         if (Z_TYPE(EX_T(opline->result.var).tmp_var) == IS_ARRAY) {
    4040           1 :                 zend_error_noreturn(E_ERROR, "Arrays are not allowed in constants at run-time");
    4041             :         }
    4042             :         CHECK_EXCEPTION();
    4043       10075 :         ZEND_VM_NEXT_OPCODE();
    4044             : }
    4045             : 
    4046       77409 : static int ZEND_FASTCALL  ZEND_ADD_ARRAY_ELEMENT_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4047             : {
    4048       77409 :         USE_OPLINE
    4049             : 
    4050             :         zval *expr_ptr;
    4051             : 
    4052             :         SAVE_OPLINE();
    4053       77409 :         if ((IS_CONST == IS_VAR || IS_CONST == IS_CV) && opline->extended_value) {
    4054             :                 zval **expr_ptr_ptr = NULL;
    4055             : 
    4056             :                 if (IS_CONST == IS_VAR && UNEXPECTED(expr_ptr_ptr == NULL)) {
    4057             :                         zend_error_noreturn(E_ERROR, "Cannot create references to/from string offsets");
    4058             :                 }
    4059             :                 SEPARATE_ZVAL_TO_MAKE_IS_REF(expr_ptr_ptr);
    4060             :                 expr_ptr = *expr_ptr_ptr;
    4061             :                 Z_ADDREF_P(expr_ptr);
    4062             :         } else {
    4063       77409 :                 expr_ptr=opline->op1.zv;
    4064       77409 :                 if (0) { /* temporary variable */
    4065             :                         zval *new_expr;
    4066             : 
    4067             :                         ALLOC_ZVAL(new_expr);
    4068             :                         INIT_PZVAL_COPY(new_expr, expr_ptr);
    4069             :                         expr_ptr = new_expr;
    4070             :                 } else if (IS_CONST == IS_CONST || PZVAL_IS_REF(expr_ptr)) {
    4071             :                         zval *new_expr;
    4072             : 
    4073       77409 :                         ALLOC_ZVAL(new_expr);
    4074       77409 :                         INIT_PZVAL_COPY(new_expr, expr_ptr);
    4075       77409 :                         expr_ptr = new_expr;
    4076       77409 :                         zendi_zval_copy_ctor(*expr_ptr);
    4077             : 
    4078             :                 } else if (IS_CONST == IS_CV) {
    4079             :                         Z_ADDREF_P(expr_ptr);
    4080             :                 }
    4081             :         }
    4082             : 
    4083             :         if (IS_CONST != IS_UNUSED) {
    4084             : 
    4085       77409 :                 zval *offset = opline->op2.zv;
    4086             :                 ulong hval;
    4087             : 
    4088       77409 :                 switch (Z_TYPE_P(offset)) {
    4089             :                         case IS_DOUBLE:
    4090         546 :                                 hval = zend_dval_to_lval(Z_DVAL_P(offset));
    4091         273 :                                 goto num_index;
    4092             :                         case IS_LONG:
    4093             :                         case IS_BOOL:
    4094        2799 :                                 hval = Z_LVAL_P(offset);
    4095             : num_index:
    4096        3072 :                                 zend_hash_index_update(Z_ARRVAL(EX_T(opline->result.var).tmp_var), hval, &expr_ptr, sizeof(zval *), NULL);
    4097        3072 :                                 break;
    4098             :                         case IS_STRING:
    4099             :                                 if (IS_CONST == IS_CONST) {
    4100       74214 :                                         hval = Z_HASH_P(offset);
    4101             :                                 } else {
    4102             :                                         ZEND_HANDLE_NUMERIC_EX(Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, goto num_index);
    4103             :                                         hval = str_hash(Z_STRVAL_P(offset), Z_STRLEN_P(offset));
    4104             :                                 }
    4105       74214 :                                 zend_hash_quick_update(Z_ARRVAL(EX_T(opline->result.var).tmp_var), Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, &expr_ptr, sizeof(zval *), NULL);
    4106       74214 :                                 break;
    4107             :                         case IS_NULL:
    4108         123 :                                 zend_hash_update(Z_ARRVAL(EX_T(opline->result.var).tmp_var), "", sizeof(""), &expr_ptr, sizeof(zval *), NULL);
    4109         123 :                                 break;
    4110             :                         default:
    4111           0 :                                 zend_error(E_WARNING, "Illegal offset type");
    4112           0 :                                 zval_ptr_dtor(&expr_ptr);
    4113             :                                 /* do nothing */
    4114             :                                 break;
    4115             :                 }
    4116             : 
    4117             :         } else {
    4118             :                 zend_hash_next_index_insert(Z_ARRVAL(EX_T(opline->result.var).tmp_var), &expr_ptr, sizeof(zval *), NULL);
    4119             :         }
    4120             :         if ((IS_CONST == IS_VAR || IS_CONST == IS_CV) && opline->extended_value) {
    4121             : 
    4122             :         }
    4123             :         CHECK_EXCEPTION();
    4124       77409 :         ZEND_VM_NEXT_OPCODE();
    4125             : }
    4126             : 
    4127       40751 : static int ZEND_FASTCALL  ZEND_INIT_ARRAY_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4128             : {
    4129       40751 :         USE_OPLINE
    4130             : 
    4131       40751 :         array_init(&EX_T(opline->result.var).tmp_var);
    4132       40751 :         if (IS_CONST == IS_UNUSED) {
    4133             :                 ZEND_VM_NEXT_OPCODE();
    4134             : #if 0 || IS_CONST != IS_UNUSED
    4135             :         } else {
    4136       40751 :                 return ZEND_ADD_ARRAY_ELEMENT_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    4137             : #endif
    4138             :         }
    4139             : }
    4140             : 
    4141           1 : static int ZEND_FASTCALL  ZEND_UNSET_VAR_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4142             : {
    4143           1 :         USE_OPLINE
    4144             :         zval tmp, *varname;
    4145             :         HashTable *target_symbol_table;
    4146             : 
    4147             : 
    4148             :         SAVE_OPLINE();
    4149           1 :         if (IS_CONST == IS_CV &&
    4150             :             IS_CONST == IS_UNUSED &&
    4151             :             (opline->extended_value & ZEND_QUICK_SET)) {
    4152             :                 if (EG(active_symbol_table)) {
    4153             :                         zend_compiled_variable *cv = &CV_DEF_OF(opline->op1.var);
    4154             : 
    4155             :                         zend_delete_variable(EX(prev_execute_data), EG(active_symbol_table),  cv->name, cv->name_len+1, cv->hash_value TSRMLS_CC);
    4156             :                         EX_CV(opline->op1.var) = NULL;
    4157             :                 } else if (EX_CV(opline->op1.var)) {
    4158             :                         zval_ptr_dtor(EX_CV(opline->op1.var));
    4159             :                         EX_CV(opline->op1.var) = NULL;
    4160             :                 }
    4161             :                 CHECK_EXCEPTION();
    4162             :                 ZEND_VM_NEXT_OPCODE();
    4163             :         }
    4164             : 
    4165           1 :         varname = opline->op1.zv;
    4166             : 
    4167           1 :         if (IS_CONST != IS_CONST && Z_TYPE_P(varname) != IS_STRING) {
    4168             :                 ZVAL_COPY_VALUE(&tmp, varname);
    4169             :                 zval_copy_ctor(&tmp);
    4170             :                 convert_to_string(&tmp);
    4171             :                 varname = &tmp;
    4172           1 :         } else if (IS_CONST == IS_VAR || IS_CONST == IS_CV) {
    4173             :                 Z_ADDREF_P(varname);
    4174             :         }
    4175             : 
    4176             :         if (IS_CONST != IS_UNUSED) {
    4177             :                 zend_class_entry *ce;
    4178             : 
    4179             :                 if (IS_CONST == IS_CONST) {
    4180           1 :                         if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    4181           0 :                                 ce = CACHED_PTR(opline->op2.literal->cache_slot);
    4182             :                         } else {
    4183           1 :                                 ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.literal + 1, 0 TSRMLS_CC);
    4184           1 :                                 if (UNEXPECTED(EG(exception) != NULL)) {
    4185           1 :                                         if (IS_CONST != IS_CONST && varname == &tmp) {
    4186             :                                                 zval_dtor(&tmp);
    4187           1 :                                         } else if (IS_CONST == IS_VAR || IS_CONST == IS_CV) {
    4188             :                                                 zval_ptr_dtor(&varname);
    4189             :                                         }
    4190             : 
    4191           1 :                                         HANDLE_EXCEPTION();
    4192             :                                 }
    4193           0 :                                 if (UNEXPECTED(ce == NULL)) {
    4194           0 :                                         zend_error_noreturn(E_ERROR, "Class '%s' not found", Z_STRVAL_P(opline->op2.zv));
    4195             :                                 }
    4196           0 :                                 CACHE_PTR(opline->op2.literal->cache_slot, ce);
    4197             :                         }
    4198             :                 } else {
    4199             :                         ce = EX_T(opline->op2.var).class_entry;
    4200             :                 }
    4201           0 :                 zend_std_unset_static_property(ce, Z_STRVAL_P(varname), Z_STRLEN_P(varname), ((IS_CONST == IS_CONST) ? opline->op1.literal : NULL) TSRMLS_CC);
    4202             :         } else {
    4203             :                 ulong hash_value = zend_inline_hash_func(varname->value.str.val, varname->value.str.len+1);
    4204             : 
    4205             :                 target_symbol_table = zend_get_target_symbol_table(opline->extended_value & ZEND_FETCH_TYPE_MASK TSRMLS_CC);
    4206             :                 zend_delete_variable(execute_data, target_symbol_table, varname->value.str.val, varname->value.str.len+1, hash_value TSRMLS_CC);
    4207             :         }
    4208             : 
    4209           0 :         if (IS_CONST != IS_CONST && varname == &tmp) {
    4210             :                 zval_dtor(&tmp);
    4211           0 :         } else if (IS_CONST == IS_VAR || IS_CONST == IS_CV) {
    4212             :                 zval_ptr_dtor(&varname);
    4213             :         }
    4214             : 
    4215             :         CHECK_EXCEPTION();
    4216           0 :         ZEND_VM_NEXT_OPCODE();
    4217             : }
    4218             : 
    4219          44 : static int ZEND_FASTCALL  ZEND_ISSET_ISEMPTY_VAR_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4220             : {
    4221          44 :         USE_OPLINE
    4222             :         zval **value;
    4223          44 :         zend_bool isset = 1;
    4224             : 
    4225             :         SAVE_OPLINE();
    4226          44 :         if (IS_CONST == IS_CV &&
    4227             :             IS_CONST == IS_UNUSED &&
    4228             :             (opline->extended_value & ZEND_QUICK_SET)) {
    4229             :                 if (EX_CV(opline->op1.var)) {
    4230             :                         value = EX_CV(opline->op1.var);
    4231             :                 } else if (EG(active_symbol_table)) {
    4232             :                         zend_compiled_variable *cv = &CV_DEF_OF(opline->op1.var);
    4233             : 
    4234             :                         if (zend_hash_quick_find(EG(active_symbol_table), cv->name, cv->name_len+1, cv->hash_value, (void **) &value) == FAILURE) {
    4235             :                                 isset = 0;
    4236             :                         }
    4237             :                 } else {
    4238             :                         isset = 0;
    4239             :                 }
    4240             :         } else {
    4241             :                 HashTable *target_symbol_table;
    4242             : 
    4243          44 :                 zval tmp, *varname = opline->op1.zv;
    4244             : 
    4245          44 :                 if (IS_CONST != IS_CONST && Z_TYPE_P(varname) != IS_STRING) {
    4246             :                         ZVAL_COPY_VALUE(&tmp, varname);
    4247             :                         zval_copy_ctor(&tmp);
    4248             :                         convert_to_string(&tmp);
    4249             :                         varname = &tmp;
    4250             :                 }
    4251             : 
    4252             :                 if (IS_CONST != IS_UNUSED) {
    4253             :                         zend_class_entry *ce;
    4254             : 
    4255             :                         if (IS_CONST == IS_CONST) {
    4256          44 :                                 if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    4257           0 :                                         ce = CACHED_PTR(opline->op2.literal->cache_slot);
    4258             :                                 } else {
    4259          44 :                                         ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.literal + 1, 0 TSRMLS_CC);
    4260          44 :                                         if (UNEXPECTED(ce == NULL)) {
    4261             :                                                 CHECK_EXCEPTION();
    4262           1 :                                                 ZEND_VM_NEXT_OPCODE();
    4263             :                                         }
    4264          43 :                                         CACHE_PTR(opline->op2.literal->cache_slot, ce);
    4265             :                                 }
    4266             :                         } else {
    4267             :                                 ce = EX_T(opline->op2.var).class_entry;
    4268             :                         }
    4269          43 :                         value = zend_std_get_static_property(ce, Z_STRVAL_P(varname), Z_STRLEN_P(varname), 1, ((IS_CONST == IS_CONST) ? opline->op1.literal : NULL) TSRMLS_CC);
    4270          43 :                         if (!value) {
    4271          21 :                                 isset = 0;
    4272             :                         }
    4273             :                 } else {
    4274             :                         target_symbol_table = zend_get_target_symbol_table(opline->extended_value & ZEND_FETCH_TYPE_MASK TSRMLS_CC);
    4275             :                         if (zend_hash_find(target_symbol_table, varname->value.str.val, varname->value.str.len+1, (void **) &value) == FAILURE) {
    4276             :                                 isset = 0;
    4277             :                         }
    4278             :                 }
    4279             : 
    4280          43 :                 if (IS_CONST != IS_CONST && varname == &tmp) {
    4281             :                         zval_dtor(&tmp);
    4282             :                 }
    4283             : 
    4284             :         }
    4285             : 
    4286          43 :         if (opline->extended_value & ZEND_ISSET) {
    4287          64 :                 if (isset && Z_TYPE_PP(value) != IS_NULL) {
    4288          21 :                         ZVAL_BOOL(&EX_T(opline->result.var).tmp_var, 1);
    4289             :                 } else {
    4290          22 :                         ZVAL_BOOL(&EX_T(opline->result.var).tmp_var, 0);
    4291             :                 }
    4292             :         } else /* if (opline->extended_value & ZEND_ISEMPTY) */ {
    4293           0 :                 if (!isset || !i_zend_is_true(*value TSRMLS_CC)) {
    4294           0 :                         ZVAL_BOOL(&EX_T(opline->result.var).tmp_var, 1);
    4295             :                 } else {
    4296           0 :                         ZVAL_BOOL(&EX_T(opline->result.var).tmp_var, 0);
    4297             :                 }
    4298             :         }
    4299             : 
    4300             :         CHECK_EXCEPTION();
    4301          43 :         ZEND_VM_NEXT_OPCODE();
    4302             : }
    4303             : 
    4304         132 : static int ZEND_FASTCALL  ZEND_DECLARE_CONST_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4305             : {
    4306         132 :         USE_OPLINE
    4307             : 
    4308             :         zval *name;
    4309             :         zval *val;
    4310             :         zend_constant c;
    4311             : 
    4312             :         SAVE_OPLINE();
    4313         132 :         name  = opline->op1.zv;
    4314         132 :         val   = opline->op2.zv;
    4315             : 
    4316         140 :         if (IS_CONSTANT_TYPE(Z_TYPE_P(val))) {
    4317             :                 zval tmp;
    4318           8 :                 zval *tmp_ptr = &tmp;
    4319             : 
    4320           8 :                 ZVAL_COPY_VALUE(&tmp, val);
    4321           8 :                 INIT_PZVAL(&tmp);
    4322           8 :                 zval_update_constant(&tmp_ptr, 0 TSRMLS_CC);
    4323           8 :                 c.value = *tmp_ptr;
    4324             :         } else {
    4325         124 :                 INIT_PZVAL_COPY(&c.value, val);
    4326             :                 zval_copy_ctor(&c.value);
    4327             :         }
    4328         132 :         c.flags = CONST_CS; /* non persistent, case sensetive */
    4329         132 :         c.name = str_strndup(Z_STRVAL_P(name), Z_STRLEN_P(name));
    4330         132 :         c.name_len = Z_STRLEN_P(name)+1;
    4331         132 :         c.module_number = PHP_USER_CONSTANT;
    4332             : 
    4333         132 :         if (zend_register_constant(&c TSRMLS_CC) == FAILURE) {
    4334             :         }
    4335             : 
    4336             : 
    4337             :         CHECK_EXCEPTION();
    4338         132 :         ZEND_VM_NEXT_OPCODE();
    4339             : }
    4340             : 
    4341           9 : static int ZEND_FASTCALL  ZEND_YIELD_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4342             : {
    4343           9 :         USE_OPLINE
    4344             : 
    4345             :         /* The generator object is stored in return_value_ptr_ptr */
    4346           9 :         zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr);
    4347             : 
    4348           9 :         if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
    4349           0 :                 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
    4350             :         }
    4351             : 
    4352             :         /* Destroy the previously yielded value */
    4353           9 :         if (generator->value) {
    4354           8 :                 zval_ptr_dtor(&generator->value);
    4355             :         }
    4356             : 
    4357             :         /* Destroy the previously yielded key */
    4358           9 :         if (generator->key) {
    4359           8 :                 zval_ptr_dtor(&generator->key);
    4360             :         }
    4361             : 
    4362             :         /* Set the new yielded value */
    4363             :         if (IS_CONST != IS_UNUSED) {
    4364             : 
    4365             : 
    4366           9 :                 if (EX(op_array)->fn_flags & ZEND_ACC_RETURN_REFERENCE) {
    4367             :                         /* Constants and temporary variables aren't yieldable by reference,
    4368             :                          * but we still allow them with a notice. */
    4369             :                         if (IS_CONST == IS_CONST || IS_CONST == IS_TMP_VAR) {
    4370             :                                 zval *value, *copy;
    4371             : 
    4372           0 :                                 zend_error(E_NOTICE, "Only variable references should be yielded by reference");
    4373             : 
    4374           0 :                                 value = opline->op1.zv;
    4375           0 :                                 ALLOC_ZVAL(copy);
    4376           0 :                                 INIT_PZVAL_COPY(copy, value);
    4377             : 
    4378             :                                 /* Temporary variables don't need ctor copying */
    4379             :                                 if (!0) {
    4380             :                                         zval_copy_ctor(copy);
    4381             :                                 }
    4382             : 
    4383           0 :                                 generator->value = copy;
    4384             :                         } else {
    4385             :                                 zval **value_ptr = NULL;
    4386             : 
    4387             :                                 if (IS_CONST == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
    4388             :                                         zend_error_noreturn(E_ERROR, "Cannot yield string offsets by reference");
    4389             :                                 }
    4390             : 
    4391             :                                 /* If a function call result is yielded and the function did
    4392             :                                  * not return by reference we throw a notice. */
    4393             :                                 if (IS_CONST == IS_VAR && !Z_ISREF_PP(value_ptr)
    4394             :                                     && !(opline->extended_value == ZEND_RETURNS_FUNCTION
    4395             :                                          && EX_T(opline->op1.var).var.fcall_returned_reference)
    4396             :                                     && EX_T(opline->op1.var).var.ptr_ptr == &EX_T(opline->op1.var).var.ptr) {
    4397             :                                         zend_error(E_NOTICE, "Only variable references should be yielded by reference");
    4398             : 
    4399             :                                         Z_ADDREF_PP(value_ptr);
    4400             :                                         generator->value = *value_ptr;
    4401             :                                 } else {
    4402             :                                         SEPARATE_ZVAL_TO_MAKE_IS_REF(value_ptr);
    4403             :                                         Z_ADDREF_PP(value_ptr);
    4404             :                                         generator->value = *value_ptr;
    4405             :                                 }
    4406             : 
    4407             :                         }
    4408             :                 } else {
    4409           9 :                         zval *value = opline->op1.zv;
    4410             : 
    4411             :                         /* Consts, temporary variables and references need copying */
    4412             :                         if (IS_CONST == IS_CONST || IS_CONST == IS_TMP_VAR
    4413             :                                 || PZVAL_IS_REF(value)
    4414             :                         ) {
    4415             :                                 zval *copy;
    4416             : 
    4417           9 :                                 ALLOC_ZVAL(copy);
    4418           9 :                                 INIT_PZVAL_COPY(copy, value);
    4419             : 
    4420             :                                 /* Temporary variables don't need ctor copying */
    4421             :                                 if (!0) {
    4422             :                                         zval_copy_ctor(copy);
    4423             :                                 }
    4424             : 
    4425           9 :                                 generator->value = copy;
    4426             : 
    4427             :                         } else {
    4428             :                                 if (IS_CONST == IS_CV) {
    4429             :                                         Z_ADDREF_P(value);
    4430             :                                 }
    4431             :                                 generator->value = value;
    4432             :                         }
    4433             :                 }
    4434             :         } else {
    4435             :                 /* If no value was specified yield null */
    4436             :                 Z_ADDREF(EG(uninitialized_zval));
    4437             :                 generator->value = &EG(uninitialized_zval);
    4438             :         }
    4439             : 
    4440             :         /* Set the new yielded key */
    4441             :         if (IS_CONST != IS_UNUSED) {
    4442             : 
    4443           9 :                 zval *key = opline->op2.zv;
    4444             : 
    4445             :                 /* Consts, temporary variables and references need copying */
    4446             :                 if (IS_CONST == IS_CONST || IS_CONST == IS_TMP_VAR
    4447             :                         || (PZVAL_IS_REF(key) && Z_REFCOUNT_P(key) > 0)
    4448             :                 ) {
    4449             :                         zval *copy;
    4450             : 
    4451           9 :                         ALLOC_ZVAL(copy);
    4452           9 :                         INIT_PZVAL_COPY(copy, key);
    4453             : 
    4454             :                         /* Temporary variables don't need ctor copying */
    4455             :                         if (!0) {
    4456             :                                 zval_copy_ctor(copy);
    4457             :                         }
    4458             : 
    4459           9 :                         generator->key = copy;
    4460             :                 } else {
    4461             :                         Z_ADDREF_P(key);
    4462             :                         generator->key = key;
    4463             :                 }
    4464             : 
    4465          20 :                 if (Z_TYPE_P(generator->key) == IS_LONG
    4466          11 :                     && Z_LVAL_P(generator->key) > generator->largest_used_integer_key
    4467             :                 ) {
    4468           2 :                         generator->largest_used_integer_key = Z_LVAL_P(generator->key);
    4469             :                 }
    4470             : 
    4471             :         } else {
    4472             :                 /* If no key was specified we use auto-increment keys */
    4473             :                 generator->largest_used_integer_key++;
    4474             : 
    4475             :                 ALLOC_INIT_ZVAL(generator->key);
    4476             :                 ZVAL_LONG(generator->key, generator->largest_used_integer_key);
    4477             :         }
    4478             : 
    4479           9 :         if (RETURN_VALUE_USED(opline)) {
    4480             :                 /* If the return value of yield is used set the send
    4481             :                  * target and initialize it to NULL */
    4482           0 :                 generator->send_target = &EX_T(opline->result.var).var.ptr;
    4483             :                 Z_ADDREF(EG(uninitialized_zval));
    4484           0 :                 EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
    4485             :         } else {
    4486           9 :                 generator->send_target = NULL;
    4487             :         }
    4488             : 
    4489             :         /* We increment to the next op, so we are at the correct position when the
    4490             :          * generator is resumed. */
    4491           9 :         ZEND_VM_INC_OPCODE();
    4492             : 
    4493             :         /* The GOTO VM uses a local opline variable. We need to set the opline
    4494             :          * variable in execute_data so we don't resume at an old position. */
    4495             :         SAVE_OPLINE();
    4496             : 
    4497           9 :         ZEND_VM_RETURN();
    4498             : }
    4499             : 
    4500           4 : static int ZEND_FASTCALL  ZEND_POW_SPEC_CONST_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4501             : {
    4502           4 :         USE_OPLINE
    4503             : 
    4504             : 
    4505             :         SAVE_OPLINE();
    4506           4 :         pow_function(&EX_T(opline->result.var).tmp_var,
    4507             :                 opline->op1.zv,
    4508             :                 opline->op2.zv TSRMLS_CC);
    4509             : 
    4510             : 
    4511             :         CHECK_EXCEPTION();
    4512           4 :         ZEND_VM_NEXT_OPCODE();
    4513             : }
    4514             : 
    4515       73058 : static int ZEND_FASTCALL  ZEND_ADD_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4516             : {
    4517       73058 :         USE_OPLINE
    4518             :         zend_free_op free_op2;
    4519             : 
    4520             :         SAVE_OPLINE();
    4521      146116 :         fast_add_function(&EX_T(opline->result.var).tmp_var,
    4522             :                 opline->op1.zv,
    4523             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    4524             : 
    4525       73058 :         zval_dtor(free_op2.var);
    4526             :         CHECK_EXCEPTION();
    4527       73058 :         ZEND_VM_NEXT_OPCODE();
    4528             : }
    4529             : 
    4530          45 : static int ZEND_FASTCALL  ZEND_SUB_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4531             : {
    4532          45 :         USE_OPLINE
    4533             :         zend_free_op free_op2;
    4534             : 
    4535             :         SAVE_OPLINE();
    4536          90 :         fast_sub_function(&EX_T(opline->result.var).tmp_var,
    4537             :                 opline->op1.zv,
    4538             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    4539             : 
    4540          45 :         zval_dtor(free_op2.var);
    4541             :         CHECK_EXCEPTION();
    4542          45 :         ZEND_VM_NEXT_OPCODE();
    4543             : }
    4544             : 
    4545           2 : static int ZEND_FASTCALL  ZEND_MUL_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4546             : {
    4547           2 :         USE_OPLINE
    4548             :         zend_free_op free_op2;
    4549             : 
    4550             :         SAVE_OPLINE();
    4551           4 :         fast_mul_function(&EX_T(opline->result.var).tmp_var,
    4552             :                 opline->op1.zv,
    4553             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    4554             : 
    4555           2 :         zval_dtor(free_op2.var);
    4556             :         CHECK_EXCEPTION();
    4557           2 :         ZEND_VM_NEXT_OPCODE();
    4558             : }
    4559             : 
    4560           0 : static int ZEND_FASTCALL  ZEND_DIV_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4561             : {
    4562           0 :         USE_OPLINE
    4563             :         zend_free_op free_op2;
    4564             : 
    4565             :         SAVE_OPLINE();
    4566           0 :         fast_div_function(&EX_T(opline->result.var).tmp_var,
    4567             :                 opline->op1.zv,
    4568             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    4569             : 
    4570           0 :         zval_dtor(free_op2.var);
    4571             :         CHECK_EXCEPTION();
    4572           0 :         ZEND_VM_NEXT_OPCODE();
    4573             : }
    4574             : 
    4575           0 : static int ZEND_FASTCALL  ZEND_MOD_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4576             : {
    4577           0 :         USE_OPLINE
    4578             :         zend_free_op free_op2;
    4579             : 
    4580             :         SAVE_OPLINE();
    4581           0 :         fast_mod_function(&EX_T(opline->result.var).tmp_var,
    4582             :                 opline->op1.zv,
    4583             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    4584             : 
    4585           0 :         zval_dtor(free_op2.var);
    4586             :         CHECK_EXCEPTION();
    4587           0 :         ZEND_VM_NEXT_OPCODE();
    4588             : }
    4589             : 
    4590           0 : static int ZEND_FASTCALL  ZEND_SL_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4591             : {
    4592           0 :         USE_OPLINE
    4593             :         zend_free_op free_op2;
    4594             : 
    4595             :         SAVE_OPLINE();
    4596           0 :         shift_left_function(&EX_T(opline->result.var).tmp_var,
    4597             :                 opline->op1.zv,
    4598             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    4599             : 
    4600           0 :         zval_dtor(free_op2.var);
    4601             :         CHECK_EXCEPTION();
    4602           0 :         ZEND_VM_NEXT_OPCODE();
    4603             : }
    4604             : 
    4605           0 : static int ZEND_FASTCALL  ZEND_SR_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4606             : {
    4607           0 :         USE_OPLINE
    4608             :         zend_free_op free_op2;
    4609             : 
    4610             :         SAVE_OPLINE();
    4611           0 :         shift_right_function(&EX_T(opline->result.var).tmp_var,
    4612             :                 opline->op1.zv,
    4613             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    4614             : 
    4615           0 :         zval_dtor(free_op2.var);
    4616             :         CHECK_EXCEPTION();
    4617           0 :         ZEND_VM_NEXT_OPCODE();
    4618             : }
    4619             : 
    4620        1816 : static int ZEND_FASTCALL  ZEND_CONCAT_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4621             : {
    4622        1816 :         USE_OPLINE
    4623             :         zend_free_op free_op2;
    4624             : 
    4625             :         SAVE_OPLINE();
    4626        3632 :         concat_function(&EX_T(opline->result.var).tmp_var,
    4627             :                 opline->op1.zv,
    4628             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    4629             : 
    4630        1816 :         zval_dtor(free_op2.var);
    4631             :         CHECK_EXCEPTION();
    4632        1816 :         ZEND_VM_NEXT_OPCODE();
    4633             : }
    4634             : 
    4635           0 : static int ZEND_FASTCALL  ZEND_IS_IDENTICAL_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4636             : {
    4637           0 :         USE_OPLINE
    4638             :         zend_free_op free_op2;
    4639             : 
    4640             :         SAVE_OPLINE();
    4641           0 :         is_identical_function(&EX_T(opline->result.var).tmp_var,
    4642             :                 opline->op1.zv,
    4643             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    4644             : 
    4645           0 :         zval_dtor(free_op2.var);
    4646             :         CHECK_EXCEPTION();
    4647           0 :         ZEND_VM_NEXT_OPCODE();
    4648             : }
    4649             : 
    4650           0 : static int ZEND_FASTCALL  ZEND_IS_NOT_IDENTICAL_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4651             : {
    4652           0 :         USE_OPLINE
    4653             :         zend_free_op free_op2;
    4654           0 :         zval *result = &EX_T(opline->result.var).tmp_var;
    4655             : 
    4656             :         SAVE_OPLINE();
    4657           0 :         is_identical_function(result,
    4658             :                 opline->op1.zv,
    4659             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    4660           0 :         Z_LVAL_P(result) = !Z_LVAL_P(result);
    4661             : 
    4662           0 :         zval_dtor(free_op2.var);
    4663             :         CHECK_EXCEPTION();
    4664           0 :         ZEND_VM_NEXT_OPCODE();
    4665             : }
    4666             : 
    4667          12 : static int ZEND_FASTCALL  ZEND_IS_EQUAL_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4668             : {
    4669          12 :         USE_OPLINE
    4670             :         zend_free_op free_op2;
    4671          12 :         zval *result = &EX_T(opline->result.var).tmp_var;
    4672             : 
    4673             :         SAVE_OPLINE();
    4674          36 :         ZVAL_BOOL(result, fast_equal_function(result,
    4675             :                 opline->op1.zv,
    4676             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC));
    4677             : 
    4678          12 :         zval_dtor(free_op2.var);
    4679             :         CHECK_EXCEPTION();
    4680          12 :         ZEND_VM_NEXT_OPCODE();
    4681             : }
    4682             : 
    4683           0 : static int ZEND_FASTCALL  ZEND_IS_NOT_EQUAL_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4684             : {
    4685           0 :         USE_OPLINE
    4686             :         zend_free_op free_op2;
    4687           0 :         zval *result = &EX_T(opline->result.var).tmp_var;
    4688             : 
    4689             :         SAVE_OPLINE();
    4690           0 :         ZVAL_BOOL(result, fast_not_equal_function(result,
    4691             :                 opline->op1.zv,
    4692             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC));
    4693             : 
    4694           0 :         zval_dtor(free_op2.var);
    4695             :         CHECK_EXCEPTION();
    4696           0 :         ZEND_VM_NEXT_OPCODE();
    4697             : }
    4698             : 
    4699      367310 : static int ZEND_FASTCALL  ZEND_IS_SMALLER_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4700             : {
    4701      367310 :         USE_OPLINE
    4702             :         zend_free_op free_op2;
    4703      367310 :         zval *result = &EX_T(opline->result.var).tmp_var;
    4704             : 
    4705             :         SAVE_OPLINE();
    4706     1101930 :         ZVAL_BOOL(result, fast_is_smaller_function(result,
    4707             :                 opline->op1.zv,
    4708             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC));
    4709             : 
    4710      367310 :         zval_dtor(free_op2.var);
    4711             :         CHECK_EXCEPTION();
    4712      367310 :         ZEND_VM_NEXT_OPCODE();
    4713             : }
    4714             : 
    4715       18354 : static int ZEND_FASTCALL  ZEND_IS_SMALLER_OR_EQUAL_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4716             : {
    4717       18354 :         USE_OPLINE
    4718             :         zend_free_op free_op2;
    4719       18354 :         zval *result = &EX_T(opline->result.var).tmp_var;
    4720             : 
    4721             :         SAVE_OPLINE();
    4722       55062 :         ZVAL_BOOL(result, fast_is_smaller_or_equal_function(result,
    4723             :                 opline->op1.zv,
    4724             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC));
    4725             : 
    4726       18354 :         zval_dtor(free_op2.var);
    4727             :         CHECK_EXCEPTION();
    4728       18354 :         ZEND_VM_NEXT_OPCODE();
    4729             : }
    4730             : 
    4731      451806 : static int ZEND_FASTCALL  ZEND_BW_OR_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4732             : {
    4733      451806 :         USE_OPLINE
    4734             :         zend_free_op free_op2;
    4735             : 
    4736             :         SAVE_OPLINE();
    4737      903612 :         bitwise_or_function(&EX_T(opline->result.var).tmp_var,
    4738             :                 opline->op1.zv,
    4739             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    4740             : 
    4741      451806 :         zval_dtor(free_op2.var);
    4742             :         CHECK_EXCEPTION();
    4743      451806 :         ZEND_VM_NEXT_OPCODE();
    4744             : }
    4745             : 
    4746         100 : static int ZEND_FASTCALL  ZEND_BW_AND_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4747             : {
    4748         100 :         USE_OPLINE
    4749             :         zend_free_op free_op2;
    4750             : 
    4751             :         SAVE_OPLINE();
    4752         200 :         bitwise_and_function(&EX_T(opline->result.var).tmp_var,
    4753             :                 opline->op1.zv,
    4754             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    4755             : 
    4756         100 :         zval_dtor(free_op2.var);
    4757             :         CHECK_EXCEPTION();
    4758         100 :         ZEND_VM_NEXT_OPCODE();
    4759             : }
    4760             : 
    4761           0 : static int ZEND_FASTCALL  ZEND_BW_XOR_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4762             : {
    4763           0 :         USE_OPLINE
    4764             :         zend_free_op free_op2;
    4765             : 
    4766             :         SAVE_OPLINE();
    4767           0 :         bitwise_xor_function(&EX_T(opline->result.var).tmp_var,
    4768             :                 opline->op1.zv,
    4769             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    4770             : 
    4771           0 :         zval_dtor(free_op2.var);
    4772             :         CHECK_EXCEPTION();
    4773           0 :         ZEND_VM_NEXT_OPCODE();
    4774             : }
    4775             : 
    4776           0 : static int ZEND_FASTCALL  ZEND_BOOL_XOR_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4777             : {
    4778           0 :         USE_OPLINE
    4779             :         zend_free_op free_op2;
    4780             : 
    4781             :         SAVE_OPLINE();
    4782           0 :         boolean_xor_function(&EX_T(opline->result.var).tmp_var,
    4783             :                 opline->op1.zv,
    4784             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    4785             : 
    4786           0 :         zval_dtor(free_op2.var);
    4787             :         CHECK_EXCEPTION();
    4788           0 :         ZEND_VM_NEXT_OPCODE();
    4789             : }
    4790             : 
    4791           0 : static int ZEND_FASTCALL  ZEND_FETCH_DIM_R_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4792             : {
    4793           0 :         USE_OPLINE
    4794             :         zend_free_op free_op2;
    4795             :         zval *container;
    4796             : 
    4797             :         SAVE_OPLINE();
    4798           0 :         container = opline->op1.zv;
    4799           0 :         zend_fetch_dimension_address_read(&EX_T(opline->result.var), container, _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC), IS_TMP_VAR, BP_VAR_R TSRMLS_CC);
    4800           0 :         zval_dtor(free_op2.var);
    4801             :         if (IS_CONST != IS_VAR || !(opline->extended_value & ZEND_FETCH_ADD_LOCK)) {
    4802             : 
    4803             :         }
    4804             :         CHECK_EXCEPTION();
    4805           0 :         ZEND_VM_NEXT_OPCODE();
    4806             : }
    4807             : 
    4808           0 : static int ZEND_FASTCALL  ZEND_INIT_STATIC_METHOD_CALL_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4809             : {
    4810           0 :         USE_OPLINE
    4811             :         zval *function_name;
    4812             :         zend_class_entry *ce;
    4813           0 :         call_slot *call = EX(call_slots) + opline->result.num;
    4814             : 
    4815             :         SAVE_OPLINE();
    4816             : 
    4817             :         if (IS_CONST == IS_CONST) {
    4818             :                 /* no function found. try a static method in class */
    4819           0 :                 if (CACHED_PTR(opline->op1.literal->cache_slot)) {
    4820           0 :                         ce = CACHED_PTR(opline->op1.literal->cache_slot);
    4821             :                 } else {
    4822           0 :                         ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op1.zv), Z_STRLEN_P(opline->op1.zv), opline->op1.literal + 1, opline->extended_value TSRMLS_CC);
    4823           0 :                         if (UNEXPECTED(EG(exception) != NULL)) {
    4824           0 :                                 HANDLE_EXCEPTION();
    4825             :                         }
    4826           0 :                         if (UNEXPECTED(ce == NULL)) {
    4827           0 :                                 zend_error_noreturn(E_ERROR, "Class '%s' not found", Z_STRVAL_P(opline->op1.zv));
    4828             :                         }
    4829           0 :                         CACHE_PTR(opline->op1.literal->cache_slot, ce);
    4830             :                 }
    4831           0 :                 call->called_scope = ce;
    4832             :         } else {
    4833             :                 ce = EX_T(opline->op1.var).class_entry;
    4834             : 
    4835             :                 if (opline->extended_value == ZEND_FETCH_CLASS_PARENT || opline->extended_value == ZEND_FETCH_CLASS_SELF) {
    4836             :                         call->called_scope = EG(called_scope);
    4837             :                 } else {
    4838             :                         call->called_scope = ce;
    4839             :                 }
    4840             :         }
    4841             : 
    4842           0 :         if (IS_CONST == IS_CONST &&
    4843             :             IS_TMP_VAR == IS_CONST &&
    4844             :             CACHED_PTR(opline->op2.literal->cache_slot)) {
    4845             :                 call->fbc = CACHED_PTR(opline->op2.literal->cache_slot);
    4846           0 :         } else if (IS_CONST != IS_CONST &&
    4847             :                    IS_TMP_VAR == IS_CONST &&
    4848             :                    (call->fbc = CACHED_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, ce))) {
    4849             :                 /* do nothing */
    4850             :         } else if (IS_TMP_VAR != IS_UNUSED) {
    4851           0 :                 char *function_name_strval = NULL;
    4852           0 :                 int function_name_strlen = 0;
    4853             :                 zend_free_op free_op2;
    4854             : 
    4855           0 :                 if (IS_TMP_VAR == IS_CONST) {
    4856             :                         function_name_strval = Z_STRVAL_P(opline->op2.zv);
    4857             :                         function_name_strlen = Z_STRLEN_P(opline->op2.zv);
    4858             :                 } else {
    4859           0 :                         function_name = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
    4860             : 
    4861           0 :                         if (UNEXPECTED(Z_TYPE_P(function_name) != IS_STRING)) {
    4862           0 :                                 if (UNEXPECTED(EG(exception) != NULL)) {
    4863           0 :                                         HANDLE_EXCEPTION();
    4864             :                                 }
    4865           0 :                                 zend_error_noreturn(E_ERROR, "Function name must be a string");
    4866             :                         } else {
    4867           0 :                                 function_name_strval = Z_STRVAL_P(function_name);
    4868           0 :                                 function_name_strlen = Z_STRLEN_P(function_name);
    4869             :                         }
    4870             :                 }
    4871             : 
    4872           0 :                 if (function_name_strval) {
    4873           0 :                         if (ce->get_static_method) {
    4874           0 :                                 call->fbc = ce->get_static_method(ce, function_name_strval, function_name_strlen TSRMLS_CC);
    4875             :                         } else {
    4876           0 :                                 call->fbc = zend_std_get_static_method(ce, function_name_strval, function_name_strlen, ((IS_TMP_VAR == IS_CONST) ? (opline->op2.literal + 1) : NULL) TSRMLS_CC);
    4877             :                         }
    4878           0 :                         if (UNEXPECTED(call->fbc == NULL)) {
    4879           0 :                                 zend_error_noreturn(E_ERROR, "Call to undefined method %s::%s()", ce->name, function_name_strval);
    4880             :                         }
    4881           0 :                         if (IS_TMP_VAR == IS_CONST &&
    4882             :                             EXPECTED(call->fbc->type <= ZEND_USER_FUNCTION) &&
    4883             :                             EXPECTED((call->fbc->common.fn_flags & (ZEND_ACC_CALL_VIA_HANDLER|ZEND_ACC_NEVER_CACHE)) == 0)) {
    4884             :                                 if (IS_CONST == IS_CONST) {
    4885             :                                         CACHE_PTR(opline->op2.literal->cache_slot, call->fbc);
    4886             :                                 } else {
    4887             :                                         CACHE_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, ce, call->fbc);
    4888             :                                 }
    4889             :                         }
    4890             :                 }
    4891             :                 if (IS_TMP_VAR != IS_CONST) {
    4892           0 :                         zval_dtor(free_op2.var);
    4893             :                 }
    4894             :         } else {
    4895             :                 if (UNEXPECTED(ce->constructor == NULL)) {
    4896             :                         zend_error_noreturn(E_ERROR, "Cannot call constructor");
    4897             :                 }
    4898             :                 if (EG(This) && Z_OBJCE_P(EG(This)) != ce->constructor->common.scope && (ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
    4899             :                         zend_error_noreturn(E_ERROR, "Cannot call private %s::__construct()", ce->name);
    4900             :                 }
    4901             :                 call->fbc = ce->constructor;
    4902             :         }
    4903             : 
    4904           0 :         if (call->fbc->common.fn_flags & ZEND_ACC_STATIC) {
    4905           0 :                 call->object = NULL;
    4906             :         } else {
    4907           0 :                 if (EG(This) &&
    4908           0 :                     Z_OBJ_HT_P(EG(This))->get_class_entry &&
    4909           0 :                     !instanceof_function(Z_OBJCE_P(EG(This)), ce TSRMLS_CC)) {
    4910             :                     /* We are calling method of the other (incompatible) class,
    4911             :                        but passing $this. This is done for compatibility with php-4. */
    4912           0 :                         if (call->fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
    4913           0 :                                 zend_error(E_DEPRECATED, "Non-static method %s::%s() should not be called statically, assuming $this from incompatible context", call->fbc->common.scope->name, call->fbc->common.function_name);
    4914             :                         } else {
    4915             :                                 /* An internal function assumes $this is present and won't check that. So PHP would crash by allowing the call. */
    4916           0 :                                 zend_error_noreturn(E_ERROR, "Non-static method %s::%s() cannot be called statically, assuming $this from incompatible context", call->fbc->common.scope->name, call->fbc->common.function_name);
    4917             :                         }
    4918             :                 }
    4919           0 :                 if ((call->object = EG(This))) {
    4920           0 :                         Z_ADDREF_P(call->object);
    4921           0 :                         call->called_scope = Z_OBJCE_P(call->object);
    4922             :                 }
    4923             :         }
    4924             : 
    4925           0 :         call->num_additional_args = 0;
    4926           0 :         call->is_ctor_call = 0;
    4927           0 :         EX(call) = call;
    4928             : 
    4929             :         CHECK_EXCEPTION();
    4930           0 :         ZEND_VM_NEXT_OPCODE();
    4931             : }
    4932             : 
    4933          66 : static int ZEND_FASTCALL  ZEND_CASE_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4934             : {
    4935          66 :         USE_OPLINE
    4936             :         zend_free_op free_op2;
    4937             : 
    4938             :         SAVE_OPLINE();
    4939         132 :         is_equal_function(&EX_T(opline->result.var).tmp_var,
    4940             :                                  opline->op1.zv,
    4941             :                                  _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    4942             : 
    4943          66 :         zval_dtor(free_op2.var);
    4944             :         CHECK_EXCEPTION();
    4945          66 :         ZEND_VM_NEXT_OPCODE();
    4946             : }
    4947             : 
    4948         220 : static int ZEND_FASTCALL  ZEND_ADD_ARRAY_ELEMENT_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    4949             : {
    4950         220 :         USE_OPLINE
    4951             : 
    4952             :         zval *expr_ptr;
    4953             : 
    4954             :         SAVE_OPLINE();
    4955         220 :         if ((IS_CONST == IS_VAR || IS_CONST == IS_CV) && opline->extended_value) {
    4956             :                 zval **expr_ptr_ptr = NULL;
    4957             : 
    4958             :                 if (IS_CONST == IS_VAR && UNEXPECTED(expr_ptr_ptr == NULL)) {
    4959             :                         zend_error_noreturn(E_ERROR, "Cannot create references to/from string offsets");
    4960             :                 }
    4961             :                 SEPARATE_ZVAL_TO_MAKE_IS_REF(expr_ptr_ptr);
    4962             :                 expr_ptr = *expr_ptr_ptr;
    4963             :                 Z_ADDREF_P(expr_ptr);
    4964             :         } else {
    4965         220 :                 expr_ptr=opline->op1.zv;
    4966         220 :                 if (0) { /* temporary variable */
    4967             :                         zval *new_expr;
    4968             : 
    4969             :                         ALLOC_ZVAL(new_expr);
    4970             :                         INIT_PZVAL_COPY(new_expr, expr_ptr);
    4971             :                         expr_ptr = new_expr;
    4972             :                 } else if (IS_CONST == IS_CONST || PZVAL_IS_REF(expr_ptr)) {
    4973             :                         zval *new_expr;
    4974             : 
    4975         220 :                         ALLOC_ZVAL(new_expr);
    4976         220 :                         INIT_PZVAL_COPY(new_expr, expr_ptr);
    4977         220 :                         expr_ptr = new_expr;
    4978         220 :                         zendi_zval_copy_ctor(*expr_ptr);
    4979             : 
    4980             :                 } else if (IS_CONST == IS_CV) {
    4981             :                         Z_ADDREF_P(expr_ptr);
    4982             :                 }
    4983             :         }
    4984             : 
    4985             :         if (IS_TMP_VAR != IS_UNUSED) {
    4986             :                 zend_free_op free_op2;
    4987         440 :                 zval *offset = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
    4988             :                 ulong hval;
    4989             : 
    4990         220 :                 switch (Z_TYPE_P(offset)) {
    4991             :                         case IS_DOUBLE:
    4992           0 :                                 hval = zend_dval_to_lval(Z_DVAL_P(offset));
    4993           0 :                                 goto num_index;
    4994             :                         case IS_LONG:
    4995             :                         case IS_BOOL:
    4996         148 :                                 hval = Z_LVAL_P(offset);
    4997             : num_index:
    4998         148 :                                 zend_hash_index_update(Z_ARRVAL(EX_T(opline->result.var).tmp_var), hval, &expr_ptr, sizeof(zval *), NULL);
    4999         148 :                                 break;
    5000             :                         case IS_STRING:
    5001          71 :                                 if (IS_TMP_VAR == IS_CONST) {
    5002             :                                         hval = Z_HASH_P(offset);
    5003             :                                 } else {
    5004          71 :                                         ZEND_HANDLE_NUMERIC_EX(Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, goto num_index);
    5005          71 :                                         hval = str_hash(Z_STRVAL_P(offset), Z_STRLEN_P(offset));
    5006             :                                 }
    5007          71 :                                 zend_hash_quick_update(Z_ARRVAL(EX_T(opline->result.var).tmp_var), Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, &expr_ptr, sizeof(zval *), NULL);
    5008          71 :                                 break;
    5009             :                         case IS_NULL:
    5010           0 :                                 zend_hash_update(Z_ARRVAL(EX_T(opline->result.var).tmp_var), "", sizeof(""), &expr_ptr, sizeof(zval *), NULL);
    5011           0 :                                 break;
    5012             :                         default:
    5013           1 :                                 zend_error(E_WARNING, "Illegal offset type");
    5014           1 :                                 zval_ptr_dtor(&expr_ptr);
    5015             :                                 /* do nothing */
    5016             :                                 break;
    5017             :                 }
    5018         220 :                 zval_dtor(free_op2.var);
    5019             :         } else {
    5020             :                 zend_hash_next_index_insert(Z_ARRVAL(EX_T(opline->result.var).tmp_var), &expr_ptr, sizeof(zval *), NULL);
    5021             :         }
    5022             :         if ((IS_CONST == IS_VAR || IS_CONST == IS_CV) && opline->extended_value) {
    5023             : 
    5024             :         }
    5025             :         CHECK_EXCEPTION();
    5026         220 :         ZEND_VM_NEXT_OPCODE();
    5027             : }
    5028             : 
    5029         115 : static int ZEND_FASTCALL  ZEND_INIT_ARRAY_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5030             : {
    5031         115 :         USE_OPLINE
    5032             : 
    5033         115 :         array_init(&EX_T(opline->result.var).tmp_var);
    5034         115 :         if (IS_CONST == IS_UNUSED) {
    5035             :                 ZEND_VM_NEXT_OPCODE();
    5036             : #if 0 || IS_CONST != IS_UNUSED
    5037             :         } else {
    5038         115 :                 return ZEND_ADD_ARRAY_ELEMENT_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    5039             : #endif
    5040             :         }
    5041             : }
    5042             : 
    5043           2 : static int ZEND_FASTCALL  ZEND_YIELD_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5044             : {
    5045           2 :         USE_OPLINE
    5046             : 
    5047             :         /* The generator object is stored in return_value_ptr_ptr */
    5048           2 :         zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr);
    5049             : 
    5050           2 :         if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
    5051           0 :                 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
    5052             :         }
    5053             : 
    5054             :         /* Destroy the previously yielded value */
    5055           2 :         if (generator->value) {
    5056           1 :                 zval_ptr_dtor(&generator->value);
    5057             :         }
    5058             : 
    5059             :         /* Destroy the previously yielded key */
    5060           2 :         if (generator->key) {
    5061           1 :                 zval_ptr_dtor(&generator->key);
    5062             :         }
    5063             : 
    5064             :         /* Set the new yielded value */
    5065             :         if (IS_CONST != IS_UNUSED) {
    5066             : 
    5067             : 
    5068           2 :                 if (EX(op_array)->fn_flags & ZEND_ACC_RETURN_REFERENCE) {
    5069             :                         /* Constants and temporary variables aren't yieldable by reference,
    5070             :                          * but we still allow them with a notice. */
    5071             :                         if (IS_CONST == IS_CONST || IS_CONST == IS_TMP_VAR) {
    5072             :                                 zval *value, *copy;
    5073             : 
    5074           0 :                                 zend_error(E_NOTICE, "Only variable references should be yielded by reference");
    5075             : 
    5076           0 :                                 value = opline->op1.zv;
    5077           0 :                                 ALLOC_ZVAL(copy);
    5078           0 :                                 INIT_PZVAL_COPY(copy, value);
    5079             : 
    5080             :                                 /* Temporary variables don't need ctor copying */
    5081             :                                 if (!0) {
    5082             :                                         zval_copy_ctor(copy);
    5083             :                                 }
    5084             : 
    5085           0 :                                 generator->value = copy;
    5086             :                         } else {
    5087             :                                 zval **value_ptr = NULL;
    5088             : 
    5089             :                                 if (IS_CONST == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
    5090             :                                         zend_error_noreturn(E_ERROR, "Cannot yield string offsets by reference");
    5091             :                                 }
    5092             : 
    5093             :                                 /* If a function call result is yielded and the function did
    5094             :                                  * not return by reference we throw a notice. */
    5095             :                                 if (IS_CONST == IS_VAR && !Z_ISREF_PP(value_ptr)
    5096             :                                     && !(opline->extended_value == ZEND_RETURNS_FUNCTION
    5097             :                                          && EX_T(opline->op1.var).var.fcall_returned_reference)
    5098             :                                     && EX_T(opline->op1.var).var.ptr_ptr == &EX_T(opline->op1.var).var.ptr) {
    5099             :                                         zend_error(E_NOTICE, "Only variable references should be yielded by reference");
    5100             : 
    5101             :                                         Z_ADDREF_PP(value_ptr);
    5102             :                                         generator->value = *value_ptr;
    5103             :                                 } else {
    5104             :                                         SEPARATE_ZVAL_TO_MAKE_IS_REF(value_ptr);
    5105             :                                         Z_ADDREF_PP(value_ptr);
    5106             :                                         generator->value = *value_ptr;
    5107             :                                 }
    5108             : 
    5109             :                         }
    5110             :                 } else {
    5111           2 :                         zval *value = opline->op1.zv;
    5112             : 
    5113             :                         /* Consts, temporary variables and references need copying */
    5114             :                         if (IS_CONST == IS_CONST || IS_CONST == IS_TMP_VAR
    5115             :                                 || PZVAL_IS_REF(value)
    5116             :                         ) {
    5117             :                                 zval *copy;
    5118             : 
    5119           2 :                                 ALLOC_ZVAL(copy);
    5120           2 :                                 INIT_PZVAL_COPY(copy, value);
    5121             : 
    5122             :                                 /* Temporary variables don't need ctor copying */
    5123             :                                 if (!0) {
    5124             :                                         zval_copy_ctor(copy);
    5125             :                                 }
    5126             : 
    5127           2 :                                 generator->value = copy;
    5128             : 
    5129             :                         } else {
    5130             :                                 if (IS_CONST == IS_CV) {
    5131             :                                         Z_ADDREF_P(value);
    5132             :                                 }
    5133             :                                 generator->value = value;
    5134             :                         }
    5135             :                 }
    5136             :         } else {
    5137             :                 /* If no value was specified yield null */
    5138             :                 Z_ADDREF(EG(uninitialized_zval));
    5139             :                 generator->value = &EG(uninitialized_zval);
    5140             :         }
    5141             : 
    5142             :         /* Set the new yielded key */
    5143             :         if (IS_TMP_VAR != IS_UNUSED) {
    5144             :                 zend_free_op free_op2;
    5145           4 :                 zval *key = _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
    5146             : 
    5147             :                 /* Consts, temporary variables and references need copying */
    5148             :                 if (IS_TMP_VAR == IS_CONST || IS_TMP_VAR == IS_TMP_VAR
    5149             :                         || (PZVAL_IS_REF(key) && Z_REFCOUNT_P(key) > 0)
    5150             :                 ) {
    5151             :                         zval *copy;
    5152             : 
    5153           2 :                         ALLOC_ZVAL(copy);
    5154           2 :                         INIT_PZVAL_COPY(copy, key);
    5155             : 
    5156             :                         /* Temporary variables don't need ctor copying */
    5157           2 :                         if (!1) {
    5158             :                                 zval_copy_ctor(copy);
    5159             :                         }
    5160             : 
    5161           2 :                         generator->key = copy;
    5162             :                 } else {
    5163             :                         Z_ADDREF_P(key);
    5164             :                         generator->key = key;
    5165             :                 }
    5166             : 
    5167           4 :                 if (Z_TYPE_P(generator->key) == IS_LONG
    5168           2 :                     && Z_LVAL_P(generator->key) > generator->largest_used_integer_key
    5169             :                 ) {
    5170           0 :                         generator->largest_used_integer_key = Z_LVAL_P(generator->key);
    5171             :                 }
    5172             : 
    5173             :         } else {
    5174             :                 /* If no key was specified we use auto-increment keys */
    5175             :                 generator->largest_used_integer_key++;
    5176             : 
    5177             :                 ALLOC_INIT_ZVAL(generator->key);
    5178             :                 ZVAL_LONG(generator->key, generator->largest_used_integer_key);
    5179             :         }
    5180             : 
    5181           2 :         if (RETURN_VALUE_USED(opline)) {
    5182             :                 /* If the return value of yield is used set the send
    5183             :                  * target and initialize it to NULL */
    5184           0 :                 generator->send_target = &EX_T(opline->result.var).var.ptr;
    5185             :                 Z_ADDREF(EG(uninitialized_zval));
    5186           0 :                 EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
    5187             :         } else {
    5188           2 :                 generator->send_target = NULL;
    5189             :         }
    5190             : 
    5191             :         /* We increment to the next op, so we are at the correct position when the
    5192             :          * generator is resumed. */
    5193           2 :         ZEND_VM_INC_OPCODE();
    5194             : 
    5195             :         /* The GOTO VM uses a local opline variable. We need to set the opline
    5196             :          * variable in execute_data so we don't resume at an old position. */
    5197             :         SAVE_OPLINE();
    5198             : 
    5199           2 :         ZEND_VM_RETURN();
    5200             : }
    5201             : 
    5202           1 : static int ZEND_FASTCALL  ZEND_POW_SPEC_CONST_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5203             : {
    5204           1 :         USE_OPLINE
    5205             :         zend_free_op free_op2;
    5206             : 
    5207             :         SAVE_OPLINE();
    5208           2 :         pow_function(&EX_T(opline->result.var).tmp_var,
    5209             :                 opline->op1.zv,
    5210             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    5211             : 
    5212           1 :         zval_dtor(free_op2.var);
    5213             :         CHECK_EXCEPTION();
    5214           1 :         ZEND_VM_NEXT_OPCODE();
    5215             : }
    5216             : 
    5217           1 : static int ZEND_FASTCALL  ZEND_ADD_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5218             : {
    5219           1 :         USE_OPLINE
    5220             :         zend_free_op free_op2;
    5221             : 
    5222             :         SAVE_OPLINE();
    5223           2 :         fast_add_function(&EX_T(opline->result.var).tmp_var,
    5224             :                 opline->op1.zv,
    5225             :                 _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    5226             : 
    5227           1 :         zval_ptr_dtor_nogc(&free_op2.var);
    5228             :         CHECK_EXCEPTION();
    5229           1 :         ZEND_VM_NEXT_OPCODE();
    5230             : }
    5231             : 
    5232        2193 : static int ZEND_FASTCALL  ZEND_SUB_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5233             : {
    5234        2193 :         USE_OPLINE
    5235             :         zend_free_op free_op2;
    5236             : 
    5237             :         SAVE_OPLINE();
    5238        4386 :         fast_sub_function(&EX_T(opline->result.var).tmp_var,
    5239             :                 opline->op1.zv,
    5240             :                 _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    5241             : 
    5242        2193 :         zval_ptr_dtor_nogc(&free_op2.var);
    5243             :         CHECK_EXCEPTION();
    5244        2193 :         ZEND_VM_NEXT_OPCODE();
    5245             : }
    5246             : 
    5247         621 : static int ZEND_FASTCALL  ZEND_MUL_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5248             : {
    5249         621 :         USE_OPLINE
    5250             :         zend_free_op free_op2;
    5251             : 
    5252             :         SAVE_OPLINE();
    5253        1242 :         fast_mul_function(&EX_T(opline->result.var).tmp_var,
    5254             :                 opline->op1.zv,
    5255             :                 _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    5256             : 
    5257         621 :         zval_ptr_dtor_nogc(&free_op2.var);
    5258             :         CHECK_EXCEPTION();
    5259         621 :         ZEND_VM_NEXT_OPCODE();
    5260             : }
    5261             : 
    5262           0 : static int ZEND_FASTCALL  ZEND_DIV_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5263             : {
    5264           0 :         USE_OPLINE
    5265             :         zend_free_op free_op2;
    5266             : 
    5267             :         SAVE_OPLINE();
    5268           0 :         fast_div_function(&EX_T(opline->result.var).tmp_var,
    5269             :                 opline->op1.zv,
    5270             :                 _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    5271             : 
    5272           0 :         zval_ptr_dtor_nogc(&free_op2.var);
    5273             :         CHECK_EXCEPTION();
    5274           0 :         ZEND_VM_NEXT_OPCODE();
    5275             : }
    5276             : 
    5277           0 : static int ZEND_FASTCALL  ZEND_MOD_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5278             : {
    5279           0 :         USE_OPLINE
    5280             :         zend_free_op free_op2;
    5281             : 
    5282             :         SAVE_OPLINE();
    5283           0 :         fast_mod_function(&EX_T(opline->result.var).tmp_var,
    5284             :                 opline->op1.zv,
    5285             :                 _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    5286             : 
    5287           0 :         zval_ptr_dtor_nogc(&free_op2.var);
    5288             :         CHECK_EXCEPTION();
    5289           0 :         ZEND_VM_NEXT_OPCODE();
    5290             : }
    5291             : 
    5292           0 : static int ZEND_FASTCALL  ZEND_SL_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5293             : {
    5294           0 :         USE_OPLINE
    5295             :         zend_free_op free_op2;
    5296             : 
    5297             :         SAVE_OPLINE();
    5298           0 :         shift_left_function(&EX_T(opline->result.var).tmp_var,
    5299             :                 opline->op1.zv,
    5300             :                 _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    5301             : 
    5302           0 :         zval_ptr_dtor_nogc(&free_op2.var);
    5303             :         CHECK_EXCEPTION();
    5304           0 :         ZEND_VM_NEXT_OPCODE();
    5305             : }
    5306             : 
    5307           0 : static int ZEND_FASTCALL  ZEND_SR_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5308             : {
    5309           0 :         USE_OPLINE
    5310             :         zend_free_op free_op2;
    5311             : 
    5312             :         SAVE_OPLINE();
    5313           0 :         shift_right_function(&EX_T(opline->result.var).tmp_var,
    5314             :                 opline->op1.zv,
    5315             :                 _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    5316             : 
    5317           0 :         zval_ptr_dtor_nogc(&free_op2.var);
    5318             :         CHECK_EXCEPTION();
    5319           0 :         ZEND_VM_NEXT_OPCODE();
    5320             : }
    5321             : 
    5322       49829 : static int ZEND_FASTCALL  ZEND_CONCAT_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5323             : {
    5324       49829 :         USE_OPLINE
    5325             :         zend_free_op free_op2;
    5326             : 
    5327             :         SAVE_OPLINE();
    5328       99658 :         concat_function(&EX_T(opline->result.var).tmp_var,
    5329             :                 opline->op1.zv,
    5330             :                 _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    5331             : 
    5332       49829 :         zval_ptr_dtor_nogc(&free_op2.var);
    5333             :         CHECK_EXCEPTION();
    5334       49829 :         ZEND_VM_NEXT_OPCODE();
    5335             : }
    5336             : 
    5337        1147 : static int ZEND_FASTCALL  ZEND_IS_IDENTICAL_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5338             : {
    5339        1147 :         USE_OPLINE
    5340             :         zend_free_op free_op2;
    5341             : 
    5342             :         SAVE_OPLINE();
    5343        2294 :         is_identical_function(&EX_T(opline->result.var).tmp_var,
    5344             :                 opline->op1.zv,
    5345             :                 _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    5346             : 
    5347        1147 :         zval_ptr_dtor_nogc(&free_op2.var);
    5348             :         CHECK_EXCEPTION();
    5349        1147 :         ZEND_VM_NEXT_OPCODE();
    5350             : }
    5351             : 
    5352        7727 : static int ZEND_FASTCALL  ZEND_IS_NOT_IDENTICAL_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5353             : {
    5354        7727 :         USE_OPLINE
    5355             :         zend_free_op free_op2;
    5356        7727 :         zval *result = &EX_T(opline->result.var).tmp_var;
    5357             : 
    5358             :         SAVE_OPLINE();
    5359       15454 :         is_identical_function(result,
    5360             :                 opline->op1.zv,
    5361             :                 _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    5362        7727 :         Z_LVAL_P(result) = !Z_LVAL_P(result);
    5363             : 
    5364        7727 :         zval_ptr_dtor_nogc(&free_op2.var);
    5365             :         CHECK_EXCEPTION();
    5366        7727 :         ZEND_VM_NEXT_OPCODE();
    5367             : }
    5368             : 
    5369        2023 : static int ZEND_FASTCALL  ZEND_IS_EQUAL_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5370             : {
    5371        2023 :         USE_OPLINE
    5372             :         zend_free_op free_op2;
    5373        2023 :         zval *result = &EX_T(opline->result.var).tmp_var;
    5374             : 
    5375             :         SAVE_OPLINE();
    5376        6069 :         ZVAL_BOOL(result, fast_equal_function(result,
    5377             :                 opline->op1.zv,
    5378             :                 _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC));
    5379             : 
    5380        2023 :         zval_ptr_dtor_nogc(&free_op2.var);
    5381             :         CHECK_EXCEPTION();
    5382        2023 :         ZEND_VM_NEXT_OPCODE();
    5383             : }
    5384             : 
    5385         105 : static int ZEND_FASTCALL  ZEND_IS_NOT_EQUAL_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5386             : {
    5387         105 :         USE_OPLINE
    5388             :         zend_free_op free_op2;
    5389         105 :         zval *result = &EX_T(opline->result.var).tmp_var;
    5390             : 
    5391             :         SAVE_OPLINE();
    5392         315 :         ZVAL_BOOL(result, fast_not_equal_function(result,
    5393             :                 opline->op1.zv,
    5394             :                 _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC));
    5395             : 
    5396         105 :         zval_ptr_dtor_nogc(&free_op2.var);
    5397             :         CHECK_EXCEPTION();
    5398         105 :         ZEND_VM_NEXT_OPCODE();
    5399             : }
    5400             : 
    5401      209861 : static int ZEND_FASTCALL  ZEND_IS_SMALLER_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5402             : {
    5403      209861 :         USE_OPLINE
    5404             :         zend_free_op free_op2;
    5405      209861 :         zval *result = &EX_T(opline->result.var).tmp_var;
    5406             : 
    5407             :         SAVE_OPLINE();
    5408      629583 :         ZVAL_BOOL(result, fast_is_smaller_function(result,
    5409             :                 opline->op1.zv,
    5410             :                 _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC));
    5411             : 
    5412      209861 :         zval_ptr_dtor_nogc(&free_op2.var);
    5413             :         CHECK_EXCEPTION();
    5414      209861 :         ZEND_VM_NEXT_OPCODE();
    5415             : }
    5416             : 
    5417         157 : static int ZEND_FASTCALL  ZEND_IS_SMALLER_OR_EQUAL_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5418             : {
    5419         157 :         USE_OPLINE
    5420             :         zend_free_op free_op2;
    5421         157 :         zval *result = &EX_T(opline->result.var).tmp_var;
    5422             : 
    5423             :         SAVE_OPLINE();
    5424         471 :         ZVAL_BOOL(result, fast_is_smaller_or_equal_function(result,
    5425             :                 opline->op1.zv,
    5426             :                 _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC));
    5427             : 
    5428         157 :         zval_ptr_dtor_nogc(&free_op2.var);
    5429             :         CHECK_EXCEPTION();
    5430         157 :         ZEND_VM_NEXT_OPCODE();
    5431             : }
    5432             : 
    5433           0 : static int ZEND_FASTCALL  ZEND_BW_OR_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5434             : {
    5435           0 :         USE_OPLINE
    5436             :         zend_free_op free_op2;
    5437             : 
    5438             :         SAVE_OPLINE();
    5439           0 :         bitwise_or_function(&EX_T(opline->result.var).tmp_var,
    5440             :                 opline->op1.zv,
    5441             :                 _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    5442             : 
    5443           0 :         zval_ptr_dtor_nogc(&free_op2.var);
    5444             :         CHECK_EXCEPTION();
    5445           0 :         ZEND_VM_NEXT_OPCODE();
    5446             : }
    5447             : 
    5448           1 : static int ZEND_FASTCALL  ZEND_BW_AND_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5449             : {
    5450           1 :         USE_OPLINE
    5451             :         zend_free_op free_op2;
    5452             : 
    5453             :         SAVE_OPLINE();
    5454           2 :         bitwise_and_function(&EX_T(opline->result.var).tmp_var,
    5455             :                 opline->op1.zv,
    5456             :                 _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    5457             : 
    5458           1 :         zval_ptr_dtor_nogc(&free_op2.var);
    5459             :         CHECK_EXCEPTION();
    5460           1 :         ZEND_VM_NEXT_OPCODE();
    5461             : }
    5462             : 
    5463           0 : static int ZEND_FASTCALL  ZEND_BW_XOR_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5464             : {
    5465           0 :         USE_OPLINE
    5466             :         zend_free_op free_op2;
    5467             : 
    5468             :         SAVE_OPLINE();
    5469           0 :         bitwise_xor_function(&EX_T(opline->result.var).tmp_var,
    5470             :                 opline->op1.zv,
    5471             :                 _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    5472             : 
    5473           0 :         zval_ptr_dtor_nogc(&free_op2.var);
    5474             :         CHECK_EXCEPTION();
    5475           0 :         ZEND_VM_NEXT_OPCODE();
    5476             : }
    5477             : 
    5478           0 : static int ZEND_FASTCALL  ZEND_BOOL_XOR_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5479             : {
    5480           0 :         USE_OPLINE
    5481             :         zend_free_op free_op2;
    5482             : 
    5483             :         SAVE_OPLINE();
    5484           0 :         boolean_xor_function(&EX_T(opline->result.var).tmp_var,
    5485             :                 opline->op1.zv,
    5486             :                 _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    5487             : 
    5488           0 :         zval_ptr_dtor_nogc(&free_op2.var);
    5489             :         CHECK_EXCEPTION();
    5490           0 :         ZEND_VM_NEXT_OPCODE();
    5491             : }
    5492             : 
    5493         734 : static int ZEND_FASTCALL zend_fetch_var_address_helper_SPEC_CONST_VAR(int type, ZEND_OPCODE_HANDLER_ARGS)
    5494             : {
    5495         734 :         USE_OPLINE
    5496             :         zend_free_op free_op1;
    5497             :         zval *varname;
    5498             :         zval **retval;
    5499             :         zval tmp_varname;
    5500             :         HashTable *target_symbol_table;
    5501             :         ulong hash_value;
    5502             : 
    5503             :         SAVE_OPLINE();
    5504         734 :         varname = opline->op1.zv;
    5505             : 
    5506         734 :         if (IS_CONST != IS_CONST && UNEXPECTED(Z_TYPE_P(varname) != IS_STRING)) {
    5507             :                 ZVAL_COPY_VALUE(&tmp_varname, varname);
    5508             :                 zval_copy_ctor(&tmp_varname);
    5509             :                 Z_SET_REFCOUNT(tmp_varname, 1);
    5510             :                 Z_UNSET_ISREF(tmp_varname);
    5511             :                 convert_to_string(&tmp_varname);
    5512             :                 varname = &tmp_varname;
    5513             :         }
    5514             : 
    5515             :         if (IS_VAR != IS_UNUSED) {
    5516             :                 zend_class_entry *ce;
    5517             : 
    5518         734 :                 if (IS_VAR == IS_CONST) {
    5519             :                         if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    5520             :                                 ce = CACHED_PTR(opline->op2.literal->cache_slot);
    5521             :                         } else {
    5522             :                                 ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.literal + 1, 0 TSRMLS_CC);
    5523             :                                 if (UNEXPECTED(ce == NULL)) {
    5524             :                                         if (IS_CONST != IS_CONST && varname == &tmp_varname) {
    5525             :                                                 zval_dtor(&tmp_varname);
    5526             :                                         }
    5527             : 
    5528             :                                         CHECK_EXCEPTION();
    5529             :                                         ZEND_VM_NEXT_OPCODE();
    5530             :                                 }
    5531             :                                 CACHE_PTR(opline->op2.literal->cache_slot, ce);
    5532             :                         }
    5533             :                 } else {
    5534         734 :                         ce = EX_T(opline->op2.var).class_entry;
    5535             :                 }
    5536         734 :                 retval = zend_std_get_static_property(ce, Z_STRVAL_P(varname), Z_STRLEN_P(varname), 0, ((IS_CONST == IS_CONST) ? opline->op1.literal : NULL) TSRMLS_CC);
    5537             : 
    5538             :         } else {
    5539             :                 target_symbol_table = zend_get_target_symbol_table(opline->extended_value & ZEND_FETCH_TYPE_MASK TSRMLS_CC);
    5540             : /*
    5541             :                 if (!target_symbol_table) {
    5542             :                         CHECK_EXCEPTION();
    5543             :                         ZEND_VM_NEXT_OPCODE();
    5544             :                 }
    5545             : */
    5546             :                 if (IS_CONST == IS_CONST) {
    5547             :                         hash_value = Z_HASH_P(varname);
    5548             :                 } else {
    5549             :                         hash_value = str_hash(Z_STRVAL_P(varname), Z_STRLEN_P(varname));
    5550             :                 }
    5551             : 
    5552             :                 if (zend_hash_quick_find(target_symbol_table, Z_STRVAL_P(varname), Z_STRLEN_P(varname)+1, hash_value, (void **) &retval) == FAILURE) {
    5553             :                         switch (type) {
    5554             :                                 case BP_VAR_R:
    5555             :                                 case BP_VAR_UNSET:
    5556             :                                         zend_error(E_NOTICE,"Undefined variable: %s", Z_STRVAL_P(varname));
    5557             :                                         /* break missing intentionally */
    5558             :                                 case BP_VAR_IS:
    5559             :                                         retval = &EG(uninitialized_zval_ptr);
    5560             :                                         break;
    5561             :                                 case BP_VAR_RW:
    5562             :                                         zend_error(E_NOTICE,"Undefined variable: %s", Z_STRVAL_P(varname));
    5563             :                                         /* break missing intentionally */
    5564             :                                 case BP_VAR_W:
    5565             :                                         Z_ADDREF_P(&EG(uninitialized_zval));
    5566             :                                         zend_hash_quick_update(target_symbol_table, Z_STRVAL_P(varname), Z_STRLEN_P(varname)+1, hash_value, &EG(uninitialized_zval_ptr), sizeof(zval *), (void **) &retval);
    5567             :                                         break;
    5568             :                                 EMPTY_SWITCH_DEFAULT_CASE()
    5569             :                         }
    5570             :                 }
    5571             :                 switch (opline->extended_value & ZEND_FETCH_TYPE_MASK) {
    5572             :                         case ZEND_FETCH_GLOBAL:
    5573             :                                 if (IS_CONST != IS_TMP_VAR) {
    5574             : 
    5575             :                                 }
    5576             :                                 break;
    5577             :                         case ZEND_FETCH_LOCAL:
    5578             : 
    5579             :                                 break;
    5580             :                         case ZEND_FETCH_STATIC:
    5581             :                                 zval_update_constant(retval, 1 TSRMLS_CC);
    5582             :                                 break;
    5583             :                         case ZEND_FETCH_GLOBAL_LOCK:
    5584             :                                 if (IS_CONST == IS_VAR && !free_op1.var) {
    5585             :                                         PZVAL_LOCK(*EX_T(opline->op1.var).var.ptr_ptr);
    5586             :                                 }
    5587             :                                 break;
    5588             :                 }
    5589             :         }
    5590             : 
    5591             : 
    5592         729 :         if (IS_CONST != IS_CONST && varname == &tmp_varname) {
    5593             :                 zval_dtor(&tmp_varname);
    5594             :         }
    5595         729 :         if (opline->extended_value & ZEND_FETCH_MAKE_REF) {
    5596           0 :                 SEPARATE_ZVAL_TO_MAKE_IS_REF(retval);
    5597             :         }
    5598         729 :         PZVAL_LOCK(*retval);
    5599         729 :         switch (type) {
    5600             :                 case BP_VAR_R:
    5601             :                 case BP_VAR_IS:
    5602         539 :                         EX_T(opline->result.var).var.ptr = *retval;
    5603         539 :                         break;
    5604             :                 case BP_VAR_UNSET: {
    5605             :                         zend_free_op free_res;
    5606             : 
    5607           5 :                         PZVAL_UNLOCK(*retval, &free_res);
    5608           5 :                         if (retval != &EG(uninitialized_zval_ptr)) {
    5609          15 :                                 SEPARATE_ZVAL_IF_NOT_REF(retval);
    5610             :                         }
    5611           5 :                         PZVAL_LOCK(*retval);
    5612           5 :                         FREE_OP_VAR_PTR(free_res);
    5613             :                 }
    5614             :                 /* break missing intentionally */
    5615             :                 default:
    5616         190 :                         EX_T(opline->result.var).var.ptr_ptr = retval;
    5617             :                         break;
    5618             :         }
    5619             :         CHECK_EXCEPTION();
    5620         729 :         ZEND_VM_NEXT_OPCODE();
    5621             : }
    5622             : 
    5623         521 : static int ZEND_FASTCALL  ZEND_FETCH_R_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5624             : {
    5625         521 :         return zend_fetch_var_address_helper_SPEC_CONST_VAR(BP_VAR_R, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    5626             : }
    5627             : 
    5628         136 : static int ZEND_FASTCALL  ZEND_FETCH_W_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5629             : {
    5630         136 :         return zend_fetch_var_address_helper_SPEC_CONST_VAR(BP_VAR_W, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    5631             : }
    5632             : 
    5633          51 : static int ZEND_FASTCALL  ZEND_FETCH_RW_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5634             : {
    5635          51 :         return zend_fetch_var_address_helper_SPEC_CONST_VAR(BP_VAR_RW, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    5636             : }
    5637             : 
    5638           7 : static int ZEND_FASTCALL  ZEND_FETCH_FUNC_ARG_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5639             : {
    5640           7 :         USE_OPLINE
    5641             : 
    5642          14 :         return zend_fetch_var_address_helper_SPEC_CONST_VAR(zend_is_by_ref_func_arg_fetch(opline, EX(call) TSRMLS_CC) ? BP_VAR_W : BP_VAR_R, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    5643             : }
    5644             : 
    5645           6 : static int ZEND_FASTCALL  ZEND_FETCH_UNSET_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5646             : {
    5647           6 :         return zend_fetch_var_address_helper_SPEC_CONST_VAR(BP_VAR_UNSET, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    5648             : }
    5649             : 
    5650          13 : static int ZEND_FASTCALL  ZEND_FETCH_IS_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5651             : {
    5652          13 :         return zend_fetch_var_address_helper_SPEC_CONST_VAR(BP_VAR_IS, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    5653             : }
    5654             : 
    5655           0 : static int ZEND_FASTCALL  ZEND_FETCH_DIM_R_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5656             : {
    5657           0 :         USE_OPLINE
    5658             :         zend_free_op free_op2;
    5659             :         zval *container;
    5660             : 
    5661             :         SAVE_OPLINE();
    5662           0 :         container = opline->op1.zv;
    5663           0 :         zend_fetch_dimension_address_read(&EX_T(opline->result.var), container, _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC), IS_VAR, BP_VAR_R TSRMLS_CC);
    5664           0 :         zval_ptr_dtor_nogc(&free_op2.var);
    5665             :         if (IS_CONST != IS_VAR || !(opline->extended_value & ZEND_FETCH_ADD_LOCK)) {
    5666             : 
    5667             :         }
    5668             :         CHECK_EXCEPTION();
    5669           0 :         ZEND_VM_NEXT_OPCODE();
    5670             : }
    5671             : 
    5672           2 : static int ZEND_FASTCALL  ZEND_INIT_STATIC_METHOD_CALL_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5673             : {
    5674           2 :         USE_OPLINE
    5675             :         zval *function_name;
    5676             :         zend_class_entry *ce;
    5677           2 :         call_slot *call = EX(call_slots) + opline->result.num;
    5678             : 
    5679             :         SAVE_OPLINE();
    5680             : 
    5681             :         if (IS_CONST == IS_CONST) {
    5682             :                 /* no function found. try a static method in class */
    5683           2 :                 if (CACHED_PTR(opline->op1.literal->cache_slot)) {
    5684           0 :                         ce = CACHED_PTR(opline->op1.literal->cache_slot);
    5685             :                 } else {
    5686           2 :                         ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op1.zv), Z_STRLEN_P(opline->op1.zv), opline->op1.literal + 1, opline->extended_value TSRMLS_CC);
    5687           2 :                         if (UNEXPECTED(EG(exception) != NULL)) {
    5688           0 :                                 HANDLE_EXCEPTION();
    5689             :                         }
    5690           2 :                         if (UNEXPECTED(ce == NULL)) {
    5691           0 :                                 zend_error_noreturn(E_ERROR, "Class '%s' not found", Z_STRVAL_P(opline->op1.zv));
    5692             :                         }
    5693           2 :                         CACHE_PTR(opline->op1.literal->cache_slot, ce);
    5694             :                 }
    5695           2 :                 call->called_scope = ce;
    5696             :         } else {
    5697             :                 ce = EX_T(opline->op1.var).class_entry;
    5698             : 
    5699             :                 if (opline->extended_value == ZEND_FETCH_CLASS_PARENT || opline->extended_value == ZEND_FETCH_CLASS_SELF) {
    5700             :                         call->called_scope = EG(called_scope);
    5701             :                 } else {
    5702             :                         call->called_scope = ce;
    5703             :                 }
    5704             :         }
    5705             : 
    5706           2 :         if (IS_CONST == IS_CONST &&
    5707             :             IS_VAR == IS_CONST &&
    5708             :             CACHED_PTR(opline->op2.literal->cache_slot)) {
    5709             :                 call->fbc = CACHED_PTR(opline->op2.literal->cache_slot);
    5710           2 :         } else if (IS_CONST != IS_CONST &&
    5711             :                    IS_VAR == IS_CONST &&
    5712             :                    (call->fbc = CACHED_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, ce))) {
    5713             :                 /* do nothing */
    5714             :         } else if (IS_VAR != IS_UNUSED) {
    5715           2 :                 char *function_name_strval = NULL;
    5716           2 :                 int function_name_strlen = 0;
    5717             :                 zend_free_op free_op2;
    5718             : 
    5719           2 :                 if (IS_VAR == IS_CONST) {
    5720             :                         function_name_strval = Z_STRVAL_P(opline->op2.zv);
    5721             :                         function_name_strlen = Z_STRLEN_P(opline->op2.zv);
    5722             :                 } else {
    5723           4 :                         function_name = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
    5724             : 
    5725           2 :                         if (UNEXPECTED(Z_TYPE_P(function_name) != IS_STRING)) {
    5726           0 :                                 if (UNEXPECTED(EG(exception) != NULL)) {
    5727           0 :                                         HANDLE_EXCEPTION();
    5728             :                                 }
    5729           0 :                                 zend_error_noreturn(E_ERROR, "Function name must be a string");
    5730             :                         } else {
    5731           2 :                                 function_name_strval = Z_STRVAL_P(function_name);
    5732           2 :                                 function_name_strlen = Z_STRLEN_P(function_name);
    5733             :                         }
    5734             :                 }
    5735             : 
    5736           2 :                 if (function_name_strval) {
    5737           2 :                         if (ce->get_static_method) {
    5738           0 :                                 call->fbc = ce->get_static_method(ce, function_name_strval, function_name_strlen TSRMLS_CC);
    5739             :                         } else {
    5740           2 :                                 call->fbc = zend_std_get_static_method(ce, function_name_strval, function_name_strlen, ((IS_VAR == IS_CONST) ? (opline->op2.literal + 1) : NULL) TSRMLS_CC);
    5741             :                         }
    5742           2 :                         if (UNEXPECTED(call->fbc == NULL)) {
    5743           0 :                                 zend_error_noreturn(E_ERROR, "Call to undefined method %s::%s()", ce->name, function_name_strval);
    5744             :                         }
    5745           2 :                         if (IS_VAR == IS_CONST &&
    5746             :                             EXPECTED(call->fbc->type <= ZEND_USER_FUNCTION) &&
    5747             :                             EXPECTED((call->fbc->common.fn_flags & (ZEND_ACC_CALL_VIA_HANDLER|ZEND_ACC_NEVER_CACHE)) == 0)) {
    5748             :                                 if (IS_CONST == IS_CONST) {
    5749             :                                         CACHE_PTR(opline->op2.literal->cache_slot, call->fbc);
    5750             :                                 } else {
    5751             :                                         CACHE_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, ce, call->fbc);
    5752             :                                 }
    5753             :                         }
    5754             :                 }
    5755             :                 if (IS_VAR != IS_CONST) {
    5756           2 :                         zval_ptr_dtor_nogc(&free_op2.var);
    5757             :                 }
    5758             :         } else {
    5759             :                 if (UNEXPECTED(ce->constructor == NULL)) {
    5760             :                         zend_error_noreturn(E_ERROR, "Cannot call constructor");
    5761             :                 }
    5762             :                 if (EG(This) && Z_OBJCE_P(EG(This)) != ce->constructor->common.scope && (ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
    5763             :                         zend_error_noreturn(E_ERROR, "Cannot call private %s::__construct()", ce->name);
    5764             :                 }
    5765             :                 call->fbc = ce->constructor;
    5766             :         }
    5767             : 
    5768           2 :         if (call->fbc->common.fn_flags & ZEND_ACC_STATIC) {
    5769           1 :                 call->object = NULL;
    5770             :         } else {
    5771           1 :                 if (EG(This) &&
    5772           0 :                     Z_OBJ_HT_P(EG(This))->get_class_entry &&
    5773           0 :                     !instanceof_function(Z_OBJCE_P(EG(This)), ce TSRMLS_CC)) {
    5774             :                     /* We are calling method of the other (incompatible) class,
    5775             :                        but passing $this. This is done for compatibility with php-4. */
    5776           0 :                         if (call->fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
    5777           0 :                                 zend_error(E_DEPRECATED, "Non-static method %s::%s() should not be called statically, assuming $this from incompatible context", call->fbc->common.scope->name, call->fbc->common.function_name);
    5778             :                         } else {
    5779             :                                 /* An internal function assumes $this is present and won't check that. So PHP would crash by allowing the call. */
    5780           0 :                                 zend_error_noreturn(E_ERROR, "Non-static method %s::%s() cannot be called statically, assuming $this from incompatible context", call->fbc->common.scope->name, call->fbc->common.function_name);
    5781             :                         }
    5782             :                 }
    5783           1 :                 if ((call->object = EG(This))) {
    5784           0 :                         Z_ADDREF_P(call->object);
    5785           0 :                         call->called_scope = Z_OBJCE_P(call->object);
    5786             :                 }
    5787             :         }
    5788             : 
    5789           2 :         call->num_additional_args = 0;
    5790           2 :         call->is_ctor_call = 0;
    5791           2 :         EX(call) = call;
    5792             : 
    5793             :         CHECK_EXCEPTION();
    5794           2 :         ZEND_VM_NEXT_OPCODE();
    5795             : }
    5796             : 
    5797           0 : static int ZEND_FASTCALL  ZEND_CASE_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5798             : {
    5799           0 :         USE_OPLINE
    5800             :         zend_free_op free_op2;
    5801             : 
    5802             :         SAVE_OPLINE();
    5803           0 :         is_equal_function(&EX_T(opline->result.var).tmp_var,
    5804             :                                  opline->op1.zv,
    5805             :                                  _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    5806             : 
    5807           0 :         zval_ptr_dtor_nogc(&free_op2.var);
    5808             :         CHECK_EXCEPTION();
    5809           0 :         ZEND_VM_NEXT_OPCODE();
    5810             : }
    5811             : 
    5812          56 : static int ZEND_FASTCALL  ZEND_ADD_ARRAY_ELEMENT_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5813             : {
    5814          56 :         USE_OPLINE
    5815             : 
    5816             :         zval *expr_ptr;
    5817             : 
    5818             :         SAVE_OPLINE();
    5819          56 :         if ((IS_CONST == IS_VAR || IS_CONST == IS_CV) && opline->extended_value) {
    5820             :                 zval **expr_ptr_ptr = NULL;
    5821             : 
    5822             :                 if (IS_CONST == IS_VAR && UNEXPECTED(expr_ptr_ptr == NULL)) {
    5823             :                         zend_error_noreturn(E_ERROR, "Cannot create references to/from string offsets");
    5824             :                 }
    5825             :                 SEPARATE_ZVAL_TO_MAKE_IS_REF(expr_ptr_ptr);
    5826             :                 expr_ptr = *expr_ptr_ptr;
    5827             :                 Z_ADDREF_P(expr_ptr);
    5828             :         } else {
    5829          56 :                 expr_ptr=opline->op1.zv;
    5830          56 :                 if (0) { /* temporary variable */
    5831             :                         zval *new_expr;
    5832             : 
    5833             :                         ALLOC_ZVAL(new_expr);
    5834             :                         INIT_PZVAL_COPY(new_expr, expr_ptr);
    5835             :                         expr_ptr = new_expr;
    5836             :                 } else if (IS_CONST == IS_CONST || PZVAL_IS_REF(expr_ptr)) {
    5837             :                         zval *new_expr;
    5838             : 
    5839          56 :                         ALLOC_ZVAL(new_expr);
    5840          56 :                         INIT_PZVAL_COPY(new_expr, expr_ptr);
    5841          56 :                         expr_ptr = new_expr;
    5842          56 :                         zendi_zval_copy_ctor(*expr_ptr);
    5843             : 
    5844             :                 } else if (IS_CONST == IS_CV) {
    5845             :                         Z_ADDREF_P(expr_ptr);
    5846             :                 }
    5847             :         }
    5848             : 
    5849             :         if (IS_VAR != IS_UNUSED) {
    5850             :                 zend_free_op free_op2;
    5851         112 :                 zval *offset = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
    5852             :                 ulong hval;
    5853             : 
    5854          56 :                 switch (Z_TYPE_P(offset)) {
    5855             :                         case IS_DOUBLE:
    5856           0 :                                 hval = zend_dval_to_lval(Z_DVAL_P(offset));
    5857           0 :                                 goto num_index;
    5858             :                         case IS_LONG:
    5859             :                         case IS_BOOL:
    5860           0 :                                 hval = Z_LVAL_P(offset);
    5861             : num_index:
    5862           0 :                                 zend_hash_index_update(Z_ARRVAL(EX_T(opline->result.var).tmp_var), hval, &expr_ptr, sizeof(zval *), NULL);
    5863           0 :                                 break;
    5864             :                         case IS_STRING:
    5865           0 :                                 if (IS_VAR == IS_CONST) {
    5866             :                                         hval = Z_HASH_P(offset);
    5867             :                                 } else {
    5868           0 :                                         ZEND_HANDLE_NUMERIC_EX(Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, goto num_index);
    5869           0 :                                         hval = str_hash(Z_STRVAL_P(offset), Z_STRLEN_P(offset));
    5870             :                                 }
    5871           0 :                                 zend_hash_quick_update(Z_ARRVAL(EX_T(opline->result.var).tmp_var), Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, &expr_ptr, sizeof(zval *), NULL);
    5872           0 :                                 break;
    5873             :                         case IS_NULL:
    5874          45 :                                 zend_hash_update(Z_ARRVAL(EX_T(opline->result.var).tmp_var), "", sizeof(""), &expr_ptr, sizeof(zval *), NULL);
    5875          45 :                                 break;
    5876             :                         default:
    5877          11 :                                 zend_error(E_WARNING, "Illegal offset type");
    5878          11 :                                 zval_ptr_dtor(&expr_ptr);
    5879             :                                 /* do nothing */
    5880             :                                 break;
    5881             :                 }
    5882          56 :                 zval_ptr_dtor_nogc(&free_op2.var);
    5883             :         } else {
    5884             :                 zend_hash_next_index_insert(Z_ARRVAL(EX_T(opline->result.var).tmp_var), &expr_ptr, sizeof(zval *), NULL);
    5885             :         }
    5886             :         if ((IS_CONST == IS_VAR || IS_CONST == IS_CV) && opline->extended_value) {
    5887             : 
    5888             :         }
    5889             :         CHECK_EXCEPTION();
    5890          56 :         ZEND_VM_NEXT_OPCODE();
    5891             : }
    5892             : 
    5893          38 : static int ZEND_FASTCALL  ZEND_INIT_ARRAY_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5894             : {
    5895          38 :         USE_OPLINE
    5896             : 
    5897          38 :         array_init(&EX_T(opline->result.var).tmp_var);
    5898          38 :         if (IS_CONST == IS_UNUSED) {
    5899             :                 ZEND_VM_NEXT_OPCODE();
    5900             : #if 0 || IS_CONST != IS_UNUSED
    5901             :         } else {
    5902          38 :                 return ZEND_ADD_ARRAY_ELEMENT_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    5903             : #endif
    5904             :         }
    5905             : }
    5906             : 
    5907           0 : static int ZEND_FASTCALL  ZEND_UNSET_VAR_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5908             : {
    5909           0 :         USE_OPLINE
    5910             :         zval tmp, *varname;
    5911             :         HashTable *target_symbol_table;
    5912             : 
    5913             : 
    5914             :         SAVE_OPLINE();
    5915           0 :         if (IS_CONST == IS_CV &&
    5916             :             IS_VAR == IS_UNUSED &&
    5917             :             (opline->extended_value & ZEND_QUICK_SET)) {
    5918             :                 if (EG(active_symbol_table)) {
    5919             :                         zend_compiled_variable *cv = &CV_DEF_OF(opline->op1.var);
    5920             : 
    5921             :                         zend_delete_variable(EX(prev_execute_data), EG(active_symbol_table),  cv->name, cv->name_len+1, cv->hash_value TSRMLS_CC);
    5922             :                         EX_CV(opline->op1.var) = NULL;
    5923             :                 } else if (EX_CV(opline->op1.var)) {
    5924             :                         zval_ptr_dtor(EX_CV(opline->op1.var));
    5925             :                         EX_CV(opline->op1.var) = NULL;
    5926             :                 }
    5927             :                 CHECK_EXCEPTION();
    5928             :                 ZEND_VM_NEXT_OPCODE();
    5929             :         }
    5930             : 
    5931           0 :         varname = opline->op1.zv;
    5932             : 
    5933           0 :         if (IS_CONST != IS_CONST && Z_TYPE_P(varname) != IS_STRING) {
    5934             :                 ZVAL_COPY_VALUE(&tmp, varname);
    5935             :                 zval_copy_ctor(&tmp);
    5936             :                 convert_to_string(&tmp);
    5937             :                 varname = &tmp;
    5938           0 :         } else if (IS_CONST == IS_VAR || IS_CONST == IS_CV) {
    5939             :                 Z_ADDREF_P(varname);
    5940             :         }
    5941             : 
    5942             :         if (IS_VAR != IS_UNUSED) {
    5943             :                 zend_class_entry *ce;
    5944             : 
    5945           0 :                 if (IS_VAR == IS_CONST) {
    5946             :                         if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    5947             :                                 ce = CACHED_PTR(opline->op2.literal->cache_slot);
    5948             :                         } else {
    5949             :                                 ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.literal + 1, 0 TSRMLS_CC);
    5950             :                                 if (UNEXPECTED(EG(exception) != NULL)) {
    5951             :                                         if (IS_CONST != IS_CONST && varname == &tmp) {
    5952             :                                                 zval_dtor(&tmp);
    5953             :                                         } else if (IS_CONST == IS_VAR || IS_CONST == IS_CV) {
    5954             :                                                 zval_ptr_dtor(&varname);
    5955             :                                         }
    5956             : 
    5957             :                                         HANDLE_EXCEPTION();
    5958             :                                 }
    5959             :                                 if (UNEXPECTED(ce == NULL)) {
    5960             :                                         zend_error_noreturn(E_ERROR, "Class '%s' not found", Z_STRVAL_P(opline->op2.zv));
    5961             :                                 }
    5962             :                                 CACHE_PTR(opline->op2.literal->cache_slot, ce);
    5963             :                         }
    5964             :                 } else {
    5965           0 :                         ce = EX_T(opline->op2.var).class_entry;
    5966             :                 }
    5967           0 :                 zend_std_unset_static_property(ce, Z_STRVAL_P(varname), Z_STRLEN_P(varname), ((IS_CONST == IS_CONST) ? opline->op1.literal : NULL) TSRMLS_CC);
    5968             :         } else {
    5969             :                 ulong hash_value = zend_inline_hash_func(varname->value.str.val, varname->value.str.len+1);
    5970             : 
    5971             :                 target_symbol_table = zend_get_target_symbol_table(opline->extended_value & ZEND_FETCH_TYPE_MASK TSRMLS_CC);
    5972             :                 zend_delete_variable(execute_data, target_symbol_table, varname->value.str.val, varname->value.str.len+1, hash_value TSRMLS_CC);
    5973             :         }
    5974             : 
    5975           0 :         if (IS_CONST != IS_CONST && varname == &tmp) {
    5976             :                 zval_dtor(&tmp);
    5977           0 :         } else if (IS_CONST == IS_VAR || IS_CONST == IS_CV) {
    5978             :                 zval_ptr_dtor(&varname);
    5979             :         }
    5980             : 
    5981             :         CHECK_EXCEPTION();
    5982           0 :         ZEND_VM_NEXT_OPCODE();
    5983             : }
    5984             : 
    5985         146 : static int ZEND_FASTCALL  ZEND_ISSET_ISEMPTY_VAR_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    5986             : {
    5987         146 :         USE_OPLINE
    5988             :         zval **value;
    5989         146 :         zend_bool isset = 1;
    5990             : 
    5991             :         SAVE_OPLINE();
    5992         146 :         if (IS_CONST == IS_CV &&
    5993             :             IS_VAR == IS_UNUSED &&
    5994             :             (opline->extended_value & ZEND_QUICK_SET)) {
    5995             :                 if (EX_CV(opline->op1.var)) {
    5996             :                         value = EX_CV(opline->op1.var);
    5997             :                 } else if (EG(active_symbol_table)) {
    5998             :                         zend_compiled_variable *cv = &CV_DEF_OF(opline->op1.var);
    5999             : 
    6000             :                         if (zend_hash_quick_find(EG(active_symbol_table), cv->name, cv->name_len+1, cv->hash_value, (void **) &value) == FAILURE) {
    6001             :                                 isset = 0;
    6002             :                         }
    6003             :                 } else {
    6004             :                         isset = 0;
    6005             :                 }
    6006             :         } else {
    6007             :                 HashTable *target_symbol_table;
    6008             : 
    6009         146 :                 zval tmp, *varname = opline->op1.zv;
    6010             : 
    6011         146 :                 if (IS_CONST != IS_CONST && Z_TYPE_P(varname) != IS_STRING) {
    6012             :                         ZVAL_COPY_VALUE(&tmp, varname);
    6013             :                         zval_copy_ctor(&tmp);
    6014             :                         convert_to_string(&tmp);
    6015             :                         varname = &tmp;
    6016             :                 }
    6017             : 
    6018             :                 if (IS_VAR != IS_UNUSED) {
    6019             :                         zend_class_entry *ce;
    6020             : 
    6021         146 :                         if (IS_VAR == IS_CONST) {
    6022             :                                 if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    6023             :                                         ce = CACHED_PTR(opline->op2.literal->cache_slot);
    6024             :                                 } else {
    6025             :                                         ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.literal + 1, 0 TSRMLS_CC);
    6026             :                                         if (UNEXPECTED(ce == NULL)) {
    6027             :                                                 CHECK_EXCEPTION();
    6028             :                                                 ZEND_VM_NEXT_OPCODE();
    6029             :                                         }
    6030             :                                         CACHE_PTR(opline->op2.literal->cache_slot, ce);
    6031             :                                 }
    6032             :                         } else {
    6033         146 :                                 ce = EX_T(opline->op2.var).class_entry;
    6034             :                         }
    6035         146 :                         value = zend_std_get_static_property(ce, Z_STRVAL_P(varname), Z_STRLEN_P(varname), 1, ((IS_CONST == IS_CONST) ? opline->op1.literal : NULL) TSRMLS_CC);
    6036         146 :                         if (!value) {
    6037           0 :                                 isset = 0;
    6038             :                         }
    6039             :                 } else {
    6040             :                         target_symbol_table = zend_get_target_symbol_table(opline->extended_value & ZEND_FETCH_TYPE_MASK TSRMLS_CC);
    6041             :                         if (zend_hash_find(target_symbol_table, varname->value.str.val, varname->value.str.len+1, (void **) &value) == FAILURE) {
    6042             :                                 isset = 0;
    6043             :                         }
    6044             :                 }
    6045             : 
    6046         146 :                 if (IS_CONST != IS_CONST && varname == &tmp) {
    6047             :                         zval_dtor(&tmp);
    6048             :                 }
    6049             : 
    6050             :         }
    6051             : 
    6052         146 :         if (opline->extended_value & ZEND_ISSET) {
    6053         195 :                 if (isset && Z_TYPE_PP(value) != IS_NULL) {
    6054          49 :                         ZVAL_BOOL(&EX_T(opline->result.var).tmp_var, 1);
    6055             :                 } else {
    6056          97 :                         ZVAL_BOOL(&EX_T(opline->result.var).tmp_var, 0);
    6057             :                 }
    6058             :         } else /* if (opline->extended_value & ZEND_ISEMPTY) */ {
    6059           0 :                 if (!isset || !i_zend_is_true(*value TSRMLS_CC)) {
    6060           0 :                         ZVAL_BOOL(&EX_T(opline->result.var).tmp_var, 1);
    6061             :                 } else {
    6062           0 :                         ZVAL_BOOL(&EX_T(opline->result.var).tmp_var, 0);
    6063             :                 }
    6064             :         }
    6065             : 
    6066             :         CHECK_EXCEPTION();
    6067         146 :         ZEND_VM_NEXT_OPCODE();
    6068             : }
    6069             : 
    6070           1 : static int ZEND_FASTCALL  ZEND_YIELD_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    6071             : {
    6072           1 :         USE_OPLINE
    6073             : 
    6074             :         /* The generator object is stored in return_value_ptr_ptr */
    6075           1 :         zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr);
    6076             : 
    6077           1 :         if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
    6078           0 :                 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
    6079             :         }
    6080             : 
    6081             :         /* Destroy the previously yielded value */
    6082           1 :         if (generator->value) {
    6083           1 :                 zval_ptr_dtor(&generator->value);
    6084             :         }
    6085             : 
    6086             :         /* Destroy the previously yielded key */
    6087           1 :         if (generator->key) {
    6088           1 :                 zval_ptr_dtor(&generator->key);
    6089             :         }
    6090             : 
    6091             :         /* Set the new yielded value */
    6092             :         if (IS_CONST != IS_UNUSED) {
    6093             : 
    6094             : 
    6095           1 :                 if (EX(op_array)->fn_flags & ZEND_ACC_RETURN_REFERENCE) {
    6096             :                         /* Constants and temporary variables aren't yieldable by reference,
    6097             :                          * but we still allow them with a notice. */
    6098             :                         if (IS_CONST == IS_CONST || IS_CONST == IS_TMP_VAR) {
    6099             :                                 zval *value, *copy;
    6100             : 
    6101           0 :                                 zend_error(E_NOTICE, "Only variable references should be yielded by reference");
    6102             : 
    6103           0 :                                 value = opline->op1.zv;
    6104           0 :                                 ALLOC_ZVAL(copy);
    6105           0 :                                 INIT_PZVAL_COPY(copy, value);
    6106             : 
    6107             :                                 /* Temporary variables don't need ctor copying */
    6108             :                                 if (!0) {
    6109             :                                         zval_copy_ctor(copy);
    6110             :                                 }
    6111             : 
    6112           0 :                                 generator->value = copy;
    6113             :                         } else {
    6114             :                                 zval **value_ptr = NULL;
    6115             : 
    6116             :                                 if (IS_CONST == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
    6117             :                                         zend_error_noreturn(E_ERROR, "Cannot yield string offsets by reference");
    6118             :                                 }
    6119             : 
    6120             :                                 /* If a function call result is yielded and the function did
    6121             :                                  * not return by reference we throw a notice. */
    6122             :                                 if (IS_CONST == IS_VAR && !Z_ISREF_PP(value_ptr)
    6123             :                                     && !(opline->extended_value == ZEND_RETURNS_FUNCTION
    6124             :                                          && EX_T(opline->op1.var).var.fcall_returned_reference)
    6125             :                                     && EX_T(opline->op1.var).var.ptr_ptr == &EX_T(opline->op1.var).var.ptr) {
    6126             :                                         zend_error(E_NOTICE, "Only variable references should be yielded by reference");
    6127             : 
    6128             :                                         Z_ADDREF_PP(value_ptr);
    6129             :                                         generator->value = *value_ptr;
    6130             :                                 } else {
    6131             :                                         SEPARATE_ZVAL_TO_MAKE_IS_REF(value_ptr);
    6132             :                                         Z_ADDREF_PP(value_ptr);
    6133             :                                         generator->value = *value_ptr;
    6134             :                                 }
    6135             : 
    6136             :                         }
    6137             :                 } else {
    6138           1 :                         zval *value = opline->op1.zv;
    6139             : 
    6140             :                         /* Consts, temporary variables and references need copying */
    6141             :                         if (IS_CONST == IS_CONST || IS_CONST == IS_TMP_VAR
    6142             :                                 || PZVAL_IS_REF(value)
    6143             :                         ) {
    6144             :                                 zval *copy;
    6145             : 
    6146           1 :                                 ALLOC_ZVAL(copy);
    6147           1 :                                 INIT_PZVAL_COPY(copy, value);
    6148             : 
    6149             :                                 /* Temporary variables don't need ctor copying */
    6150             :                                 if (!0) {
    6151             :                                         zval_copy_ctor(copy);
    6152             :                                 }
    6153             : 
    6154           1 :                                 generator->value = copy;
    6155             : 
    6156             :                         } else {
    6157             :                                 if (IS_CONST == IS_CV) {
    6158             :                                         Z_ADDREF_P(value);
    6159             :                                 }
    6160             :                                 generator->value = value;
    6161             :                         }
    6162             :                 }
    6163             :         } else {
    6164             :                 /* If no value was specified yield null */
    6165             :                 Z_ADDREF(EG(uninitialized_zval));
    6166             :                 generator->value = &EG(uninitialized_zval);
    6167             :         }
    6168             : 
    6169             :         /* Set the new yielded key */
    6170             :         if (IS_VAR != IS_UNUSED) {
    6171             :                 zend_free_op free_op2;
    6172           2 :                 zval *key = _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC);
    6173             : 
    6174             :                 /* Consts, temporary variables and references need copying */
    6175           1 :                 if (IS_VAR == IS_CONST || IS_VAR == IS_TMP_VAR
    6176             :                         || (PZVAL_IS_REF(key) && Z_REFCOUNT_P(key) > 0)
    6177             :                 ) {
    6178             :                         zval *copy;
    6179             : 
    6180           0 :                         ALLOC_ZVAL(copy);
    6181           0 :                         INIT_PZVAL_COPY(copy, key);
    6182             : 
    6183             :                         /* Temporary variables don't need ctor copying */
    6184             :                         if (!0) {
    6185             :                                 zval_copy_ctor(copy);
    6186             :                         }
    6187             : 
    6188           0 :                         generator->key = copy;
    6189             :                 } else {
    6190             :                         Z_ADDREF_P(key);
    6191           1 :                         generator->key = key;
    6192             :                 }
    6193             : 
    6194           2 :                 if (Z_TYPE_P(generator->key) == IS_LONG
    6195           1 :                     && Z_LVAL_P(generator->key) > generator->largest_used_integer_key
    6196             :                 ) {
    6197           0 :                         generator->largest_used_integer_key = Z_LVAL_P(generator->key);
    6198             :                 }
    6199             : 
    6200           1 :                 zval_ptr_dtor_nogc(&free_op2.var);
    6201             :         } else {
    6202             :                 /* If no key was specified we use auto-increment keys */
    6203             :                 generator->largest_used_integer_key++;
    6204             : 
    6205             :                 ALLOC_INIT_ZVAL(generator->key);
    6206             :                 ZVAL_LONG(generator->key, generator->largest_used_integer_key);
    6207             :         }
    6208             : 
    6209           1 :         if (RETURN_VALUE_USED(opline)) {
    6210             :                 /* If the return value of yield is used set the send
    6211             :                  * target and initialize it to NULL */
    6212           0 :                 generator->send_target = &EX_T(opline->result.var).var.ptr;
    6213             :                 Z_ADDREF(EG(uninitialized_zval));
    6214           0 :                 EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
    6215             :         } else {
    6216           1 :                 generator->send_target = NULL;
    6217             :         }
    6218             : 
    6219             :         /* We increment to the next op, so we are at the correct position when the
    6220             :          * generator is resumed. */
    6221           1 :         ZEND_VM_INC_OPCODE();
    6222             : 
    6223             :         /* The GOTO VM uses a local opline variable. We need to set the opline
    6224             :          * variable in execute_data so we don't resume at an old position. */
    6225             :         SAVE_OPLINE();
    6226             : 
    6227           1 :         ZEND_VM_RETURN();
    6228             : }
    6229             : 
    6230           0 : static int ZEND_FASTCALL  ZEND_POW_SPEC_CONST_VAR_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    6231             : {
    6232           0 :         USE_OPLINE
    6233             :         zend_free_op free_op2;
    6234             : 
    6235             :         SAVE_OPLINE();
    6236           0 :         pow_function(&EX_T(opline->result.var).tmp_var,
    6237             :                 opline->op1.zv,
    6238             :                 _get_zval_ptr_var(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    6239             : 
    6240           0 :         zval_ptr_dtor_nogc(&free_op2.var);
    6241             :         CHECK_EXCEPTION();
    6242           0 :         ZEND_VM_NEXT_OPCODE();
    6243             : }
    6244             : 
    6245     2153197 : static int ZEND_FASTCALL zend_fetch_var_address_helper_SPEC_CONST_UNUSED(int type, ZEND_OPCODE_HANDLER_ARGS)
    6246             : {
    6247     2153197 :         USE_OPLINE
    6248             :         zend_free_op free_op1;
    6249             :         zval *varname;
    6250             :         zval **retval;
    6251             :         zval tmp_varname;
    6252             :         HashTable *target_symbol_table;
    6253             :         ulong hash_value;
    6254             : 
    6255             :         SAVE_OPLINE();
    6256     2153197 :         varname = opline->op1.zv;
    6257             : 
    6258     2153197 :         if (IS_CONST != IS_CONST && UNEXPECTED(Z_TYPE_P(varname) != IS_STRING)) {
    6259             :                 ZVAL_COPY_VALUE(&tmp_varname, varname);
    6260             :                 zval_copy_ctor(&tmp_varname);
    6261             :                 Z_SET_REFCOUNT(tmp_varname, 1);
    6262             :                 Z_UNSET_ISREF(tmp_varname);
    6263             :                 convert_to_string(&tmp_varname);
    6264             :                 varname = &tmp_varname;
    6265             :         }
    6266             : 
    6267     2153197 :         if (IS_UNUSED != IS_UNUSED) {
    6268             :                 zend_class_entry *ce;
    6269             : 
    6270             :                 if (IS_UNUSED == IS_CONST) {
    6271             :                         if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    6272             :                                 ce = CACHED_PTR(opline->op2.literal->cache_slot);
    6273             :                         } else {
    6274             :                                 ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.literal + 1, 0 TSRMLS_CC);
    6275             :                                 if (UNEXPECTED(ce == NULL)) {
    6276             :                                         if (IS_CONST != IS_CONST && varname == &tmp_varname) {
    6277             :                                                 zval_dtor(&tmp_varname);
    6278             :                                         }
    6279             : 
    6280             :                                         CHECK_EXCEPTION();
    6281             :                                         ZEND_VM_NEXT_OPCODE();
    6282             :                                 }
    6283             :                                 CACHE_PTR(opline->op2.literal->cache_slot, ce);
    6284             :                         }
    6285             :                 } else {
    6286             :                         ce = EX_T(opline->op2.var).class_entry;
    6287             :                 }
    6288             :                 retval = zend_std_get_static_property(ce, Z_STRVAL_P(varname), Z_STRLEN_P(varname), 0, ((IS_CONST == IS_CONST) ? opline->op1.literal : NULL) TSRMLS_CC);
    6289             : 
    6290             :         } else {
    6291     2153197 :                 target_symbol_table = zend_get_target_symbol_table(opline->extended_value & ZEND_FETCH_TYPE_MASK TSRMLS_CC);
    6292             : /*
    6293             :                 if (!target_symbol_table) {
    6294             :                         CHECK_EXCEPTION();
    6295             :                         ZEND_VM_NEXT_OPCODE();
    6296             :                 }
    6297             : */
    6298             :                 if (IS_CONST == IS_CONST) {
    6299     2153197 :                         hash_value = Z_HASH_P(varname);
    6300             :                 } else {
    6301             :                         hash_value = str_hash(Z_STRVAL_P(varname), Z_STRLEN_P(varname));
    6302             :                 }
    6303             : 
    6304     2153197 :                 if (zend_hash_quick_find(target_symbol_table, Z_STRVAL_P(varname), Z_STRLEN_P(varname)+1, hash_value, (void **) &retval) == FAILURE) {
    6305        1821 :                         switch (type) {
    6306             :                                 case BP_VAR_R:
    6307             :                                 case BP_VAR_UNSET:
    6308        1534 :                                         zend_error(E_NOTICE,"Undefined variable: %s", Z_STRVAL_P(varname));
    6309             :                                         /* break missing intentionally */
    6310             :                                 case BP_VAR_IS:
    6311        1534 :                                         retval = &EG(uninitialized_zval_ptr);
    6312        1534 :                                         break;
    6313             :                                 case BP_VAR_RW:
    6314           0 :                                         zend_error(E_NOTICE,"Undefined variable: %s", Z_STRVAL_P(varname));
    6315             :                                         /* break missing intentionally */
    6316             :                                 case BP_VAR_W:
    6317             :                                         Z_ADDREF_P(&EG(uninitialized_zval));
    6318         287 :                                         zend_hash_quick_update(target_symbol_table, Z_STRVAL_P(varname), Z_STRLEN_P(varname)+1, hash_value, &EG(uninitialized_zval_ptr), sizeof(zval *), (void **) &retval);
    6319             :                                         break;
    6320             :                                 EMPTY_SWITCH_DEFAULT_CASE()
    6321             :                         }
    6322             :                 }
    6323     2153197 :                 switch (opline->extended_value & ZEND_FETCH_TYPE_MASK) {
    6324             :                         case ZEND_FETCH_GLOBAL:
    6325             :                                 if (IS_CONST != IS_TMP_VAR) {
    6326             : 
    6327             :                                 }
    6328       13543 :                                 break;
    6329             :                         case ZEND_FETCH_LOCAL:
    6330             : 
    6331     1318189 :                                 break;
    6332             :                         case ZEND_FETCH_STATIC:
    6333        1538 :                                 zval_update_constant(retval, 1 TSRMLS_CC);
    6334        1538 :                                 break;
    6335             :                         case ZEND_FETCH_GLOBAL_LOCK:
    6336      819927 :                                 if (IS_CONST == IS_VAR && !free_op1.var) {
    6337             :                                         PZVAL_LOCK(*EX_T(opline->op1.var).var.ptr_ptr);
    6338             :                                 }
    6339             :                                 break;
    6340             :                 }
    6341             :         }
    6342             : 
    6343             : 
    6344     2153197 :         if (IS_CONST != IS_CONST && varname == &tmp_varname) {
    6345             :                 zval_dtor(&tmp_varname);
    6346             :         }
    6347     2153197 :         if (opline->extended_value & ZEND_FETCH_MAKE_REF) {
    6348           8 :                 SEPARATE_ZVAL_TO_MAKE_IS_REF(retval);
    6349             :         }
    6350     2153197 :         PZVAL_LOCK(*retval);
    6351     2153197 :         switch (type) {
    6352             :                 case BP_VAR_R:
    6353             :                 case BP_VAR_IS:
    6354      473809 :                         EX_T(opline->result.var).var.ptr = *retval;
    6355      473809 :                         break;
    6356             :                 case BP_VAR_UNSET: {
    6357             :                         zend_free_op free_res;
    6358             : 
    6359          30 :                         PZVAL_UNLOCK(*retval, &free_res);
    6360          30 :                         if (retval != &EG(uninitialized_zval_ptr)) {
    6361          90 :                                 SEPARATE_ZVAL_IF_NOT_REF(retval);
    6362             :                         }
    6363          30 :                         PZVAL_LOCK(*retval);
    6364          30 :                         FREE_OP_VAR_PTR(free_res);
    6365             :                 }
    6366             :                 /* break missing intentionally */
    6367             :                 default:
    6368     1679388 :                         EX_T(opline->result.var).var.ptr_ptr = retval;
    6369             :                         break;
    6370             :         }
    6371             :         CHECK_EXCEPTION();
    6372     2153197 :         ZEND_VM_NEXT_OPCODE();
    6373             : }
    6374             : 
    6375      473789 : static int ZEND_FASTCALL  ZEND_FETCH_R_SPEC_CONST_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    6376             : {
    6377      473789 :         return zend_fetch_var_address_helper_SPEC_CONST_UNUSED(BP_VAR_R, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    6378             : }
    6379             : 
    6380     1679353 : static int ZEND_FASTCALL  ZEND_FETCH_W_SPEC_CONST_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    6381             : {
    6382     1679353 :         return zend_fetch_var_address_helper_SPEC_CONST_UNUSED(BP_VAR_W, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    6383             : }
    6384             : 
    6385           5 : static int ZEND_FASTCALL  ZEND_FETCH_RW_SPEC_CONST_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    6386             : {
    6387           5 :         return zend_fetch_var_address_helper_SPEC_CONST_UNUSED(BP_VAR_RW, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    6388             : }
    6389             : 
    6390           4 : static int ZEND_FASTCALL  ZEND_FETCH_FUNC_ARG_SPEC_CONST_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    6391             : {
    6392           4 :         USE_OPLINE
    6393             : 
    6394           8 :         return zend_fetch_var_address_helper_SPEC_CONST_UNUSED(zend_is_by_ref_func_arg_fetch(opline, EX(call) TSRMLS_CC) ? BP_VAR_W : BP_VAR_R, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    6395             : }
    6396             : 
    6397          30 : static int ZEND_FASTCALL  ZEND_FETCH_UNSET_SPEC_CONST_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    6398             : {
    6399          30 :         return zend_fetch_var_address_helper_SPEC_CONST_UNUSED(BP_VAR_UNSET, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    6400             : }
    6401             : 
    6402          16 : static int ZEND_FASTCALL  ZEND_FETCH_IS_SPEC_CONST_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    6403             : {
    6404          16 :         return zend_fetch_var_address_helper_SPEC_CONST_UNUSED(BP_VAR_IS, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    6405             : }
    6406             : 
    6407           2 : static int ZEND_FASTCALL  ZEND_INIT_STATIC_METHOD_CALL_SPEC_CONST_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    6408             : {
    6409           2 :         USE_OPLINE
    6410             :         zval *function_name;
    6411             :         zend_class_entry *ce;
    6412           2 :         call_slot *call = EX(call_slots) + opline->result.num;
    6413             : 
    6414             :         SAVE_OPLINE();
    6415             : 
    6416             :         if (IS_CONST == IS_CONST) {
    6417             :                 /* no function found. try a static method in class */
    6418           2 :                 if (CACHED_PTR(opline->op1.literal->cache_slot)) {
    6419           0 :                         ce = CACHED_PTR(opline->op1.literal->cache_slot);
    6420             :                 } else {
    6421           2 :                         ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op1.zv), Z_STRLEN_P(opline->op1.zv), opline->op1.literal + 1, opline->extended_value TSRMLS_CC);
    6422           2 :                         if (UNEXPECTED(EG(exception) != NULL)) {
    6423           0 :                                 HANDLE_EXCEPTION();
    6424             :                         }
    6425           2 :                         if (UNEXPECTED(ce == NULL)) {
    6426           0 :                                 zend_error_noreturn(E_ERROR, "Class '%s' not found", Z_STRVAL_P(opline->op1.zv));
    6427             :                         }
    6428           2 :                         CACHE_PTR(opline->op1.literal->cache_slot, ce);
    6429             :                 }
    6430           2 :                 call->called_scope = ce;
    6431             :         } else {
    6432             :                 ce = EX_T(opline->op1.var).class_entry;
    6433             : 
    6434             :                 if (opline->extended_value == ZEND_FETCH_CLASS_PARENT || opline->extended_value == ZEND_FETCH_CLASS_SELF) {
    6435             :                         call->called_scope = EG(called_scope);
    6436             :                 } else {
    6437             :                         call->called_scope = ce;
    6438             :                 }
    6439             :         }
    6440             : 
    6441           2 :         if (IS_CONST == IS_CONST &&
    6442             :             IS_UNUSED == IS_CONST &&
    6443             :             CACHED_PTR(opline->op2.literal->cache_slot)) {
    6444             :                 call->fbc = CACHED_PTR(opline->op2.literal->cache_slot);
    6445           2 :         } else if (IS_CONST != IS_CONST &&
    6446             :                    IS_UNUSED == IS_CONST &&
    6447             :                    (call->fbc = CACHED_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, ce))) {
    6448             :                 /* do nothing */
    6449           2 :         } else if (IS_UNUSED != IS_UNUSED) {
    6450             :                 char *function_name_strval = NULL;
    6451             :                 int function_name_strlen = 0;
    6452             : 
    6453             : 
    6454             :                 if (IS_UNUSED == IS_CONST) {
    6455             :                         function_name_strval = Z_STRVAL_P(opline->op2.zv);
    6456             :                         function_name_strlen = Z_STRLEN_P(opline->op2.zv);
    6457             :                 } else {
    6458             :                         function_name = NULL;
    6459             : 
    6460             :                         if (UNEXPECTED(Z_TYPE_P(function_name) != IS_STRING)) {
    6461             :                                 if (UNEXPECTED(EG(exception) != NULL)) {
    6462             :                                         HANDLE_EXCEPTION();
    6463             :                                 }
    6464             :                                 zend_error_noreturn(E_ERROR, "Function name must be a string");
    6465             :                         } else {
    6466             :                                 function_name_strval = Z_STRVAL_P(function_name);
    6467             :                                 function_name_strlen = Z_STRLEN_P(function_name);
    6468             :                         }
    6469             :                 }
    6470             : 
    6471             :                 if (function_name_strval) {
    6472             :                         if (ce->get_static_method) {
    6473             :                                 call->fbc = ce->get_static_method(ce, function_name_strval, function_name_strlen TSRMLS_CC);
    6474             :                         } else {
    6475             :                                 call->fbc = zend_std_get_static_method(ce, function_name_strval, function_name_strlen, ((IS_UNUSED == IS_CONST) ? (opline->op2.literal + 1) : NULL) TSRMLS_CC);
    6476             :                         }
    6477             :                         if (UNEXPECTED(call->fbc == NULL)) {
    6478             :                                 zend_error_noreturn(E_ERROR, "Call to undefined method %s::%s()", ce->name, function_name_strval);
    6479             :                         }
    6480             :                         if (IS_UNUSED == IS_CONST &&
    6481             :                             EXPECTED(call->fbc->type <= ZEND_USER_FUNCTION) &&
    6482             :                             EXPECTED((call->fbc->common.fn_flags & (ZEND_ACC_CALL_VIA_HANDLER|ZEND_ACC_NEVER_CACHE)) == 0)) {
    6483             :                                 if (IS_CONST == IS_CONST) {
    6484             :                                         CACHE_PTR(opline->op2.literal->cache_slot, call->fbc);
    6485             :                                 } else {
    6486             :                                         CACHE_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, ce, call->fbc);
    6487             :                                 }
    6488             :                         }
    6489             :                 }
    6490             :                 if (IS_UNUSED != IS_CONST) {
    6491             : 
    6492             :                 }
    6493             :         } else {
    6494           2 :                 if (UNEXPECTED(ce->constructor == NULL)) {
    6495           1 :                         zend_error_noreturn(E_ERROR, "Cannot call constructor");
    6496             :                 }
    6497           1 :                 if (EG(This) && Z_OBJCE_P(EG(This)) != ce->constructor->common.scope && (ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
    6498           0 :                         zend_error_noreturn(E_ERROR, "Cannot call private %s::__construct()", ce->name);
    6499             :                 }
    6500           1 :                 call->fbc = ce->constructor;
    6501             :         }
    6502             : 
    6503           1 :         if (call->fbc->common.fn_flags & ZEND_ACC_STATIC) {
    6504           0 :                 call->object = NULL;
    6505             :         } else {
    6506           3 :                 if (EG(This) &&
    6507           1 :                     Z_OBJ_HT_P(EG(This))->get_class_entry &&
    6508           1 :                     !instanceof_function(Z_OBJCE_P(EG(This)), ce TSRMLS_CC)) {
    6509             :                     /* We are calling method of the other (incompatible) class,
    6510             :                        but passing $this. This is done for compatibility with php-4. */
    6511           0 :                         if (call->fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
    6512           0 :                                 zend_error(E_DEPRECATED, "Non-static method %s::%s() should not be called statically, assuming $this from incompatible context", call->fbc->common.scope->name, call->fbc->common.function_name);
    6513             :                         } else {
    6514             :                                 /* An internal function assumes $this is present and won't check that. So PHP would crash by allowing the call. */
    6515           0 :                                 zend_error_noreturn(E_ERROR, "Non-static method %s::%s() cannot be called statically, assuming $this from incompatible context", call->fbc->common.scope->name, call->fbc->common.function_name);
    6516             :                         }
    6517             :                 }
    6518           1 :                 if ((call->object = EG(This))) {
    6519           1 :                         Z_ADDREF_P(call->object);
    6520           1 :                         call->called_scope = Z_OBJCE_P(call->object);
    6521             :                 }
    6522             :         }
    6523             : 
    6524           1 :         call->num_additional_args = 0;
    6525           1 :         call->is_ctor_call = 0;
    6526           1 :         EX(call) = call;
    6527             : 
    6528             :         CHECK_EXCEPTION();
    6529           1 :         ZEND_VM_NEXT_OPCODE();
    6530             : }
    6531             : 
    6532      407977 : static int ZEND_FASTCALL  ZEND_ADD_ARRAY_ELEMENT_SPEC_CONST_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    6533             : {
    6534      407977 :         USE_OPLINE
    6535             : 
    6536             :         zval *expr_ptr;
    6537             : 
    6538             :         SAVE_OPLINE();
    6539      407977 :         if ((IS_CONST == IS_VAR || IS_CONST == IS_CV) && opline->extended_value) {
    6540             :                 zval **expr_ptr_ptr = NULL;
    6541             : 
    6542             :                 if (IS_CONST == IS_VAR && UNEXPECTED(expr_ptr_ptr == NULL)) {
    6543             :                         zend_error_noreturn(E_ERROR, "Cannot create references to/from string offsets");
    6544             :                 }
    6545             :                 SEPARATE_ZVAL_TO_MAKE_IS_REF(expr_ptr_ptr);
    6546             :                 expr_ptr = *expr_ptr_ptr;
    6547             :                 Z_ADDREF_P(expr_ptr);
    6548             :         } else {
    6549      407977 :                 expr_ptr=opline->op1.zv;
    6550      407977 :                 if (0) { /* temporary variable */
    6551             :                         zval *new_expr;
    6552             : 
    6553             :                         ALLOC_ZVAL(new_expr);
    6554             :                         INIT_PZVAL_COPY(new_expr, expr_ptr);
    6555             :                         expr_ptr = new_expr;
    6556             :                 } else if (IS_CONST == IS_CONST || PZVAL_IS_REF(expr_ptr)) {
    6557             :                         zval *new_expr;
    6558             : 
    6559      407977 :                         ALLOC_ZVAL(new_expr);
    6560      407977 :                         INIT_PZVAL_COPY(new_expr, expr_ptr);
    6561      407977 :                         expr_ptr = new_expr;
    6562      407977 :                         zendi_zval_copy_ctor(*expr_ptr);
    6563             : 
    6564             :                 } else if (IS_CONST == IS_CV) {
    6565             :                         Z_ADDREF_P(expr_ptr);
    6566             :                 }
    6567             :         }
    6568             : 
    6569      407977 :         if (IS_UNUSED != IS_UNUSED) {
    6570             : 
    6571             :                 zval *offset = NULL;
    6572             :                 ulong hval;
    6573             : 
    6574             :                 switch (Z_TYPE_P(offset)) {
    6575             :                         case IS_DOUBLE:
    6576             :                                 hval = zend_dval_to_lval(Z_DVAL_P(offset));
    6577             :                                 goto num_index;
    6578             :                         case IS_LONG:
    6579             :                         case IS_BOOL:
    6580             :                                 hval = Z_LVAL_P(offset);
    6581             : num_index:
    6582             :                                 zend_hash_index_update(Z_ARRVAL(EX_T(opline->result.var).tmp_var), hval, &expr_ptr, sizeof(zval *), NULL);
    6583             :                                 break;
    6584             :                         case IS_STRING:
    6585             :                                 if (IS_UNUSED == IS_CONST) {
    6586             :                                         hval = Z_HASH_P(offset);
    6587             :                                 } else {
    6588             :                                         ZEND_HANDLE_NUMERIC_EX(Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, goto num_index);
    6589             :                                         hval = str_hash(Z_STRVAL_P(offset), Z_STRLEN_P(offset));
    6590             :                                 }
    6591             :                                 zend_hash_quick_update(Z_ARRVAL(EX_T(opline->result.var).tmp_var), Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, &expr_ptr, sizeof(zval *), NULL);
    6592             :                                 break;
    6593             :                         case IS_NULL:
    6594             :                                 zend_hash_update(Z_ARRVAL(EX_T(opline->result.var).tmp_var), "", sizeof(""), &expr_ptr, sizeof(zval *), NULL);
    6595             :                                 break;
    6596             :                         default:
    6597             :                                 zend_error(E_WARNING, "Illegal offset type");
    6598             :                                 zval_ptr_dtor(&expr_ptr);
    6599             :                                 /* do nothing */
    6600             :                                 break;
    6601             :                 }
    6602             : 
    6603             :         } else {
    6604      407977 :                 zend_hash_next_index_insert(Z_ARRVAL(EX_T(opline->result.var).tmp_var), &expr_ptr, sizeof(zval *), NULL);
    6605             :         }
    6606             :         if ((IS_CONST == IS_VAR || IS_CONST == IS_CV) && opline->extended_value) {
    6607             : 
    6608             :         }
    6609             :         CHECK_EXCEPTION();
    6610      407977 :         ZEND_VM_NEXT_OPCODE();
    6611             : }
    6612             : 
    6613      240307 : static int ZEND_FASTCALL  ZEND_INIT_ARRAY_SPEC_CONST_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    6614             : {
    6615      240307 :         USE_OPLINE
    6616             : 
    6617      240307 :         array_init(&EX_T(opline->result.var).tmp_var);
    6618      240307 :         if (IS_CONST == IS_UNUSED) {
    6619             :                 ZEND_VM_NEXT_OPCODE();
    6620             : #if 0 || IS_CONST != IS_UNUSED
    6621             :         } else {
    6622      240307 :                 return ZEND_ADD_ARRAY_ELEMENT_SPEC_CONST_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    6623             : #endif
    6624             :         }
    6625             : }
    6626             : 
    6627           4 : static int ZEND_FASTCALL  ZEND_UNSET_VAR_SPEC_CONST_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    6628             : {
    6629           4 :         USE_OPLINE
    6630             :         zval tmp, *varname;
    6631             :         HashTable *target_symbol_table;
    6632             : 
    6633             : 
    6634             :         SAVE_OPLINE();
    6635           4 :         if (IS_CONST == IS_CV &&
    6636             :             IS_UNUSED == IS_UNUSED &&
    6637             :             (opline->extended_value & ZEND_QUICK_SET)) {
    6638             :                 if (EG(active_symbol_table)) {
    6639             :                         zend_compiled_variable *cv = &CV_DEF_OF(opline->op1.var);
    6640             : 
    6641             :                         zend_delete_variable(EX(prev_execute_data), EG(active_symbol_table),  cv->name, cv->name_len+1, cv->hash_value TSRMLS_CC);
    6642             :                         EX_CV(opline->op1.var) = NULL;
    6643             :                 } else if (EX_CV(opline->op1.var)) {
    6644             :                         zval_ptr_dtor(EX_CV(opline->op1.var));
    6645             :                         EX_CV(opline->op1.var) = NULL;
    6646             :                 }
    6647             :                 CHECK_EXCEPTION();
    6648             :                 ZEND_VM_NEXT_OPCODE();
    6649             :         }
    6650             : 
    6651           4 :         varname = opline->op1.zv;
    6652             : 
    6653           4 :         if (IS_CONST != IS_CONST && Z_TYPE_P(varname) != IS_STRING) {
    6654             :                 ZVAL_COPY_VALUE(&tmp, varname);
    6655             :                 zval_copy_ctor(&tmp);
    6656             :                 convert_to_string(&tmp);
    6657             :                 varname = &tmp;
    6658           4 :         } else if (IS_CONST == IS_VAR || IS_CONST == IS_CV) {
    6659             :                 Z_ADDREF_P(varname);
    6660             :         }
    6661             : 
    6662           4 :         if (IS_UNUSED != IS_UNUSED) {
    6663             :                 zend_class_entry *ce;
    6664             : 
    6665             :                 if (IS_UNUSED == IS_CONST) {
    6666             :                         if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    6667             :                                 ce = CACHED_PTR(opline->op2.literal->cache_slot);
    6668             :                         } else {
    6669             :                                 ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.literal + 1, 0 TSRMLS_CC);
    6670             :                                 if (UNEXPECTED(EG(exception) != NULL)) {
    6671             :                                         if (IS_CONST != IS_CONST && varname == &tmp) {
    6672             :                                                 zval_dtor(&tmp);
    6673             :                                         } else if (IS_CONST == IS_VAR || IS_CONST == IS_CV) {
    6674             :                                                 zval_ptr_dtor(&varname);
    6675             :                                         }
    6676             : 
    6677             :                                         HANDLE_EXCEPTION();
    6678             :                                 }
    6679             :                                 if (UNEXPECTED(ce == NULL)) {
    6680             :                                         zend_error_noreturn(E_ERROR, "Class '%s' not found", Z_STRVAL_P(opline->op2.zv));
    6681             :                                 }
    6682             :                                 CACHE_PTR(opline->op2.literal->cache_slot, ce);
    6683             :                         }
    6684             :                 } else {
    6685             :                         ce = EX_T(opline->op2.var).class_entry;
    6686             :                 }
    6687             :                 zend_std_unset_static_property(ce, Z_STRVAL_P(varname), Z_STRLEN_P(varname), ((IS_CONST == IS_CONST) ? opline->op1.literal : NULL) TSRMLS_CC);
    6688             :         } else {
    6689           4 :                 ulong hash_value = zend_inline_hash_func(varname->value.str.val, varname->value.str.len+1);
    6690             : 
    6691           4 :                 target_symbol_table = zend_get_target_symbol_table(opline->extended_value & ZEND_FETCH_TYPE_MASK TSRMLS_CC);
    6692           4 :                 zend_delete_variable(execute_data, target_symbol_table, varname->value.str.val, varname->value.str.len+1, hash_value TSRMLS_CC);
    6693             :         }
    6694             : 
    6695           4 :         if (IS_CONST != IS_CONST && varname == &tmp) {
    6696             :                 zval_dtor(&tmp);
    6697           4 :         } else if (IS_CONST == IS_VAR || IS_CONST == IS_CV) {
    6698             :                 zval_ptr_dtor(&varname);
    6699             :         }
    6700             : 
    6701             :         CHECK_EXCEPTION();
    6702           4 :         ZEND_VM_NEXT_OPCODE();
    6703             : }
    6704             : 
    6705          11 : static int ZEND_FASTCALL  ZEND_ISSET_ISEMPTY_VAR_SPEC_CONST_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    6706             : {
    6707          11 :         USE_OPLINE
    6708             :         zval **value;
    6709          11 :         zend_bool isset = 1;
    6710             : 
    6711             :         SAVE_OPLINE();
    6712          11 :         if (IS_CONST == IS_CV &&
    6713             :             IS_UNUSED == IS_UNUSED &&
    6714             :             (opline->extended_value & ZEND_QUICK_SET)) {
    6715             :                 if (EX_CV(opline->op1.var)) {
    6716             :                         value = EX_CV(opline->op1.var);
    6717             :                 } else if (EG(active_symbol_table)) {
    6718             :                         zend_compiled_variable *cv = &CV_DEF_OF(opline->op1.var);
    6719             : 
    6720             :                         if (zend_hash_quick_find(EG(active_symbol_table), cv->name, cv->name_len+1, cv->hash_value, (void **) &value) == FAILURE) {
    6721             :                                 isset = 0;
    6722             :                         }
    6723             :                 } else {
    6724             :                         isset = 0;
    6725             :                 }
    6726             :         } else {
    6727             :                 HashTable *target_symbol_table;
    6728             : 
    6729          11 :                 zval tmp, *varname = opline->op1.zv;
    6730             : 
    6731          11 :                 if (IS_CONST != IS_CONST && Z_TYPE_P(varname) != IS_STRING) {
    6732             :                         ZVAL_COPY_VALUE(&tmp, varname);
    6733             :                         zval_copy_ctor(&tmp);
    6734             :                         convert_to_string(&tmp);
    6735             :                         varname = &tmp;
    6736             :                 }
    6737             : 
    6738          11 :                 if (IS_UNUSED != IS_UNUSED) {
    6739             :                         zend_class_entry *ce;
    6740             : 
    6741             :                         if (IS_UNUSED == IS_CONST) {
    6742             :                                 if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    6743             :                                         ce = CACHED_PTR(opline->op2.literal->cache_slot);
    6744             :                                 } else {
    6745             :                                         ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.literal + 1, 0 TSRMLS_CC);
    6746             :                                         if (UNEXPECTED(ce == NULL)) {
    6747             :                                                 CHECK_EXCEPTION();
    6748             :                                                 ZEND_VM_NEXT_OPCODE();
    6749             :                                         }
    6750             :                                         CACHE_PTR(opline->op2.literal->cache_slot, ce);
    6751             :                                 }
    6752             :                         } else {
    6753             :                                 ce = EX_T(opline->op2.var).class_entry;
    6754             :                         }
    6755             :                         value = zend_std_get_static_property(ce, Z_STRVAL_P(varname), Z_STRLEN_P(varname), 1, ((IS_CONST == IS_CONST) ? opline->op1.literal : NULL) TSRMLS_CC);
    6756             :                         if (!value) {
    6757             :                                 isset = 0;
    6758             :                         }
    6759             :                 } else {
    6760          11 :                         target_symbol_table = zend_get_target_symbol_table(opline->extended_value & ZEND_FETCH_TYPE_MASK TSRMLS_CC);
    6761          11 :                         if (zend_hash_find(target_symbol_table, varname->value.str.val, varname->value.str.len+1, (void **) &value) == FAILURE) {
    6762           0 :                                 isset = 0;
    6763             :                         }
    6764             :                 }
    6765             : 
    6766          11 :                 if (IS_CONST != IS_CONST && varname == &tmp) {
    6767             :                         zval_dtor(&tmp);
    6768             :                 }
    6769             : 
    6770             :         }
    6771             : 
    6772          11 :         if (opline->extended_value & ZEND_ISSET) {
    6773          14 :                 if (isset && Z_TYPE_PP(value) != IS_NULL) {
    6774           7 :                         ZVAL_BOOL(&EX_T(opline->result.var).tmp_var, 1);
    6775             :                 } else {
    6776           0 :                         ZVAL_BOOL(&EX_T(opline->result.var).tmp_var, 0);
    6777             :                 }
    6778             :         } else /* if (opline->extended_value & ZEND_ISEMPTY) */ {
    6779           8 :                 if (!isset || !i_zend_is_true(*value TSRMLS_CC)) {
    6780           0 :                         ZVAL_BOOL(&EX_T(opline->result.var).tmp_var, 1);
    6781             :                 } else {
    6782           4 :                         ZVAL_BOOL(&EX_T(opline->result.var).tmp_var, 0);
    6783             :                 }
    6784             :         }
    6785             : 
    6786             :         CHECK_EXCEPTION();
    6787          11 :         ZEND_VM_NEXT_OPCODE();
    6788             : }
    6789             : 
    6790         303 : static int ZEND_FASTCALL  ZEND_DECLARE_LAMBDA_FUNCTION_SPEC_CONST_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    6791             : {
    6792         303 :         USE_OPLINE
    6793             :         zend_function *op_array;
    6794             :         int closure_is_static, closure_is_being_defined_inside_static_context;
    6795             : 
    6796             :         SAVE_OPLINE();
    6797             : 
    6798         606 :         if (UNEXPECTED(zend_hash_quick_find(EG(function_table), Z_STRVAL_P(opline->op1.zv), Z_STRLEN_P(opline->op1.zv), Z_HASH_P(opline->op1.zv), (void *) &op_array) == FAILURE) ||
    6799         303 :             UNEXPECTED(op_array->type != ZEND_USER_FUNCTION)) {
    6800           0 :                 zend_error_noreturn(E_ERROR, "Base lambda function for closure not found");
    6801             :         }
    6802             : 
    6803         303 :         closure_is_static = op_array->common.fn_flags & ZEND_ACC_STATIC;
    6804         303 :         closure_is_being_defined_inside_static_context = EX(prev_execute_data) && EX(prev_execute_data)->function_state.function->common.fn_flags & ZEND_ACC_STATIC;
    6805         321 :         if (closure_is_static || closure_is_being_defined_inside_static_context) {
    6806          18 :                 zend_create_closure(&EX_T(opline->result.var).tmp_var, (zend_function *) op_array,  EG(called_scope), NULL TSRMLS_CC);
    6807             :         } else {
    6808         285 :                 zend_create_closure(&EX_T(opline->result.var).tmp_var, (zend_function *) op_array,  EG(scope), EG(This) TSRMLS_CC);
    6809             :         }
    6810             : 
    6811             :         CHECK_EXCEPTION();
    6812         303 :         ZEND_VM_NEXT_OPCODE();
    6813             : }
    6814             : 
    6815          28 : static int ZEND_FASTCALL  ZEND_YIELD_SPEC_CONST_UNUSED_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    6816             : {
    6817          28 :         USE_OPLINE
    6818             : 
    6819             :         /* The generator object is stored in return_value_ptr_ptr */
    6820          28 :         zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr);
    6821             : 
    6822          28 :         if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
    6823           0 :                 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
    6824             :         }
    6825             : 
    6826             :         /* Destroy the previously yielded value */
    6827          28 :         if (generator->value) {
    6828          12 :                 zval_ptr_dtor(&generator->value);
    6829             :         }
    6830             : 
    6831             :         /* Destroy the previously yielded key */
    6832          28 :         if (generator->key) {
    6833          12 :                 zval_ptr_dtor(&generator->key);
    6834             :         }
    6835             : 
    6836             :         /* Set the new yielded value */
    6837             :         if (IS_CONST != IS_UNUSED) {
    6838             : 
    6839             : 
    6840          28 :                 if (EX(op_array)->fn_flags & ZEND_ACC_RETURN_REFERENCE) {
    6841             :                         /* Constants and temporary variables aren't yieldable by reference,
    6842             :                          * but we still allow them with a notice. */
    6843             :                         if (IS_CONST == IS_CONST || IS_CONST == IS_TMP_VAR) {
    6844             :                                 zval *value, *copy;
    6845             : 
    6846           1 :                                 zend_error(E_NOTICE, "Only variable references should be yielded by reference");
    6847             : 
    6848           1 :                                 value = opline->op1.zv;
    6849           1 :                                 ALLOC_ZVAL(copy);
    6850           1 :                                 INIT_PZVAL_COPY(copy, value);
    6851             : 
    6852             :                                 /* Temporary variables don't need ctor copying */
    6853             :                                 if (!0) {
    6854             :                                         zval_copy_ctor(copy);
    6855             :                                 }
    6856             : 
    6857           1 :                                 generator->value = copy;
    6858             :                         } else {
    6859             :                                 zval **value_ptr = NULL;
    6860             : 
    6861             :                                 if (IS_CONST == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
    6862             :                                         zend_error_noreturn(E_ERROR, "Cannot yield string offsets by reference");
    6863             :                                 }
    6864             : 
    6865             :                                 /* If a function call result is yielded and the function did
    6866             :                                  * not return by reference we throw a notice. */
    6867             :                                 if (IS_CONST == IS_VAR && !Z_ISREF_PP(value_ptr)
    6868             :                                     && !(opline->extended_value == ZEND_RETURNS_FUNCTION
    6869             :                                          && EX_T(opline->op1.var).var.fcall_returned_reference)
    6870             :                                     && EX_T(opline->op1.var).var.ptr_ptr == &EX_T(opline->op1.var).var.ptr) {
    6871             :                                         zend_error(E_NOTICE, "Only variable references should be yielded by reference");
    6872             : 
    6873             :                                         Z_ADDREF_PP(value_ptr);
    6874             :                                         generator->value = *value_ptr;
    6875             :                                 } else {
    6876             :                                         SEPARATE_ZVAL_TO_MAKE_IS_REF(value_ptr);
    6877             :                                         Z_ADDREF_PP(value_ptr);
    6878             :                                         generator->value = *value_ptr;
    6879             :                                 }
    6880             : 
    6881             :                         }
    6882             :                 } else {
    6883          27 :                         zval *value = opline->op1.zv;
    6884             : 
    6885             :                         /* Consts, temporary variables and references need copying */
    6886             :                         if (IS_CONST == IS_CONST || IS_CONST == IS_TMP_VAR
    6887             :                                 || PZVAL_IS_REF(value)
    6888             :                         ) {
    6889             :                                 zval *copy;
    6890             : 
    6891          27 :                                 ALLOC_ZVAL(copy);
    6892          27 :                                 INIT_PZVAL_COPY(copy, value);
    6893             : 
    6894             :                                 /* Temporary variables don't need ctor copying */
    6895             :                                 if (!0) {
    6896             :                                         zval_copy_ctor(copy);
    6897             :                                 }
    6898             : 
    6899          27 :                                 generator->value = copy;
    6900             : 
    6901             :                         } else {
    6902             :                                 if (IS_CONST == IS_CV) {
    6903             :                                         Z_ADDREF_P(value);
    6904             :                                 }
    6905             :                                 generator->value = value;
    6906             :                         }
    6907             :                 }
    6908             :         } else {
    6909             :                 /* If no value was specified yield null */
    6910             :                 Z_ADDREF(EG(uninitialized_zval));
    6911             :                 generator->value = &EG(uninitialized_zval);
    6912             :         }
    6913             : 
    6914             :         /* Set the new yielded key */
    6915          28 :         if (IS_UNUSED != IS_UNUSED) {
    6916             : 
    6917             :                 zval *key = NULL;
    6918             : 
    6919             :                 /* Consts, temporary variables and references need copying */
    6920             :                 if (IS_UNUSED == IS_CONST || IS_UNUSED == IS_TMP_VAR
    6921             :                         || (PZVAL_IS_REF(key) && Z_REFCOUNT_P(key) > 0)
    6922             :                 ) {
    6923             :                         zval *copy;
    6924             : 
    6925             :                         ALLOC_ZVAL(copy);
    6926             :                         INIT_PZVAL_COPY(copy, key);
    6927             : 
    6928             :                         /* Temporary variables don't need ctor copying */
    6929             :                         if (!0) {
    6930             :                                 zval_copy_ctor(copy);
    6931             :                         }
    6932             : 
    6933             :                         generator->key = copy;
    6934             :                 } else {
    6935             :                         Z_ADDREF_P(key);
    6936             :                         generator->key = key;
    6937             :                 }
    6938             : 
    6939             :                 if (Z_TYPE_P(generator->key) == IS_LONG
    6940             :                     && Z_LVAL_P(generator->key) > generator->largest_used_integer_key
    6941             :                 ) {
    6942             :                         generator->largest_used_integer_key = Z_LVAL_P(generator->key);
    6943             :                 }
    6944             : 
    6945             :         } else {
    6946             :                 /* If no key was specified we use auto-increment keys */
    6947          28 :                 generator->largest_used_integer_key++;
    6948             : 
    6949          28 :                 ALLOC_INIT_ZVAL(generator->key);
    6950          28 :                 ZVAL_LONG(generator->key, generator->largest_used_integer_key);
    6951             :         }
    6952             : 
    6953          28 :         if (RETURN_VALUE_USED(opline)) {
    6954             :                 /* If the return value of yield is used set the send
    6955             :                  * target and initialize it to NULL */
    6956           2 :                 generator->send_target = &EX_T(opline->result.var).var.ptr;
    6957             :                 Z_ADDREF(EG(uninitialized_zval));
    6958           2 :                 EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
    6959             :         } else {
    6960          26 :                 generator->send_target = NULL;
    6961             :         }
    6962             : 
    6963             :         /* We increment to the next op, so we are at the correct position when the
    6964             :          * generator is resumed. */
    6965          28 :         ZEND_VM_INC_OPCODE();
    6966             : 
    6967             :         /* The GOTO VM uses a local opline variable. We need to set the opline
    6968             :          * variable in execute_data so we don't resume at an old position. */
    6969             :         SAVE_OPLINE();
    6970             : 
    6971          28 :         ZEND_VM_RETURN();
    6972             : }
    6973             : 
    6974          54 : static int ZEND_FASTCALL  ZEND_ADD_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    6975             : {
    6976          54 :         USE_OPLINE
    6977             : 
    6978             : 
    6979             :         SAVE_OPLINE();
    6980         108 :         fast_add_function(&EX_T(opline->result.var).tmp_var,
    6981             :                 opline->op1.zv,
    6982             :                 _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC) TSRMLS_CC);
    6983             : 
    6984             : 
    6985             :         CHECK_EXCEPTION();
    6986          54 :         ZEND_VM_NEXT_OPCODE();
    6987             : }
    6988             : 
    6989         122 : static int ZEND_FASTCALL  ZEND_SUB_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    6990             : {
    6991         122 :         USE_OPLINE
    6992             : 
    6993             : 
    6994             :         SAVE_OPLINE();
    6995         244 :         fast_sub_function(&EX_T(opline->result.var).tmp_var,
    6996             :                 opline->op1.zv,
    6997             :                 _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC) TSRMLS_CC);
    6998             : 
    6999             : 
    7000             :         CHECK_EXCEPTION();
    7001         122 :         ZEND_VM_NEXT_OPCODE();
    7002             : }
    7003             : 
    7004        2115 : static int ZEND_FASTCALL  ZEND_MUL_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7005             : {
    7006        2115 :         USE_OPLINE
    7007             : 
    7008             : 
    7009             :         SAVE_OPLINE();
    7010        4230 :         fast_mul_function(&EX_T(opline->result.var).tmp_var,
    7011             :                 opline->op1.zv,
    7012             :                 _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC) TSRMLS_CC);
    7013             : 
    7014             : 
    7015             :         CHECK_EXCEPTION();
    7016        2115 :         ZEND_VM_NEXT_OPCODE();
    7017             : }
    7018             : 
    7019           1 : static int ZEND_FASTCALL  ZEND_DIV_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7020             : {
    7021           1 :         USE_OPLINE
    7022             : 
    7023             : 
    7024             :         SAVE_OPLINE();
    7025           2 :         fast_div_function(&EX_T(opline->result.var).tmp_var,
    7026             :                 opline->op1.zv,
    7027             :                 _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC) TSRMLS_CC);
    7028             : 
    7029             : 
    7030             :         CHECK_EXCEPTION();
    7031           1 :         ZEND_VM_NEXT_OPCODE();
    7032             : }
    7033             : 
    7034           1 : static int ZEND_FASTCALL  ZEND_MOD_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7035             : {
    7036           1 :         USE_OPLINE
    7037             : 
    7038             : 
    7039             :         SAVE_OPLINE();
    7040           2 :         fast_mod_function(&EX_T(opline->result.var).tmp_var,
    7041             :                 opline->op1.zv,
    7042             :                 _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC) TSRMLS_CC);
    7043             : 
    7044             : 
    7045             :         CHECK_EXCEPTION();
    7046           1 :         ZEND_VM_NEXT_OPCODE();
    7047             : }
    7048             : 
    7049           1 : static int ZEND_FASTCALL  ZEND_SL_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7050             : {
    7051           1 :         USE_OPLINE
    7052             : 
    7053             : 
    7054             :         SAVE_OPLINE();
    7055           2 :         shift_left_function(&EX_T(opline->result.var).tmp_var,
    7056             :                 opline->op1.zv,
    7057             :                 _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC) TSRMLS_CC);
    7058             : 
    7059             : 
    7060             :         CHECK_EXCEPTION();
    7061           1 :         ZEND_VM_NEXT_OPCODE();
    7062             : }
    7063             : 
    7064           0 : static int ZEND_FASTCALL  ZEND_SR_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7065             : {
    7066           0 :         USE_OPLINE
    7067             : 
    7068             : 
    7069             :         SAVE_OPLINE();
    7070           0 :         shift_right_function(&EX_T(opline->result.var).tmp_var,
    7071             :                 opline->op1.zv,
    7072             :                 _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC) TSRMLS_CC);
    7073             : 
    7074             : 
    7075             :         CHECK_EXCEPTION();
    7076           0 :         ZEND_VM_NEXT_OPCODE();
    7077             : }
    7078             : 
    7079      147098 : static int ZEND_FASTCALL  ZEND_CONCAT_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7080             : {
    7081      147098 :         USE_OPLINE
    7082             : 
    7083             : 
    7084             :         SAVE_OPLINE();
    7085      294196 :         concat_function(&EX_T(opline->result.var).tmp_var,
    7086             :                 opline->op1.zv,
    7087             :                 _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC) TSRMLS_CC);
    7088             : 
    7089             : 
    7090             :         CHECK_EXCEPTION();
    7091      147098 :         ZEND_VM_NEXT_OPCODE();
    7092             : }
    7093             : 
    7094          51 : static int ZEND_FASTCALL  ZEND_IS_IDENTICAL_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7095             : {
    7096          51 :         USE_OPLINE
    7097             : 
    7098             : 
    7099             :         SAVE_OPLINE();
    7100         102 :         is_identical_function(&EX_T(opline->result.var).tmp_var,
    7101             :                 opline->op1.zv,
    7102             :                 _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC) TSRMLS_CC);
    7103             : 
    7104             : 
    7105             :         CHECK_EXCEPTION();
    7106          51 :         ZEND_VM_NEXT_OPCODE();
    7107             : }
    7108             : 
    7109         137 : static int ZEND_FASTCALL  ZEND_IS_NOT_IDENTICAL_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7110             : {
    7111         137 :         USE_OPLINE
    7112             : 
    7113         137 :         zval *result = &EX_T(opline->result.var).tmp_var;
    7114             : 
    7115             :         SAVE_OPLINE();
    7116         274 :         is_identical_function(result,
    7117             :                 opline->op1.zv,
    7118             :                 _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC) TSRMLS_CC);
    7119         137 :         Z_LVAL_P(result) = !Z_LVAL_P(result);
    7120             : 
    7121             : 
    7122             :         CHECK_EXCEPTION();
    7123         137 :         ZEND_VM_NEXT_OPCODE();
    7124             : }
    7125             : 
    7126        3205 : static int ZEND_FASTCALL  ZEND_IS_EQUAL_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7127             : {
    7128        3205 :         USE_OPLINE
    7129             : 
    7130        3205 :         zval *result = &EX_T(opline->result.var).tmp_var;
    7131             : 
    7132             :         SAVE_OPLINE();
    7133        9615 :         ZVAL_BOOL(result, fast_equal_function(result,
    7134             :                 opline->op1.zv,
    7135             :                 _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC) TSRMLS_CC));
    7136             : 
    7137             : 
    7138             :         CHECK_EXCEPTION();
    7139        3205 :         ZEND_VM_NEXT_OPCODE();
    7140             : }
    7141             : 
    7142         147 : static int ZEND_FASTCALL  ZEND_IS_NOT_EQUAL_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7143             : {
    7144         147 :         USE_OPLINE
    7145             : 
    7146         147 :         zval *result = &EX_T(opline->result.var).tmp_var;
    7147             : 
    7148             :         SAVE_OPLINE();
    7149         441 :         ZVAL_BOOL(result, fast_not_equal_function(result,
    7150             :                 opline->op1.zv,
    7151             :                 _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC) TSRMLS_CC));
    7152             : 
    7153             : 
    7154             :         CHECK_EXCEPTION();
    7155         147 :         ZEND_VM_NEXT_OPCODE();
    7156             : }
    7157             : 
    7158      984921 : static int ZEND_FASTCALL  ZEND_IS_SMALLER_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7159             : {
    7160      984921 :         USE_OPLINE
    7161             : 
    7162      984921 :         zval *result = &EX_T(opline->result.var).tmp_var;
    7163             : 
    7164             :         SAVE_OPLINE();
    7165     2954763 :         ZVAL_BOOL(result, fast_is_smaller_function(result,
    7166             :                 opline->op1.zv,
    7167             :                 _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC) TSRMLS_CC));
    7168             : 
    7169             : 
    7170             :         CHECK_EXCEPTION();
    7171      984921 :         ZEND_VM_NEXT_OPCODE();
    7172             : }
    7173             : 
    7174      158276 : static int ZEND_FASTCALL  ZEND_IS_SMALLER_OR_EQUAL_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7175             : {
    7176      158276 :         USE_OPLINE
    7177             : 
    7178      158276 :         zval *result = &EX_T(opline->result.var).tmp_var;
    7179             : 
    7180             :         SAVE_OPLINE();
    7181      474828 :         ZVAL_BOOL(result, fast_is_smaller_or_equal_function(result,
    7182             :                 opline->op1.zv,
    7183             :                 _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC) TSRMLS_CC));
    7184             : 
    7185             : 
    7186             :         CHECK_EXCEPTION();
    7187      158276 :         ZEND_VM_NEXT_OPCODE();
    7188             : }
    7189             : 
    7190           1 : static int ZEND_FASTCALL  ZEND_BW_OR_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7191             : {
    7192           1 :         USE_OPLINE
    7193             : 
    7194             : 
    7195             :         SAVE_OPLINE();
    7196           2 :         bitwise_or_function(&EX_T(opline->result.var).tmp_var,
    7197             :                 opline->op1.zv,
    7198             :                 _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC) TSRMLS_CC);
    7199             : 
    7200             : 
    7201             :         CHECK_EXCEPTION();
    7202           1 :         ZEND_VM_NEXT_OPCODE();
    7203             : }
    7204             : 
    7205           1 : static int ZEND_FASTCALL  ZEND_BW_AND_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7206             : {
    7207           1 :         USE_OPLINE
    7208             : 
    7209             : 
    7210             :         SAVE_OPLINE();
    7211           2 :         bitwise_and_function(&EX_T(opline->result.var).tmp_var,
    7212             :                 opline->op1.zv,
    7213             :                 _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC) TSRMLS_CC);
    7214             : 
    7215             : 
    7216             :         CHECK_EXCEPTION();
    7217           1 :         ZEND_VM_NEXT_OPCODE();
    7218             : }
    7219             : 
    7220           1 : static int ZEND_FASTCALL  ZEND_BW_XOR_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7221             : {
    7222           1 :         USE_OPLINE
    7223             : 
    7224             : 
    7225             :         SAVE_OPLINE();
    7226           2 :         bitwise_xor_function(&EX_T(opline->result.var).tmp_var,
    7227             :                 opline->op1.zv,
    7228             :                 _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC) TSRMLS_CC);
    7229             : 
    7230             : 
    7231             :         CHECK_EXCEPTION();
    7232           1 :         ZEND_VM_NEXT_OPCODE();
    7233             : }
    7234             : 
    7235           0 : static int ZEND_FASTCALL  ZEND_BOOL_XOR_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7236             : {
    7237           0 :         USE_OPLINE
    7238             : 
    7239             : 
    7240             :         SAVE_OPLINE();
    7241           0 :         boolean_xor_function(&EX_T(opline->result.var).tmp_var,
    7242             :                 opline->op1.zv,
    7243             :                 _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC) TSRMLS_CC);
    7244             : 
    7245             : 
    7246             :         CHECK_EXCEPTION();
    7247           0 :         ZEND_VM_NEXT_OPCODE();
    7248             : }
    7249             : 
    7250           0 : static int ZEND_FASTCALL  ZEND_FETCH_DIM_R_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7251             : {
    7252           0 :         USE_OPLINE
    7253             : 
    7254             :         zval *container;
    7255             : 
    7256             :         SAVE_OPLINE();
    7257           0 :         container = opline->op1.zv;
    7258           0 :         zend_fetch_dimension_address_read(&EX_T(opline->result.var), container, _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC), IS_CV, BP_VAR_R TSRMLS_CC);
    7259             : 
    7260             :         if (IS_CONST != IS_VAR || !(opline->extended_value & ZEND_FETCH_ADD_LOCK)) {
    7261             : 
    7262             :         }
    7263             :         CHECK_EXCEPTION();
    7264           0 :         ZEND_VM_NEXT_OPCODE();
    7265             : }
    7266             : 
    7267          10 : static int ZEND_FASTCALL  ZEND_INIT_STATIC_METHOD_CALL_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7268             : {
    7269          10 :         USE_OPLINE
    7270             :         zval *function_name;
    7271             :         zend_class_entry *ce;
    7272          10 :         call_slot *call = EX(call_slots) + opline->result.num;
    7273             : 
    7274             :         SAVE_OPLINE();
    7275             : 
    7276             :         if (IS_CONST == IS_CONST) {
    7277             :                 /* no function found. try a static method in class */
    7278          10 :                 if (CACHED_PTR(opline->op1.literal->cache_slot)) {
    7279           2 :                         ce = CACHED_PTR(opline->op1.literal->cache_slot);
    7280             :                 } else {
    7281           8 :                         ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op1.zv), Z_STRLEN_P(opline->op1.zv), opline->op1.literal + 1, opline->extended_value TSRMLS_CC);
    7282           8 :                         if (UNEXPECTED(EG(exception) != NULL)) {
    7283           0 :                                 HANDLE_EXCEPTION();
    7284             :                         }
    7285           8 :                         if (UNEXPECTED(ce == NULL)) {
    7286           0 :                                 zend_error_noreturn(E_ERROR, "Class '%s' not found", Z_STRVAL_P(opline->op1.zv));
    7287             :                         }
    7288           8 :                         CACHE_PTR(opline->op1.literal->cache_slot, ce);
    7289             :                 }
    7290          10 :                 call->called_scope = ce;
    7291             :         } else {
    7292             :                 ce = EX_T(opline->op1.var).class_entry;
    7293             : 
    7294             :                 if (opline->extended_value == ZEND_FETCH_CLASS_PARENT || opline->extended_value == ZEND_FETCH_CLASS_SELF) {
    7295             :                         call->called_scope = EG(called_scope);
    7296             :                 } else {
    7297             :                         call->called_scope = ce;
    7298             :                 }
    7299             :         }
    7300             : 
    7301          10 :         if (IS_CONST == IS_CONST &&
    7302             :             IS_CV == IS_CONST &&
    7303             :             CACHED_PTR(opline->op2.literal->cache_slot)) {
    7304             :                 call->fbc = CACHED_PTR(opline->op2.literal->cache_slot);
    7305          10 :         } else if (IS_CONST != IS_CONST &&
    7306             :                    IS_CV == IS_CONST &&
    7307             :                    (call->fbc = CACHED_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, ce))) {
    7308             :                 /* do nothing */
    7309             :         } else if (IS_CV != IS_UNUSED) {
    7310          10 :                 char *function_name_strval = NULL;
    7311          10 :                 int function_name_strlen = 0;
    7312             : 
    7313             : 
    7314          10 :                 if (IS_CV == IS_CONST) {
    7315             :                         function_name_strval = Z_STRVAL_P(opline->op2.zv);
    7316             :                         function_name_strlen = Z_STRLEN_P(opline->op2.zv);
    7317             :                 } else {
    7318          20 :                         function_name = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC);
    7319             : 
    7320          10 :                         if (UNEXPECTED(Z_TYPE_P(function_name) != IS_STRING)) {
    7321           2 :                                 if (UNEXPECTED(EG(exception) != NULL)) {
    7322           1 :                                         HANDLE_EXCEPTION();
    7323             :                                 }
    7324           1 :                                 zend_error_noreturn(E_ERROR, "Function name must be a string");
    7325             :                         } else {
    7326           8 :                                 function_name_strval = Z_STRVAL_P(function_name);
    7327           8 :                                 function_name_strlen = Z_STRLEN_P(function_name);
    7328             :                         }
    7329             :                 }
    7330             : 
    7331           8 :                 if (function_name_strval) {
    7332           8 :                         if (ce->get_static_method) {
    7333           0 :                                 call->fbc = ce->get_static_method(ce, function_name_strval, function_name_strlen TSRMLS_CC);
    7334             :                         } else {
    7335           8 :                                 call->fbc = zend_std_get_static_method(ce, function_name_strval, function_name_strlen, ((IS_CV == IS_CONST) ? (opline->op2.literal + 1) : NULL) TSRMLS_CC);
    7336             :                         }
    7337           8 :                         if (UNEXPECTED(call->fbc == NULL)) {
    7338           0 :                                 zend_error_noreturn(E_ERROR, "Call to undefined method %s::%s()", ce->name, function_name_strval);
    7339             :                         }
    7340           8 :                         if (IS_CV == IS_CONST &&
    7341             :                             EXPECTED(call->fbc->type <= ZEND_USER_FUNCTION) &&
    7342             :                             EXPECTED((call->fbc->common.fn_flags & (ZEND_ACC_CALL_VIA_HANDLER|ZEND_ACC_NEVER_CACHE)) == 0)) {
    7343             :                                 if (IS_CONST == IS_CONST) {
    7344             :                                         CACHE_PTR(opline->op2.literal->cache_slot, call->fbc);
    7345             :                                 } else {
    7346             :                                         CACHE_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, ce, call->fbc);
    7347             :                                 }
    7348             :                         }
    7349             :                 }
    7350             :                 if (IS_CV != IS_CONST) {
    7351             : 
    7352             :                 }
    7353             :         } else {
    7354             :                 if (UNEXPECTED(ce->constructor == NULL)) {
    7355             :                         zend_error_noreturn(E_ERROR, "Cannot call constructor");
    7356             :                 }
    7357             :                 if (EG(This) && Z_OBJCE_P(EG(This)) != ce->constructor->common.scope && (ce->constructor->common.fn_flags & ZEND_ACC_PRIVATE)) {
    7358             :                         zend_error_noreturn(E_ERROR, "Cannot call private %s::__construct()", ce->name);
    7359             :                 }
    7360             :                 call->fbc = ce->constructor;
    7361             :         }
    7362             : 
    7363           8 :         if (call->fbc->common.fn_flags & ZEND_ACC_STATIC) {
    7364           7 :                 call->object = NULL;
    7365             :         } else {
    7366           1 :                 if (EG(This) &&
    7367           0 :                     Z_OBJ_HT_P(EG(This))->get_class_entry &&
    7368           0 :                     !instanceof_function(Z_OBJCE_P(EG(This)), ce TSRMLS_CC)) {
    7369             :                     /* We are calling method of the other (incompatible) class,
    7370             :                        but passing $this. This is done for compatibility with php-4. */
    7371           0 :                         if (call->fbc->common.fn_flags & ZEND_ACC_ALLOW_STATIC) {
    7372           0 :                                 zend_error(E_DEPRECATED, "Non-static method %s::%s() should not be called statically, assuming $this from incompatible context", call->fbc->common.scope->name, call->fbc->common.function_name);
    7373             :                         } else {
    7374             :                                 /* An internal function assumes $this is present and won't check that. So PHP would crash by allowing the call. */
    7375           0 :                                 zend_error_noreturn(E_ERROR, "Non-static method %s::%s() cannot be called statically, assuming $this from incompatible context", call->fbc->common.scope->name, call->fbc->common.function_name);
    7376             :                         }
    7377             :                 }
    7378           1 :                 if ((call->object = EG(This))) {
    7379           0 :                         Z_ADDREF_P(call->object);
    7380           0 :                         call->called_scope = Z_OBJCE_P(call->object);
    7381             :                 }
    7382             :         }
    7383             : 
    7384           8 :         call->num_additional_args = 0;
    7385           8 :         call->is_ctor_call = 0;
    7386           8 :         EX(call) = call;
    7387             : 
    7388             :         CHECK_EXCEPTION();
    7389           8 :         ZEND_VM_NEXT_OPCODE();
    7390             : }
    7391             : 
    7392        1132 : static int ZEND_FASTCALL  ZEND_CATCH_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7393             : {
    7394        1132 :         USE_OPLINE
    7395             :         zend_class_entry *ce, *catch_ce;
    7396             :         zval *exception;
    7397             : 
    7398             :         SAVE_OPLINE();
    7399             :         /* Check whether an exception has been thrown, if not, jump over code */
    7400        1132 :         zend_exception_restore(TSRMLS_C);
    7401        1132 :         if (EG(exception) == NULL) {
    7402           0 :                 ZEND_VM_SET_OPCODE(&EX(op_array)->opcodes[opline->extended_value]);
    7403           0 :                 ZEND_VM_CONTINUE(); /* CHECK_ME */
    7404             :         }
    7405        1132 :         if (CACHED_PTR(opline->op1.literal->cache_slot)) {
    7406         296 :                 catch_ce = CACHED_PTR(opline->op1.literal->cache_slot);
    7407             :         } else {
    7408         836 :                 catch_ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op1.zv), Z_STRLEN_P(opline->op1.zv), opline->op1.literal + 1, ZEND_FETCH_CLASS_NO_AUTOLOAD TSRMLS_CC);
    7409             : 
    7410         836 :                 CACHE_PTR(opline->op1.literal->cache_slot, catch_ce);
    7411             :         }
    7412        1132 :         ce = Z_OBJCE_P(EG(exception));
    7413             : 
    7414             : #ifdef HAVE_DTRACE
    7415             :         if (DTRACE_EXCEPTION_CAUGHT_ENABLED()) {
    7416             :                 DTRACE_EXCEPTION_CAUGHT((char *)ce->name);
    7417             :         }
    7418             : #endif /* HAVE_DTRACE */
    7419             : 
    7420        1132 :         if (ce != catch_ce) {
    7421         513 :                 if (!instanceof_function(ce, catch_ce TSRMLS_CC)) {
    7422          10 :                         if (opline->result.num) {
    7423           5 :                                 zend_throw_exception_internal(NULL TSRMLS_CC);
    7424           5 :                                 HANDLE_EXCEPTION();
    7425             :                         }
    7426           5 :                         ZEND_VM_SET_OPCODE(&EX(op_array)->opcodes[opline->extended_value]);
    7427           5 :                         ZEND_VM_CONTINUE(); /* CHECK_ME */
    7428             :                 }
    7429             :         }
    7430             : 
    7431        1122 :         exception = EG(exception);
    7432        1122 :         if (!EG(active_symbol_table)) {
    7433         167 :                 if (EX_CV(opline->op2.var)) {
    7434          36 :                         zval_ptr_dtor(EX_CV(opline->op2.var));
    7435             :                 }
    7436         167 :                 EX_CV(opline->op2.var) = (zval**)EX_CV_NUM(execute_data, EX(op_array)->last_var + opline->op2.var);
    7437         167 :                 *EX_CV(opline->op2.var) = EG(exception);
    7438             :         } else {
    7439         955 :                 zend_compiled_variable *cv = &CV_DEF_OF(opline->op2.var);
    7440         955 :                 zend_hash_quick_update(EG(active_symbol_table), cv->name, cv->name_len+1, cv->hash_value,
    7441             :                     &EG(exception), sizeof(zval *), (void**)&EX_CV(opline->op2.var));
    7442             :         }
    7443        1122 :         if (UNEXPECTED(EG(exception) != exception)) {
    7444           1 :                 Z_ADDREF_P(EG(exception));
    7445           1 :                 HANDLE_EXCEPTION();
    7446             :         } else {
    7447        1121 :                 EG(exception) = NULL;
    7448        1121 :                 ZEND_VM_NEXT_OPCODE();
    7449             :         }
    7450             : }
    7451             : 
    7452           0 : static int ZEND_FASTCALL  ZEND_CASE_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7453             : {
    7454           0 :         USE_OPLINE
    7455             : 
    7456             : 
    7457             :         SAVE_OPLINE();
    7458           0 :         is_equal_function(&EX_T(opline->result.var).tmp_var,
    7459             :                                  opline->op1.zv,
    7460             :                                  _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC) TSRMLS_CC);
    7461             : 
    7462             :         CHECK_EXCEPTION();
    7463           0 :         ZEND_VM_NEXT_OPCODE();
    7464             : }
    7465             : 
    7466          66 : static int ZEND_FASTCALL  ZEND_ADD_ARRAY_ELEMENT_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7467             : {
    7468          66 :         USE_OPLINE
    7469             : 
    7470             :         zval *expr_ptr;
    7471             : 
    7472             :         SAVE_OPLINE();
    7473          66 :         if ((IS_CONST == IS_VAR || IS_CONST == IS_CV) && opline->extended_value) {
    7474             :                 zval **expr_ptr_ptr = NULL;
    7475             : 
    7476             :                 if (IS_CONST == IS_VAR && UNEXPECTED(expr_ptr_ptr == NULL)) {
    7477             :                         zend_error_noreturn(E_ERROR, "Cannot create references to/from string offsets");
    7478             :                 }
    7479             :                 SEPARATE_ZVAL_TO_MAKE_IS_REF(expr_ptr_ptr);
    7480             :                 expr_ptr = *expr_ptr_ptr;
    7481             :                 Z_ADDREF_P(expr_ptr);
    7482             :         } else {
    7483          66 :                 expr_ptr=opline->op1.zv;
    7484          66 :                 if (0) { /* temporary variable */
    7485             :                         zval *new_expr;
    7486             : 
    7487             :                         ALLOC_ZVAL(new_expr);
    7488             :                         INIT_PZVAL_COPY(new_expr, expr_ptr);
    7489             :                         expr_ptr = new_expr;
    7490             :                 } else if (IS_CONST == IS_CONST || PZVAL_IS_REF(expr_ptr)) {
    7491             :                         zval *new_expr;
    7492             : 
    7493          66 :                         ALLOC_ZVAL(new_expr);
    7494          66 :                         INIT_PZVAL_COPY(new_expr, expr_ptr);
    7495          66 :                         expr_ptr = new_expr;
    7496          66 :                         zendi_zval_copy_ctor(*expr_ptr);
    7497             : 
    7498             :                 } else if (IS_CONST == IS_CV) {
    7499             :                         Z_ADDREF_P(expr_ptr);
    7500             :                 }
    7501             :         }
    7502             : 
    7503             :         if (IS_CV != IS_UNUSED) {
    7504             : 
    7505         132 :                 zval *offset = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC);
    7506             :                 ulong hval;
    7507             : 
    7508          66 :                 switch (Z_TYPE_P(offset)) {
    7509             :                         case IS_DOUBLE:
    7510           0 :                                 hval = zend_dval_to_lval(Z_DVAL_P(offset));
    7511           0 :                                 goto num_index;
    7512             :                         case IS_LONG:
    7513             :                         case IS_BOOL:
    7514           1 :                                 hval = Z_LVAL_P(offset);
    7515             : num_index:
    7516           1 :                                 zend_hash_index_update(Z_ARRVAL(EX_T(opline->result.var).tmp_var), hval, &expr_ptr, sizeof(zval *), NULL);
    7517           1 :                                 break;
    7518             :                         case IS_STRING:
    7519          55 :                                 if (IS_CV == IS_CONST) {
    7520             :                                         hval = Z_HASH_P(offset);
    7521             :                                 } else {
    7522          55 :                                         ZEND_HANDLE_NUMERIC_EX(Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, goto num_index);
    7523          55 :                                         hval = str_hash(Z_STRVAL_P(offset), Z_STRLEN_P(offset));
    7524             :                                 }
    7525          55 :                                 zend_hash_quick_update(Z_ARRVAL(EX_T(opline->result.var).tmp_var), Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, &expr_ptr, sizeof(zval *), NULL);
    7526          55 :                                 break;
    7527             :                         case IS_NULL:
    7528           0 :                                 zend_hash_update(Z_ARRVAL(EX_T(opline->result.var).tmp_var), "", sizeof(""), &expr_ptr, sizeof(zval *), NULL);
    7529           0 :                                 break;
    7530             :                         default:
    7531          10 :                                 zend_error(E_WARNING, "Illegal offset type");
    7532          10 :                                 zval_ptr_dtor(&expr_ptr);
    7533             :                                 /* do nothing */
    7534             :                                 break;
    7535             :                 }
    7536             : 
    7537             :         } else {
    7538             :                 zend_hash_next_index_insert(Z_ARRVAL(EX_T(opline->result.var).tmp_var), &expr_ptr, sizeof(zval *), NULL);
    7539             :         }
    7540             :         if ((IS_CONST == IS_VAR || IS_CONST == IS_CV) && opline->extended_value) {
    7541             : 
    7542             :         }
    7543             :         CHECK_EXCEPTION();
    7544          66 :         ZEND_VM_NEXT_OPCODE();
    7545             : }
    7546             : 
    7547           6 : static int ZEND_FASTCALL  ZEND_INIT_ARRAY_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7548             : {
    7549           6 :         USE_OPLINE
    7550             : 
    7551           6 :         array_init(&EX_T(opline->result.var).tmp_var);
    7552           6 :         if (IS_CONST == IS_UNUSED) {
    7553             :                 ZEND_VM_NEXT_OPCODE();
    7554             : #if 0 || IS_CONST != IS_UNUSED
    7555             :         } else {
    7556           6 :                 return ZEND_ADD_ARRAY_ELEMENT_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    7557             : #endif
    7558             :         }
    7559             : }
    7560             : 
    7561           0 : static int ZEND_FASTCALL  ZEND_YIELD_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7562             : {
    7563           0 :         USE_OPLINE
    7564             : 
    7565             :         /* The generator object is stored in return_value_ptr_ptr */
    7566           0 :         zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr);
    7567             : 
    7568           0 :         if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
    7569           0 :                 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
    7570             :         }
    7571             : 
    7572             :         /* Destroy the previously yielded value */
    7573           0 :         if (generator->value) {
    7574           0 :                 zval_ptr_dtor(&generator->value);
    7575             :         }
    7576             : 
    7577             :         /* Destroy the previously yielded key */
    7578           0 :         if (generator->key) {
    7579           0 :                 zval_ptr_dtor(&generator->key);
    7580             :         }
    7581             : 
    7582             :         /* Set the new yielded value */
    7583             :         if (IS_CONST != IS_UNUSED) {
    7584             : 
    7585             : 
    7586           0 :                 if (EX(op_array)->fn_flags & ZEND_ACC_RETURN_REFERENCE) {
    7587             :                         /* Constants and temporary variables aren't yieldable by reference,
    7588             :                          * but we still allow them with a notice. */
    7589             :                         if (IS_CONST == IS_CONST || IS_CONST == IS_TMP_VAR) {
    7590             :                                 zval *value, *copy;
    7591             : 
    7592           0 :                                 zend_error(E_NOTICE, "Only variable references should be yielded by reference");
    7593             : 
    7594           0 :                                 value = opline->op1.zv;
    7595           0 :                                 ALLOC_ZVAL(copy);
    7596           0 :                                 INIT_PZVAL_COPY(copy, value);
    7597             : 
    7598             :                                 /* Temporary variables don't need ctor copying */
    7599             :                                 if (!0) {
    7600             :                                         zval_copy_ctor(copy);
    7601             :                                 }
    7602             : 
    7603           0 :                                 generator->value = copy;
    7604             :                         } else {
    7605             :                                 zval **value_ptr = NULL;
    7606             : 
    7607             :                                 if (IS_CONST == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
    7608             :                                         zend_error_noreturn(E_ERROR, "Cannot yield string offsets by reference");
    7609             :                                 }
    7610             : 
    7611             :                                 /* If a function call result is yielded and the function did
    7612             :                                  * not return by reference we throw a notice. */
    7613             :                                 if (IS_CONST == IS_VAR && !Z_ISREF_PP(value_ptr)
    7614             :                                     && !(opline->extended_value == ZEND_RETURNS_FUNCTION
    7615             :                                          && EX_T(opline->op1.var).var.fcall_returned_reference)
    7616             :                                     && EX_T(opline->op1.var).var.ptr_ptr == &EX_T(opline->op1.var).var.ptr) {
    7617             :                                         zend_error(E_NOTICE, "Only variable references should be yielded by reference");
    7618             : 
    7619             :                                         Z_ADDREF_PP(value_ptr);
    7620             :                                         generator->value = *value_ptr;
    7621             :                                 } else {
    7622             :                                         SEPARATE_ZVAL_TO_MAKE_IS_REF(value_ptr);
    7623             :                                         Z_ADDREF_PP(value_ptr);
    7624             :                                         generator->value = *value_ptr;
    7625             :                                 }
    7626             : 
    7627             :                         }
    7628             :                 } else {
    7629           0 :                         zval *value = opline->op1.zv;
    7630             : 
    7631             :                         /* Consts, temporary variables and references need copying */
    7632             :                         if (IS_CONST == IS_CONST || IS_CONST == IS_TMP_VAR
    7633             :                                 || PZVAL_IS_REF(value)
    7634             :                         ) {
    7635             :                                 zval *copy;
    7636             : 
    7637           0 :                                 ALLOC_ZVAL(copy);
    7638           0 :                                 INIT_PZVAL_COPY(copy, value);
    7639             : 
    7640             :                                 /* Temporary variables don't need ctor copying */
    7641             :                                 if (!0) {
    7642             :                                         zval_copy_ctor(copy);
    7643             :                                 }
    7644             : 
    7645           0 :                                 generator->value = copy;
    7646             : 
    7647             :                         } else {
    7648             :                                 if (IS_CONST == IS_CV) {
    7649             :                                         Z_ADDREF_P(value);
    7650             :                                 }
    7651             :                                 generator->value = value;
    7652             :                         }
    7653             :                 }
    7654             :         } else {
    7655             :                 /* If no value was specified yield null */
    7656             :                 Z_ADDREF(EG(uninitialized_zval));
    7657             :                 generator->value = &EG(uninitialized_zval);
    7658             :         }
    7659             : 
    7660             :         /* Set the new yielded key */
    7661             :         if (IS_CV != IS_UNUSED) {
    7662             : 
    7663           0 :                 zval *key = _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC);
    7664             : 
    7665             :                 /* Consts, temporary variables and references need copying */
    7666           0 :                 if (IS_CV == IS_CONST || IS_CV == IS_TMP_VAR
    7667             :                         || (PZVAL_IS_REF(key) && Z_REFCOUNT_P(key) > 0)
    7668             :                 ) {
    7669             :                         zval *copy;
    7670             : 
    7671           0 :                         ALLOC_ZVAL(copy);
    7672           0 :                         INIT_PZVAL_COPY(copy, key);
    7673             : 
    7674             :                         /* Temporary variables don't need ctor copying */
    7675             :                         if (!0) {
    7676             :                                 zval_copy_ctor(copy);
    7677             :                         }
    7678             : 
    7679           0 :                         generator->key = copy;
    7680             :                 } else {
    7681             :                         Z_ADDREF_P(key);
    7682           0 :                         generator->key = key;
    7683             :                 }
    7684             : 
    7685           0 :                 if (Z_TYPE_P(generator->key) == IS_LONG
    7686           0 :                     && Z_LVAL_P(generator->key) > generator->largest_used_integer_key
    7687             :                 ) {
    7688           0 :                         generator->largest_used_integer_key = Z_LVAL_P(generator->key);
    7689             :                 }
    7690             : 
    7691             :         } else {
    7692             :                 /* If no key was specified we use auto-increment keys */
    7693             :                 generator->largest_used_integer_key++;
    7694             : 
    7695             :                 ALLOC_INIT_ZVAL(generator->key);
    7696             :                 ZVAL_LONG(generator->key, generator->largest_used_integer_key);
    7697             :         }
    7698             : 
    7699           0 :         if (RETURN_VALUE_USED(opline)) {
    7700             :                 /* If the return value of yield is used set the send
    7701             :                  * target and initialize it to NULL */
    7702           0 :                 generator->send_target = &EX_T(opline->result.var).var.ptr;
    7703             :                 Z_ADDREF(EG(uninitialized_zval));
    7704           0 :                 EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
    7705             :         } else {
    7706           0 :                 generator->send_target = NULL;
    7707             :         }
    7708             : 
    7709             :         /* We increment to the next op, so we are at the correct position when the
    7710             :          * generator is resumed. */
    7711           0 :         ZEND_VM_INC_OPCODE();
    7712             : 
    7713             :         /* The GOTO VM uses a local opline variable. We need to set the opline
    7714             :          * variable in execute_data so we don't resume at an old position. */
    7715             :         SAVE_OPLINE();
    7716             : 
    7717           0 :         ZEND_VM_RETURN();
    7718             : }
    7719             : 
    7720           0 : static int ZEND_FASTCALL  ZEND_POW_SPEC_CONST_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7721             : {
    7722           0 :         USE_OPLINE
    7723             : 
    7724             : 
    7725             :         SAVE_OPLINE();
    7726           0 :         pow_function(&EX_T(opline->result.var).tmp_var,
    7727             :                 opline->op1.zv,
    7728             :                 _get_zval_ptr_cv_BP_VAR_R(execute_data, opline->op2.var TSRMLS_CC) TSRMLS_CC);
    7729             : 
    7730             : 
    7731             :         CHECK_EXCEPTION();
    7732           0 :         ZEND_VM_NEXT_OPCODE();
    7733             : }
    7734             : 
    7735           0 : static int ZEND_FASTCALL  ZEND_BW_NOT_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7736             : {
    7737           0 :         USE_OPLINE
    7738             :         zend_free_op free_op1;
    7739             : 
    7740             :         SAVE_OPLINE();
    7741           0 :         bitwise_not_function(&EX_T(opline->result.var).tmp_var,
    7742             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC) TSRMLS_CC);
    7743           0 :         zval_dtor(free_op1.var);
    7744             :         CHECK_EXCEPTION();
    7745           0 :         ZEND_VM_NEXT_OPCODE();
    7746             : }
    7747             : 
    7748      182683 : static int ZEND_FASTCALL  ZEND_BOOL_NOT_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7749             : {
    7750      182683 :         USE_OPLINE
    7751             :         zend_free_op free_op1;
    7752             : 
    7753             :         SAVE_OPLINE();
    7754      365366 :         boolean_not_function(&EX_T(opline->result.var).tmp_var,
    7755             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC) TSRMLS_CC);
    7756      182683 :         zval_dtor(free_op1.var);
    7757             :         CHECK_EXCEPTION();
    7758      182683 :         ZEND_VM_NEXT_OPCODE();
    7759             : }
    7760             : 
    7761      110611 : static int ZEND_FASTCALL  ZEND_ECHO_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7762             : {
    7763      110611 :         USE_OPLINE
    7764             :         zend_free_op free_op1;
    7765             :         zval *z;
    7766             : 
    7767             :         SAVE_OPLINE();
    7768      221222 :         z = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    7769             : 
    7770      110611 :         if (IS_TMP_VAR == IS_TMP_VAR && Z_TYPE_P(z) == IS_OBJECT) {
    7771           1 :                 INIT_PZVAL(z);
    7772             :         }
    7773      110611 :         zend_print_variable(z);
    7774             : 
    7775      110611 :         zval_dtor(free_op1.var);
    7776             :         CHECK_EXCEPTION();
    7777      110611 :         ZEND_VM_NEXT_OPCODE();
    7778             : }
    7779             : 
    7780        8162 : static int ZEND_FASTCALL  ZEND_PRINT_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7781             : {
    7782        8162 :         USE_OPLINE
    7783             : 
    7784        8162 :         ZVAL_LONG(&EX_T(opline->result.var).tmp_var, 1);
    7785        8162 :         return ZEND_ECHO_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    7786             : }
    7787             : 
    7788    14452785 : static int ZEND_FASTCALL  ZEND_JMPZ_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7789             : {
    7790    14452785 :         USE_OPLINE
    7791             :         zend_free_op free_op1;
    7792             :         zval *val;
    7793             :         int ret;
    7794             : 
    7795             :         SAVE_OPLINE();
    7796    28905570 :         val = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    7797             : 
    7798    14452785 :         if (IS_TMP_VAR == IS_TMP_VAR && EXPECTED(Z_TYPE_P(val) == IS_BOOL)) {
    7799    14317244 :                 ret = Z_LVAL_P(val);
    7800             :         } else {
    7801      135541 :                 ret = i_zend_is_true(val TSRMLS_CC);
    7802      135541 :                 zval_dtor(free_op1.var);
    7803      135541 :                 if (UNEXPECTED(EG(exception) != NULL)) {
    7804           0 :                         HANDLE_EXCEPTION();
    7805             :                 }
    7806             :         }
    7807    14452785 :         if (!ret) {
    7808             : #if DEBUG_ZEND>=2
    7809             :                 printf("Conditional jmp to %d\n", opline->op2.opline_num);
    7810             : #endif
    7811     9352328 :                 ZEND_VM_SET_OPCODE(opline->op2.jmp_addr);
    7812     9352328 :                 ZEND_VM_CONTINUE();
    7813             :         }
    7814             : 
    7815     5100457 :         ZEND_VM_NEXT_OPCODE();
    7816             : }
    7817             : 
    7818       95747 : static int ZEND_FASTCALL  ZEND_JMPNZ_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7819             : {
    7820       95747 :         USE_OPLINE
    7821             :         zend_free_op free_op1;
    7822             :         zval *val;
    7823             :         int ret;
    7824             : 
    7825             :         SAVE_OPLINE();
    7826      191494 :         val = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    7827             : 
    7828       95747 :         if (IS_TMP_VAR == IS_TMP_VAR && EXPECTED(Z_TYPE_P(val) == IS_BOOL)) {
    7829       95747 :                 ret = Z_LVAL_P(val);
    7830             :         } else {
    7831           0 :                 ret = i_zend_is_true(val TSRMLS_CC);
    7832           0 :                 zval_dtor(free_op1.var);
    7833           0 :                 if (UNEXPECTED(EG(exception) != NULL)) {
    7834           0 :                         HANDLE_EXCEPTION();
    7835             :                 }
    7836             :         }
    7837       95747 :         if (ret) {
    7838             : #if DEBUG_ZEND>=2
    7839             :                 printf("Conditional jmp to %d\n", opline->op2.opline_num);
    7840             : #endif
    7841       95406 :                 ZEND_VM_SET_OPCODE(opline->op2.jmp_addr);
    7842       95406 :                 ZEND_VM_CONTINUE();
    7843             :         }
    7844             : 
    7845         341 :         ZEND_VM_NEXT_OPCODE();
    7846             : }
    7847             : 
    7848     3926765 : static int ZEND_FASTCALL  ZEND_JMPZNZ_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7849             : {
    7850     3926765 :         USE_OPLINE
    7851             :         zend_free_op free_op1;
    7852             :         zval *val;
    7853             :         int retval;
    7854             : 
    7855             :         SAVE_OPLINE();
    7856     7853530 :         val = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    7857             : 
    7858     3926765 :         if (IS_TMP_VAR == IS_TMP_VAR && EXPECTED(Z_TYPE_P(val) == IS_BOOL)) {
    7859     3926765 :                 retval = Z_LVAL_P(val);
    7860             :         } else {
    7861           0 :                 retval = i_zend_is_true(val TSRMLS_CC);
    7862           0 :                 zval_dtor(free_op1.var);
    7863           0 :                 if (UNEXPECTED(EG(exception) != NULL)) {
    7864           0 :                         HANDLE_EXCEPTION();
    7865             :                 }
    7866             :         }
    7867     3926765 :         if (EXPECTED(retval != 0)) {
    7868             : #if DEBUG_ZEND>=2
    7869             :                 printf("Conditional jmp on true to %d\n", opline->extended_value);
    7870             : #endif
    7871     3801927 :                 ZEND_VM_SET_OPCODE(&EX(op_array)->opcodes[opline->extended_value]);
    7872     3801927 :                 ZEND_VM_CONTINUE(); /* CHECK_ME */
    7873             :         } else {
    7874             : #if DEBUG_ZEND>=2
    7875             :                 printf("Conditional jmp on false to %d\n", opline->op2.opline_num);
    7876             : #endif
    7877      124838 :                 ZEND_VM_SET_OPCODE(&EX(op_array)->opcodes[opline->op2.opline_num]);
    7878      124838 :                 ZEND_VM_CONTINUE(); /* CHECK_ME */
    7879             :         }
    7880             : }
    7881             : 
    7882     2060339 : static int ZEND_FASTCALL  ZEND_JMPZ_EX_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7883             : {
    7884     2060339 :         USE_OPLINE
    7885             :         zend_free_op free_op1;
    7886             :         zval *val;
    7887             :         int retval;
    7888             : 
    7889             :         SAVE_OPLINE();
    7890     4120678 :         val = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    7891             : 
    7892     2060339 :         if (IS_TMP_VAR == IS_TMP_VAR && EXPECTED(Z_TYPE_P(val) == IS_BOOL)) {
    7893     2060330 :                 retval = Z_LVAL_P(val);
    7894             :         } else {
    7895           9 :                 retval = i_zend_is_true(val TSRMLS_CC);
    7896           9 :                 zval_dtor(free_op1.var);
    7897           9 :                 if (UNEXPECTED(EG(exception) != NULL)) {
    7898           0 :                         HANDLE_EXCEPTION();
    7899             :                 }
    7900             :         }
    7901     2060339 :         Z_LVAL(EX_T(opline->result.var).tmp_var) = retval;
    7902     2060339 :         Z_TYPE(EX_T(opline->result.var).tmp_var) = IS_BOOL;
    7903     2060339 :         if (!retval) {
    7904             : #if DEBUG_ZEND>=2
    7905             :                 printf("Conditional jmp to %d\n", opline->op2.opline_num);
    7906             : #endif
    7907     1038727 :                 ZEND_VM_SET_OPCODE(opline->op2.jmp_addr);
    7908     1038727 :                 ZEND_VM_CONTINUE();
    7909             :         }
    7910     1021612 :         ZEND_VM_NEXT_OPCODE();
    7911             : }
    7912             : 
    7913      364661 : static int ZEND_FASTCALL  ZEND_JMPNZ_EX_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7914             : {
    7915      364661 :         USE_OPLINE
    7916             :         zend_free_op free_op1;
    7917             :         zval *val;
    7918             :         int retval;
    7919             : 
    7920             :         SAVE_OPLINE();
    7921      729322 :         val = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    7922             : 
    7923      364661 :         if (IS_TMP_VAR == IS_TMP_VAR && EXPECTED(Z_TYPE_P(val) == IS_BOOL)) {
    7924      364661 :                 retval = Z_LVAL_P(val);
    7925             :         } else {
    7926           0 :                 retval = i_zend_is_true(val TSRMLS_CC);
    7927           0 :                 zval_dtor(free_op1.var);
    7928           0 :                 if (UNEXPECTED(EG(exception) != NULL)) {
    7929           0 :                         HANDLE_EXCEPTION();
    7930             :                 }
    7931             :         }
    7932      364661 :         Z_LVAL(EX_T(opline->result.var).tmp_var) = retval;
    7933      364661 :         Z_TYPE(EX_T(opline->result.var).tmp_var) = IS_BOOL;
    7934      364661 :         if (retval) {
    7935             : #if DEBUG_ZEND>=2
    7936             :                 printf("Conditional jmp to %d\n", opline->op2.opline_num);
    7937             : #endif
    7938       52679 :                 ZEND_VM_SET_OPCODE(opline->op2.jmp_addr);
    7939       52679 :                 ZEND_VM_CONTINUE();
    7940             :         }
    7941      311982 :         ZEND_VM_NEXT_OPCODE();
    7942             : }
    7943             : 
    7944     4472736 : static int ZEND_FASTCALL  ZEND_FREE_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7945             : {
    7946     4472736 :         USE_OPLINE
    7947             : 
    7948             :         SAVE_OPLINE();
    7949             :         if (IS_TMP_VAR == IS_TMP_VAR) {
    7950     4472736 :                 zendi_zval_dtor(EX_T(opline->op1.var).tmp_var);
    7951             :         } else {
    7952             :                 zval_ptr_dtor(&EX_T(opline->op1.var).var.ptr);
    7953             :         }
    7954             :         CHECK_EXCEPTION();
    7955     4472736 :         ZEND_VM_NEXT_OPCODE();
    7956             : }
    7957             : 
    7958      237549 : static int ZEND_FASTCALL  ZEND_RETURN_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    7959             : {
    7960      237549 :         USE_OPLINE
    7961             :         zval *retval_ptr;
    7962             :         zend_free_op free_op1;
    7963             : 
    7964             :         SAVE_OPLINE();
    7965      475098 :         retval_ptr = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    7966             : 
    7967      237549 :         if (!EG(return_value_ptr_ptr)) {
    7968           0 :                 zval_dtor(free_op1.var);
    7969             :         } else {
    7970             :                 if (IS_TMP_VAR == IS_CONST ||
    7971             :                     IS_TMP_VAR == IS_TMP_VAR ||
    7972             :                     PZVAL_IS_REF(retval_ptr)) {
    7973             :                         zval *ret;
    7974             : 
    7975      237549 :                         ALLOC_ZVAL(ret);
    7976      237549 :                         INIT_PZVAL_COPY(ret, retval_ptr);
    7977      237549 :                         if (IS_TMP_VAR != IS_TMP_VAR) {
    7978             :                                 zval_copy_ctor(ret);
    7979             :                         }
    7980      237549 :                         *EG(return_value_ptr_ptr) = ret;
    7981             : 
    7982             :                 } else if ((IS_TMP_VAR == IS_CV || IS_TMP_VAR == IS_VAR) &&
    7983             :                            retval_ptr == &EG(uninitialized_zval)) {
    7984             :                         zval *ret;
    7985             : 
    7986             :                         if (IS_TMP_VAR == IS_VAR) {
    7987             :                                 Z_DELREF_P(retval_ptr);
    7988             :                         }
    7989             :                         ALLOC_INIT_ZVAL(ret);
    7990             :                         *EG(return_value_ptr_ptr) = ret;
    7991             :                 } else {
    7992             :                         *EG(return_value_ptr_ptr) = retval_ptr;
    7993             :                         if (IS_TMP_VAR == IS_CV) {
    7994             :                                 Z_ADDREF_P(retval_ptr);
    7995             :                         }
    7996             :                 }
    7997             :         }
    7998      237549 :         return zend_leave_helper_SPEC(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    7999             : }
    8000             : 
    8001           0 : static int ZEND_FASTCALL  ZEND_RETURN_BY_REF_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8002             : {
    8003           0 :         USE_OPLINE
    8004             :         zval *retval_ptr;
    8005             :         zval **retval_ptr_ptr;
    8006             :         zend_free_op free_op1;
    8007             : 
    8008             :         SAVE_OPLINE();
    8009             : 
    8010             :         do {
    8011             :                 if (IS_TMP_VAR == IS_CONST || IS_TMP_VAR == IS_TMP_VAR ||
    8012             :                     (IS_TMP_VAR == IS_VAR && opline->extended_value == ZEND_RETURNS_VALUE)) {
    8013             :                         /* Not supposed to happen, but we'll allow it */
    8014           0 :                         zend_error(E_NOTICE, "Only variable references should be returned by reference");
    8015             : 
    8016           0 :                         retval_ptr = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    8017           0 :                         if (!EG(return_value_ptr_ptr)) {
    8018             :                                 if (IS_TMP_VAR == IS_TMP_VAR) {
    8019           0 :                                         zval_dtor(free_op1.var);
    8020             :                                 }
    8021           0 :                         } else if (!1) { /* Not a temp var */
    8022             :                                 zval *ret;
    8023             : 
    8024             :                                 ALLOC_ZVAL(ret);
    8025             :                                 INIT_PZVAL_COPY(ret, retval_ptr);
    8026             :                                 zval_copy_ctor(ret);
    8027             :                                 *EG(return_value_ptr_ptr) = ret;
    8028             :                         } else {
    8029             :                                 zval *ret;
    8030             : 
    8031           0 :                                 ALLOC_ZVAL(ret);
    8032           0 :                                 INIT_PZVAL_COPY(ret, retval_ptr);
    8033           0 :                                 *EG(return_value_ptr_ptr) = ret;
    8034             :                         }
    8035           0 :                         break;
    8036             :                 }
    8037             : 
    8038             :                 retval_ptr_ptr = NULL;
    8039             : 
    8040             :                 if (IS_TMP_VAR == IS_VAR && UNEXPECTED(retval_ptr_ptr == NULL)) {
    8041             :                         zend_error_noreturn(E_ERROR, "Cannot return string offsets by reference");
    8042             :                 }
    8043             : 
    8044             :                 if (IS_TMP_VAR == IS_VAR && !Z_ISREF_PP(retval_ptr_ptr)) {
    8045             :                         if (opline->extended_value == ZEND_RETURNS_FUNCTION &&
    8046             :                             EX_T(opline->op1.var).var.fcall_returned_reference) {
    8047             :                         } else if (EX_T(opline->op1.var).var.ptr_ptr == &EX_T(opline->op1.var).var.ptr) {
    8048             :                                 zend_error(E_NOTICE, "Only variable references should be returned by reference");
    8049             :                                 if (EG(return_value_ptr_ptr)) {
    8050             :                                         zval *ret;
    8051             : 
    8052             :                                         ALLOC_ZVAL(ret);
    8053             :                                         INIT_PZVAL_COPY(ret, *retval_ptr_ptr);
    8054             :                                         zval_copy_ctor(ret);
    8055             :                                         *EG(return_value_ptr_ptr) = ret;
    8056             :                                 }
    8057             :                                 break;
    8058             :                         }
    8059             :                 }
    8060             : 
    8061             :                 if (EG(return_value_ptr_ptr)) {
    8062             :                         SEPARATE_ZVAL_TO_MAKE_IS_REF(retval_ptr_ptr);
    8063             :                         Z_ADDREF_PP(retval_ptr_ptr);
    8064             : 
    8065             :                         *EG(return_value_ptr_ptr) = *retval_ptr_ptr;
    8066             :                 }
    8067             :         } while (0);
    8068             : 
    8069           0 :         return zend_leave_helper_SPEC(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    8070             : }
    8071             : 
    8072           0 : static int ZEND_FASTCALL  ZEND_THROW_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8073             : {
    8074           0 :         USE_OPLINE
    8075             :         zval *value;
    8076             :         zval *exception;
    8077             :         zend_free_op free_op1;
    8078             : 
    8079             :         SAVE_OPLINE();
    8080           0 :         value = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    8081             : 
    8082           0 :         if (IS_TMP_VAR == IS_CONST || UNEXPECTED(Z_TYPE_P(value) != IS_OBJECT)) {
    8083           0 :                 if (UNEXPECTED(EG(exception) != NULL)) {
    8084           0 :                         HANDLE_EXCEPTION();
    8085             :                 }
    8086           0 :                 zend_error_noreturn(E_ERROR, "Can only throw objects");
    8087             :         }
    8088             : 
    8089           0 :         zend_exception_save(TSRMLS_C);
    8090             :         /* Not sure if a complete copy is what we want here */
    8091           0 :         ALLOC_ZVAL(exception);
    8092           0 :         INIT_PZVAL_COPY(exception, value);
    8093           0 :         if (!1) {
    8094             :                 zval_copy_ctor(exception);
    8095             :         }
    8096             : 
    8097           0 :         zend_throw_exception_object(exception TSRMLS_CC);
    8098           0 :         zend_exception_restore(TSRMLS_C);
    8099             : 
    8100           0 :         HANDLE_EXCEPTION();
    8101             : }
    8102             : 
    8103     1872368 : static int ZEND_FASTCALL  ZEND_SEND_VAL_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8104             : {
    8105     1872368 :         USE_OPLINE
    8106             : 
    8107             :         SAVE_OPLINE();
    8108     1872368 :         if (opline->extended_value == ZEND_DO_FCALL_BY_NAME) {
    8109       32421 :                 if (ARG_MUST_BE_SENT_BY_REF(EX(call)->fbc, opline->op2.num)) {
    8110           0 :                         zend_error_noreturn(E_ERROR, "Cannot pass parameter %d by reference", opline->op2.num);
    8111             :                 }
    8112             :         }
    8113             : 
    8114             :         {
    8115             :                 zval *valptr;
    8116             :                 zval *value;
    8117             :                 zend_free_op free_op1;
    8118             : 
    8119     3744736 :                 value = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    8120             : 
    8121     1872368 :                 ALLOC_ZVAL(valptr);
    8122     1872368 :                 INIT_PZVAL_COPY(valptr, value);
    8123     1872368 :                 if (!1) {
    8124             :                         zval_copy_ctor(valptr);
    8125             :                 }
    8126             :                 zend_vm_stack_push(valptr TSRMLS_CC);
    8127             : 
    8128             :         }
    8129             :         CHECK_EXCEPTION();
    8130     1872368 :         ZEND_VM_NEXT_OPCODE();
    8131             : }
    8132             : 
    8133     1116698 : static int ZEND_FASTCALL  ZEND_BOOL_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8134             : {
    8135     1116698 :         USE_OPLINE
    8136             :         zend_free_op free_op1;
    8137     1116698 :         zval *retval = &EX_T(opline->result.var).tmp_var;
    8138             : 
    8139             :         SAVE_OPLINE();
    8140             :         /* PHP 3.0 returned "" for false and 1 for true, here we use 0 and 1 for now */
    8141     2233396 :         ZVAL_BOOL(retval, i_zend_is_true(_get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC) TSRMLS_CC));
    8142     1116698 :         zval_dtor(free_op1.var);
    8143             : 
    8144             :         CHECK_EXCEPTION();
    8145     1116698 :         ZEND_VM_NEXT_OPCODE();
    8146             : }
    8147             : 
    8148           2 : static int ZEND_FASTCALL  ZEND_CLONE_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8149             : {
    8150           2 :         USE_OPLINE
    8151             :         zend_free_op free_op1;
    8152             :         zval *obj;
    8153             :         zend_class_entry *ce;
    8154             :         zend_function *clone;
    8155             :         zend_object_clone_obj_t clone_call;
    8156             : 
    8157             :         SAVE_OPLINE();
    8158           4 :         obj = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    8159             : 
    8160           2 :         if (IS_TMP_VAR == IS_CONST ||
    8161             :             UNEXPECTED(Z_TYPE_P(obj) != IS_OBJECT)) {
    8162           2 :                 if (UNEXPECTED(EG(exception) != NULL)) {
    8163           0 :                         HANDLE_EXCEPTION();
    8164             :                 }
    8165           2 :                 zend_error_noreturn(E_ERROR, "__clone method called on non-object");
    8166             :         }
    8167             : 
    8168           0 :         ce = Z_OBJCE_P(obj);
    8169           0 :         clone = ce ? ce->clone : NULL;
    8170           0 :         clone_call =  Z_OBJ_HT_P(obj)->clone_obj;
    8171           0 :         if (UNEXPECTED(clone_call == NULL)) {
    8172           0 :                 if (ce) {
    8173           0 :                         zend_error_noreturn(E_ERROR, "Trying to clone an uncloneable object of class %s", ce->name);
    8174             :                 } else {
    8175           0 :                         zend_error_noreturn(E_ERROR, "Trying to clone an uncloneable object");
    8176             :                 }
    8177             :         }
    8178             : 
    8179           0 :         if (ce && clone) {
    8180           0 :                 if (clone->op_array.fn_flags & ZEND_ACC_PRIVATE) {
    8181             :                         /* Ensure that if we're calling a private function, we're allowed to do so.
    8182             :                          */
    8183           0 :                         if (UNEXPECTED(ce != EG(scope))) {
    8184           0 :                                 zend_error_noreturn(E_ERROR, "Call to private %s::__clone() from context '%s'", ce->name, EG(scope) ? EG(scope)->name : "");
    8185             :                         }
    8186           0 :                 } else if ((clone->common.fn_flags & ZEND_ACC_PROTECTED)) {
    8187             :                         /* Ensure that if we're calling a protected function, we're allowed to do so.
    8188             :                          */
    8189           0 :                         if (UNEXPECTED(!zend_check_protected(zend_get_function_root_class(clone), EG(scope)))) {
    8190           0 :                                 zend_error_noreturn(E_ERROR, "Call to protected %s::__clone() from context '%s'", ce->name, EG(scope) ? EG(scope)->name : "");
    8191             :                         }
    8192             :                 }
    8193             :         }
    8194             : 
    8195           0 :         if (EXPECTED(EG(exception) == NULL)) {
    8196             :                 zval *retval;
    8197             : 
    8198           0 :                 ALLOC_ZVAL(retval);
    8199           0 :                 Z_OBJVAL_P(retval) = clone_call(obj TSRMLS_CC);
    8200           0 :                 Z_TYPE_P(retval) = IS_OBJECT;
    8201           0 :                 Z_SET_REFCOUNT_P(retval, 1);
    8202           0 :                 Z_SET_ISREF_P(retval);
    8203           0 :                 if (!RETURN_VALUE_USED(opline) || UNEXPECTED(EG(exception) != NULL)) {
    8204           0 :                         zval_ptr_dtor(&retval);
    8205             :                 } else {
    8206           0 :                         EX_T(opline->result.var).var.ptr = retval;
    8207             :                 }
    8208             :         }
    8209             : 
    8210             :         CHECK_EXCEPTION();
    8211           0 :         ZEND_VM_NEXT_OPCODE();
    8212             : }
    8213             : 
    8214         184 : static int ZEND_FASTCALL  ZEND_CAST_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8215             : {
    8216         184 :         USE_OPLINE
    8217             :         zend_free_op free_op1;
    8218             :         zval *expr;
    8219         184 :         zval *result = &EX_T(opline->result.var).tmp_var;
    8220             : 
    8221             :         SAVE_OPLINE();
    8222         368 :         expr = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    8223             : 
    8224         184 :         if (opline->extended_value != IS_STRING) {
    8225         107 :                 ZVAL_COPY_VALUE(result, expr);
    8226         107 :                 if (!1) {
    8227             :                         zendi_zval_copy_ctor(*result);
    8228             :                 }
    8229             :         }
    8230         184 :         switch (opline->extended_value) {
    8231             :                 case IS_NULL:
    8232           0 :                         convert_to_null(result);
    8233           0 :                         break;
    8234             :                 case IS_BOOL:
    8235           3 :                         convert_to_boolean(result);
    8236           3 :                         break;
    8237             :                 case IS_LONG:
    8238          40 :                         convert_to_long(result);
    8239          40 :                         break;
    8240             :                 case IS_DOUBLE:
    8241           4 :                         convert_to_double(result);
    8242           4 :                         break;
    8243             :                 case IS_STRING: {
    8244             :                         zval var_copy;
    8245             :                         int use_copy;
    8246             : 
    8247          77 :                         zend_make_printable_zval(expr, &var_copy, &use_copy);
    8248          77 :                         if (use_copy) {
    8249          77 :                                 ZVAL_COPY_VALUE(result, &var_copy);
    8250             :                                 if (1) {
    8251          77 :                                         zval_dtor(free_op1.var);
    8252             :                                 }
    8253             :                         } else {
    8254           0 :                                 ZVAL_COPY_VALUE(result, expr);
    8255           0 :                                 if (!1) {
    8256             :                                         zendi_zval_copy_ctor(*result);
    8257             :                                 }
    8258             :                         }
    8259          77 :                         break;
    8260             :                 }
    8261             :                 case IS_ARRAY:
    8262           1 :                         convert_to_array(result);
    8263           1 :                         break;
    8264             :                 case IS_OBJECT:
    8265          59 :                         convert_to_object(result);
    8266             :                         break;
    8267             :         }
    8268             : 
    8269             :         CHECK_EXCEPTION();
    8270         184 :         ZEND_VM_NEXT_OPCODE();
    8271             : }
    8272             : 
    8273        3996 : static int ZEND_FASTCALL  ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8274             : {
    8275        3996 :         USE_OPLINE
    8276        3996 :         zend_op_array *new_op_array=NULL;
    8277             :         zend_free_op free_op1;
    8278             :         zval *inc_filename;
    8279        3996 :         zval *tmp_inc_filename = NULL;
    8280        3996 :         zend_bool failure_retval=0;
    8281             : 
    8282             :         SAVE_OPLINE();
    8283        7992 :         inc_filename = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    8284             : 
    8285        3996 :         if (inc_filename->type!=IS_STRING) {
    8286           0 :                 MAKE_STD_ZVAL(tmp_inc_filename);
    8287           0 :                 ZVAL_COPY_VALUE(tmp_inc_filename, inc_filename);
    8288           0 :                 zval_copy_ctor(tmp_inc_filename);
    8289           0 :                 convert_to_string(tmp_inc_filename);
    8290           0 :                 inc_filename = tmp_inc_filename;
    8291             :         }
    8292             : 
    8293        3996 :         if (opline->extended_value != ZEND_EVAL && strlen(Z_STRVAL_P(inc_filename)) != Z_STRLEN_P(inc_filename)) {
    8294           0 :                 if (opline->extended_value == ZEND_INCLUDE_ONCE || opline->extended_value == ZEND_INCLUDE) {
    8295           0 :                         zend_message_dispatcher(ZMSG_FAILED_INCLUDE_FOPEN, Z_STRVAL_P(inc_filename) TSRMLS_CC);
    8296             :                 } else {
    8297           0 :                         zend_message_dispatcher(ZMSG_FAILED_REQUIRE_FOPEN, Z_STRVAL_P(inc_filename) TSRMLS_CC);
    8298             :                 }
    8299             :         } else {
    8300        3996 :                 switch (opline->extended_value) {
    8301             :                         case ZEND_INCLUDE_ONCE:
    8302             :                         case ZEND_REQUIRE_ONCE: {
    8303             :                                         zend_file_handle file_handle;
    8304             :                                         char *resolved_path;
    8305             : 
    8306        1972 :                                         resolved_path = zend_resolve_path(Z_STRVAL_P(inc_filename), Z_STRLEN_P(inc_filename) TSRMLS_CC);
    8307        1972 :                                         if (resolved_path) {
    8308        1972 :                                                 failure_retval = zend_hash_exists(&EG(included_files), resolved_path, strlen(resolved_path)+1);
    8309             :                                         } else {
    8310           0 :                                                 resolved_path = Z_STRVAL_P(inc_filename);
    8311             :                                         }
    8312             : 
    8313        1972 :                                         if (failure_retval) {
    8314             :                                                 /* do nothing, file already included */
    8315        1966 :                                         } else if (SUCCESS == zend_stream_open(resolved_path, &file_handle TSRMLS_CC)) {
    8316             : 
    8317        1966 :                                                 if (!file_handle.opened_path) {
    8318           0 :                                                         file_handle.opened_path = estrdup(resolved_path);
    8319             :                                                 }
    8320             : 
    8321        1966 :                                                 if (zend_hash_add_empty_element(&EG(included_files), file_handle.opened_path, strlen(file_handle.opened_path)+1)==SUCCESS) {
    8322        1966 :                                                         new_op_array = zend_compile_file(&file_handle, (opline->extended_value==ZEND_INCLUDE_ONCE?ZEND_INCLUDE:ZEND_REQUIRE) TSRMLS_CC);
    8323        1966 :                                                         zend_destroy_file_handle(&file_handle TSRMLS_CC);
    8324             :                                                 } else {
    8325           0 :                                                         zend_file_handle_dtor(&file_handle TSRMLS_CC);
    8326           0 :                                                         failure_retval=1;
    8327             :                                                 }
    8328             :                                         } else {
    8329           0 :                                                 if (opline->extended_value == ZEND_INCLUDE_ONCE) {
    8330           0 :                                                         zend_message_dispatcher(ZMSG_FAILED_INCLUDE_FOPEN, Z_STRVAL_P(inc_filename) TSRMLS_CC);
    8331             :                                                 } else {
    8332           0 :                                                         zend_message_dispatcher(ZMSG_FAILED_REQUIRE_FOPEN, Z_STRVAL_P(inc_filename) TSRMLS_CC);
    8333             :                                                 }
    8334             :                                         }
    8335        1972 :                                         if (resolved_path != Z_STRVAL_P(inc_filename)) {
    8336        1972 :                                                 efree(resolved_path);
    8337             :                                         }
    8338             :                                 }
    8339        1972 :                                 break;
    8340             :                         case ZEND_INCLUDE:
    8341             :                         case ZEND_REQUIRE:
    8342        1548 :                                 new_op_array = compile_filename(opline->extended_value, inc_filename TSRMLS_CC);
    8343        1547 :                                 break;
    8344             :                         case ZEND_EVAL: {
    8345         476 :                                         char *eval_desc = zend_make_compiled_string_description("eval()'d code" TSRMLS_CC);
    8346             : 
    8347         476 :                                         new_op_array = zend_compile_string(inc_filename, eval_desc TSRMLS_CC);
    8348         476 :                                         efree(eval_desc);
    8349             :                                 }
    8350             :                                 break;
    8351             :                         EMPTY_SWITCH_DEFAULT_CASE()
    8352             :                 }
    8353             :         }
    8354        3995 :         if (tmp_inc_filename) {
    8355           0 :                 zval_ptr_dtor(&tmp_inc_filename);
    8356             :         }
    8357        3995 :         zval_dtor(free_op1.var);
    8358        3995 :         if (UNEXPECTED(EG(exception) != NULL)) {
    8359           0 :                 HANDLE_EXCEPTION();
    8360        3995 :         } else if (EXPECTED(new_op_array != NULL)) {
    8361        3974 :                 EX(original_return_value) = EG(return_value_ptr_ptr);
    8362        3974 :                 EG(active_op_array) = new_op_array;
    8363        3974 :                 if (RETURN_VALUE_USED(opline)) {
    8364         402 :                         EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr;
    8365         402 :                         EG(return_value_ptr_ptr) = EX_T(opline->result.var).var.ptr_ptr;
    8366             :                 } else {
    8367        3572 :                         EG(return_value_ptr_ptr) = NULL;
    8368             :                 }
    8369             : 
    8370        3974 :                 EX(function_state).function = (zend_function *) new_op_array;
    8371        3974 :                 EX(object) = NULL;
    8372             : 
    8373        3974 :                 if (!EG(active_symbol_table)) {
    8374          61 :                         zend_rebuild_symbol_table(TSRMLS_C);
    8375             :                 }
    8376             : 
    8377        3974 :                 if (EXPECTED(zend_execute_ex == execute_ex)) {
    8378        3974 :                         ZEND_VM_ENTER();
    8379             :                 } else {
    8380           0 :                         zend_execute(new_op_array TSRMLS_CC);
    8381             :                 }
    8382             : 
    8383           0 :                 EX(function_state).function = (zend_function *) EX(op_array);
    8384             : 
    8385           0 :                 EG(opline_ptr) = &EX(opline);
    8386           0 :                 EG(active_op_array) = EX(op_array);
    8387           0 :                 EG(return_value_ptr_ptr) = EX(original_return_value);
    8388           0 :                 destroy_op_array(new_op_array TSRMLS_CC);
    8389           0 :                 efree(new_op_array);
    8390           0 :                 if (UNEXPECTED(EG(exception) != NULL)) {
    8391           0 :                         zend_throw_exception_internal(NULL TSRMLS_CC);
    8392           0 :                         HANDLE_EXCEPTION();
    8393             :                 }
    8394             : 
    8395          21 :         } else if (RETURN_VALUE_USED(opline)) {
    8396             :                 zval *retval;
    8397             : 
    8398           0 :                 ALLOC_ZVAL(retval);
    8399           0 :                 ZVAL_BOOL(retval, failure_retval);
    8400           0 :                 INIT_PZVAL(retval);
    8401           0 :                 EX_T(opline->result.var).var.ptr = retval;
    8402             :         }
    8403          21 :         ZEND_VM_NEXT_OPCODE();
    8404             : }
    8405             : 
    8406       34791 : static int ZEND_FASTCALL  ZEND_FE_RESET_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8407             : {
    8408       34791 :         USE_OPLINE
    8409             :         zend_free_op free_op1;
    8410             :         zval *array_ptr, **array_ptr_ptr;
    8411             :         HashTable *fe_ht;
    8412       34791 :         zend_object_iterator *iter = NULL;
    8413       34791 :         zend_class_entry *ce = NULL;
    8414       34791 :         zend_bool is_empty = 0;
    8415             : 
    8416             :         SAVE_OPLINE();
    8417             : 
    8418       34791 :         if ((IS_TMP_VAR == IS_CV || IS_TMP_VAR == IS_VAR) &&
    8419             :             (opline->extended_value & ZEND_FE_RESET_VARIABLE)) {
    8420             :                 array_ptr_ptr = NULL;
    8421             :                 if (array_ptr_ptr == NULL || array_ptr_ptr == &EG(uninitialized_zval_ptr)) {
    8422             :                         MAKE_STD_ZVAL(array_ptr);
    8423             :                         ZVAL_NULL(array_ptr);
    8424             :                 } else if (Z_TYPE_PP(array_ptr_ptr) == IS_OBJECT) {
    8425             :                         if(Z_OBJ_HT_PP(array_ptr_ptr)->get_class_entry == NULL) {
    8426             :                                 zend_error(E_WARNING, "foreach() cannot iterate over objects without PHP class");
    8427             :                                 ZEND_VM_JMP(EX(op_array)->opcodes+opline->op2.opline_num);
    8428             :                         }
    8429             : 
    8430             :                         ce = Z_OBJCE_PP(array_ptr_ptr);
    8431             :                         if (!ce || ce->get_iterator == NULL) {
    8432             :                                 SEPARATE_ZVAL_IF_NOT_REF(array_ptr_ptr);
    8433             :                                 Z_ADDREF_PP(array_ptr_ptr);
    8434             :                         }
    8435             :                         array_ptr = *array_ptr_ptr;
    8436             :                 } else {
    8437             :                         if (Z_TYPE_PP(array_ptr_ptr) == IS_ARRAY) {
    8438             :                                 SEPARATE_ZVAL_IF_NOT_REF(array_ptr_ptr);
    8439             :                                 if (opline->extended_value & ZEND_FE_FETCH_BYREF) {
    8440             :                                         Z_SET_ISREF_PP(array_ptr_ptr);
    8441             :                                 }
    8442             :                         }
    8443             :                         array_ptr = *array_ptr_ptr;
    8444             :                         Z_ADDREF_P(array_ptr);
    8445             :                 }
    8446             :         } else {
    8447       69582 :                 array_ptr = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    8448             :                 if (1) { /* IS_TMP_VAR */
    8449             :                         zval *tmp;
    8450             : 
    8451       34791 :                         ALLOC_ZVAL(tmp);
    8452       34791 :                         INIT_PZVAL_COPY(tmp, array_ptr);
    8453       34791 :                         array_ptr = tmp;
    8454       34791 :                         if (Z_TYPE_P(array_ptr) == IS_OBJECT) {
    8455           1 :                                 ce = Z_OBJCE_P(array_ptr);
    8456           1 :                                 if (ce && ce->get_iterator) {
    8457           0 :                                         Z_DELREF_P(array_ptr);
    8458             :                                 }
    8459             :                         }
    8460             :                 } else if (Z_TYPE_P(array_ptr) == IS_OBJECT) {
    8461             :                         ce = Z_OBJCE_P(array_ptr);
    8462             :                         if (!ce || !ce->get_iterator) {
    8463             :                                 if (IS_TMP_VAR == IS_CV) {
    8464             :                                         Z_ADDREF_P(array_ptr);
    8465             :                                 }
    8466             :                         }
    8467             :                 } else if (IS_TMP_VAR == IS_CONST ||
    8468             :                            (IS_TMP_VAR == IS_CV &&
    8469             :                             !Z_ISREF_P(array_ptr) &&
    8470             :                             Z_REFCOUNT_P(array_ptr) > 1) ||
    8471             :                            (IS_TMP_VAR == IS_VAR &&
    8472             :                             !Z_ISREF_P(array_ptr) &&
    8473             :                             Z_REFCOUNT_P(array_ptr) > 2)) {
    8474             :                         zval *tmp;
    8475             : 
    8476             :                         if (IS_TMP_VAR == IS_VAR) {
    8477             :                                 Z_DELREF_P(array_ptr);
    8478             :                         }
    8479             :                         ALLOC_ZVAL(tmp);
    8480             :                         INIT_PZVAL_COPY(tmp, array_ptr);
    8481             :                         zval_copy_ctor(tmp);
    8482             :                         array_ptr = tmp;
    8483             :                 } else if (IS_TMP_VAR == IS_CV) {
    8484             :                         Z_ADDREF_P(array_ptr);
    8485             :                 }
    8486             :         }
    8487             : 
    8488       34791 :         if (ce && ce->get_iterator) {
    8489           0 :                 iter = ce->get_iterator(ce, array_ptr, opline->extended_value & ZEND_FE_RESET_REFERENCE TSRMLS_CC);
    8490             : 
    8491             :                 if (IS_TMP_VAR == IS_VAR && !(opline->extended_value & ZEND_FE_RESET_VARIABLE)) {
    8492             : 
    8493             :                 }
    8494           0 :                 if (iter && EXPECTED(EG(exception) == NULL)) {
    8495           0 :                         array_ptr = zend_iterator_wrap(iter TSRMLS_CC);
    8496             :                 } else {
    8497             :                         if (IS_TMP_VAR == IS_VAR && opline->extended_value & ZEND_FE_RESET_VARIABLE) {
    8498             : 
    8499             :                         }
    8500           0 :                         if (!EG(exception)) {
    8501           0 :                                 zend_throw_exception_ex(NULL, 0 TSRMLS_CC, "Object of type %s did not create an Iterator", ce->name);
    8502             :                         }
    8503           0 :                         zend_throw_exception_internal(NULL TSRMLS_CC);
    8504           0 :                         HANDLE_EXCEPTION();
    8505             :                 }
    8506             :         }
    8507             : 
    8508       34791 :         EX_T(opline->result.var).fe.ptr = array_ptr;
    8509             : 
    8510       34791 :         if (iter) {
    8511           0 :                 iter->index = 0;
    8512           0 :                 if (iter->funcs->rewind) {
    8513           0 :                         iter->funcs->rewind(iter TSRMLS_CC);
    8514           0 :                         if (UNEXPECTED(EG(exception) != NULL)) {
    8515           0 :                                 zval_ptr_dtor(&array_ptr);
    8516             :                                 if (IS_TMP_VAR == IS_VAR && opline->extended_value & ZEND_FE_RESET_VARIABLE) {
    8517             : 
    8518             :                                 }
    8519           0 :                                 HANDLE_EXCEPTION();
    8520             :                         }
    8521             :                 }
    8522           0 :                 is_empty = iter->funcs->valid(iter TSRMLS_CC) != SUCCESS;
    8523           0 :                 if (UNEXPECTED(EG(exception) != NULL)) {
    8524           0 :                         zval_ptr_dtor(&array_ptr);
    8525             :                         if (IS_TMP_VAR == IS_VAR && opline->extended_value & ZEND_FE_RESET_VARIABLE) {
    8526             : 
    8527             :                         }
    8528           0 :                         HANDLE_EXCEPTION();
    8529             :                 }
    8530           0 :                 iter->index = -1; /* will be set to 0 before using next handler */
    8531       34791 :         } else if ((fe_ht = HASH_OF(array_ptr)) != NULL) {
    8532       34791 :                 zend_hash_internal_pointer_reset(fe_ht);
    8533       34791 :                 if (ce) {
    8534           1 :                         zend_object *zobj = zend_objects_get_address(array_ptr TSRMLS_CC);
    8535           2 :                         while (zend_hash_has_more_elements(fe_ht) == SUCCESS) {
    8536             :                                 char *str_key;
    8537             :                                 uint str_key_len;
    8538             :                                 ulong int_key;
    8539             :                                 zend_uchar key_type;
    8540             : 
    8541           0 :                                 key_type = zend_hash_get_current_key_ex(fe_ht, &str_key, &str_key_len, &int_key, 0, NULL);
    8542           0 :                                 if (key_type != HASH_KEY_NON_EXISTENT &&
    8543             :                                         (key_type == HASH_KEY_IS_LONG ||
    8544           0 :                                      zend_check_property_access(zobj, str_key, str_key_len-1 TSRMLS_CC) == SUCCESS)) {
    8545             :                                         break;
    8546             :                                 }
    8547           0 :                                 zend_hash_move_forward(fe_ht);
    8548             :                         }
    8549             :                 }
    8550       34791 :                 is_empty = zend_hash_has_more_elements(fe_ht) != SUCCESS;
    8551       34791 :                 zend_hash_get_pointer(fe_ht, &EX_T(opline->result.var).fe.fe_pos);
    8552             :         } else {
    8553           0 :                 zend_error(E_WARNING, "Invalid argument supplied for foreach()");
    8554           0 :                 is_empty = 1;
    8555             :         }
    8556             : 
    8557             :         if (IS_TMP_VAR == IS_VAR && opline->extended_value & ZEND_FE_RESET_VARIABLE) {
    8558             : 
    8559             :         }
    8560       34791 :         if (is_empty) {
    8561           1 :                 ZEND_VM_JMP(EX(op_array)->opcodes+opline->op2.opline_num);
    8562             :         } else {
    8563             :                 CHECK_EXCEPTION();
    8564       34790 :                 ZEND_VM_NEXT_OPCODE();
    8565             :         }
    8566             : }
    8567             : 
    8568          64 : static int ZEND_FASTCALL  ZEND_EXIT_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8569             : {
    8570             : #if 0 || (IS_TMP_VAR != IS_UNUSED)
    8571          64 :         USE_OPLINE
    8572             : 
    8573             :         SAVE_OPLINE();
    8574             :         if (IS_TMP_VAR != IS_UNUSED) {
    8575             :                 zend_free_op free_op1;
    8576         128 :                 zval *ptr = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    8577             : 
    8578          64 :                 if (Z_TYPE_P(ptr) == IS_LONG) {
    8579           0 :                         EG(exit_status) = Z_LVAL_P(ptr);
    8580             :                 } else {
    8581          64 :                         zend_print_variable(ptr);
    8582             :                 }
    8583          64 :                 zval_dtor(free_op1.var);
    8584             :         }
    8585             : #endif
    8586          64 :         zend_bailout();
    8587           0 :         ZEND_VM_NEXT_OPCODE(); /* Never reached */
    8588             : }
    8589             : 
    8590     1449952 : static int ZEND_FASTCALL  ZEND_END_SILENCE_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8591             : {
    8592     1449952 :         USE_OPLINE
    8593             :         zval restored_error_reporting;
    8594             : 
    8595             :         SAVE_OPLINE();
    8596     1449952 :         if (!EG(error_reporting) && Z_LVAL(EX_T(opline->op1.var).tmp_var) != 0) {
    8597     1265972 :                 Z_TYPE(restored_error_reporting) = IS_LONG;
    8598     1265972 :                 Z_LVAL(restored_error_reporting) = Z_LVAL(EX_T(opline->op1.var).tmp_var);
    8599     1265972 :                 EG(error_reporting) = Z_LVAL(restored_error_reporting);
    8600     1265972 :                 convert_to_string(&restored_error_reporting);
    8601     1265972 :                 if (EXPECTED(EG(error_reporting_ini_entry) != NULL)) {
    8602     1265972 :                         if (EXPECTED(EG(error_reporting_ini_entry)->modified &&
    8603             :                             EG(error_reporting_ini_entry)->value != EG(error_reporting_ini_entry)->orig_value)) {
    8604     1265972 :                                 efree(EG(error_reporting_ini_entry)->value);
    8605             :                         }
    8606     1265972 :                         EG(error_reporting_ini_entry)->value = Z_STRVAL(restored_error_reporting);
    8607     1265972 :                         EG(error_reporting_ini_entry)->value_length = Z_STRLEN(restored_error_reporting);
    8608             :                 } else {
    8609             :                         zendi_zval_dtor(restored_error_reporting);
    8610             :                 }
    8611             :         }
    8612     1449952 :         if (EX(old_error_reporting) == &EX_T(opline->op1.var).tmp_var) {
    8613     1449949 :                 EX(old_error_reporting) = NULL;
    8614             :         }
    8615             :         CHECK_EXCEPTION();
    8616     1449952 :         ZEND_VM_NEXT_OPCODE();
    8617             : }
    8618             : 
    8619           0 : static int ZEND_FASTCALL  ZEND_JMP_SET_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8620             : {
    8621           0 :         USE_OPLINE
    8622             :         zend_free_op free_op1;
    8623             :         zval *value;
    8624             : 
    8625             :         SAVE_OPLINE();
    8626           0 :         value = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    8627             : 
    8628           0 :         if (i_zend_is_true(value TSRMLS_CC)) {
    8629           0 :                 ZVAL_COPY_VALUE(&EX_T(opline->result.var).tmp_var, value);
    8630           0 :                 if (!1) {
    8631             :                         zendi_zval_copy_ctor(EX_T(opline->result.var).tmp_var);
    8632             :                 }
    8633             : 
    8634             : #if DEBUG_ZEND>=2
    8635             :                 printf("Conditional jmp to %d\n", opline->op2.opline_num);
    8636             : #endif
    8637           0 :                 ZEND_VM_JMP(opline->op2.jmp_addr);
    8638             :         }
    8639             : 
    8640           0 :         zval_dtor(free_op1.var);
    8641             :         CHECK_EXCEPTION();
    8642           0 :         ZEND_VM_NEXT_OPCODE();
    8643             : }
    8644             : 
    8645           0 : static int ZEND_FASTCALL  ZEND_JMP_SET_VAR_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8646             : {
    8647           0 :         USE_OPLINE
    8648             :         zend_free_op free_op1;
    8649             :         zval *value, *ret;
    8650             : 
    8651             :         SAVE_OPLINE();
    8652           0 :         value = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    8653             : 
    8654           0 :         if (i_zend_is_true(value TSRMLS_CC)) {
    8655           0 :                 if (IS_TMP_VAR == IS_VAR || IS_TMP_VAR == IS_CV) {
    8656             :                         Z_ADDREF_P(value);
    8657             :                         EX_T(opline->result.var).var.ptr = value;
    8658             :                         EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr;
    8659             :                 } else {
    8660           0 :                         ALLOC_ZVAL(ret);
    8661           0 :                         INIT_PZVAL_COPY(ret, value);
    8662           0 :                         EX_T(opline->result.var).var.ptr = ret;
    8663           0 :                         EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr;
    8664           0 :                         if (!1) {
    8665             :                                 zval_copy_ctor(EX_T(opline->result.var).var.ptr);
    8666             :                         }
    8667             :                 }
    8668             : 
    8669             : #if DEBUG_ZEND>=2
    8670             :                 printf("Conditional jmp to %d\n", opline->op2.opline_num);
    8671             : #endif
    8672           0 :                 ZEND_VM_JMP(opline->op2.jmp_addr);
    8673             :         }
    8674             : 
    8675           0 :         zval_dtor(free_op1.var);
    8676             :         CHECK_EXCEPTION();
    8677           0 :         ZEND_VM_NEXT_OPCODE();
    8678             : }
    8679             : 
    8680       26984 : static int ZEND_FASTCALL  ZEND_QM_ASSIGN_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8681             : {
    8682       26984 :         USE_OPLINE
    8683             :         zend_free_op free_op1;
    8684             :         zval *value;
    8685             : 
    8686             :         SAVE_OPLINE();
    8687       53968 :         value = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    8688             : 
    8689       26984 :         ZVAL_COPY_VALUE(&EX_T(opline->result.var).tmp_var, value);
    8690       26984 :         if (!1) {
    8691             :                 zval_copy_ctor(&EX_T(opline->result.var).tmp_var);
    8692             :         }
    8693             : 
    8694             :         CHECK_EXCEPTION();
    8695       26984 :         ZEND_VM_NEXT_OPCODE();
    8696             : }
    8697             : 
    8698          93 : static int ZEND_FASTCALL  ZEND_QM_ASSIGN_VAR_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8699             : {
    8700          93 :         USE_OPLINE
    8701             :         zend_free_op free_op1;
    8702             :         zval *value, *ret;
    8703             : 
    8704             :         SAVE_OPLINE();
    8705         186 :         value = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    8706             : 
    8707          93 :         if (IS_TMP_VAR == IS_VAR || IS_TMP_VAR == IS_CV) {
    8708             :                 Z_ADDREF_P(value);
    8709             :                 EX_T(opline->result.var).var.ptr = value;
    8710             :                 EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr;
    8711             :         } else {
    8712          93 :                 ALLOC_ZVAL(ret);
    8713          93 :                 INIT_PZVAL_COPY(ret, value);
    8714          93 :                 EX_T(opline->result.var).var.ptr = ret;
    8715          93 :                 EX_T(opline->result.var).var.ptr_ptr = &EX_T(opline->result.var).var.ptr;
    8716          93 :                 if (!1) {
    8717             :                         zval_copy_ctor(EX_T(opline->result.var).var.ptr);
    8718             :                 }
    8719             :         }
    8720             : 
    8721             :         CHECK_EXCEPTION();
    8722          93 :         ZEND_VM_NEXT_OPCODE();
    8723             : }
    8724             : 
    8725           5 : static int ZEND_FASTCALL  ZEND_INSTANCEOF_SPEC_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8726             : {
    8727           5 :         USE_OPLINE
    8728             :         zend_free_op free_op1;
    8729             :         zval *expr;
    8730             :         zend_bool result;
    8731             : 
    8732             :         SAVE_OPLINE();
    8733          10 :         expr = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    8734             : 
    8735          10 :         if (Z_TYPE_P(expr) == IS_OBJECT && Z_OBJ_HT_P(expr)->get_class_entry) {
    8736           5 :                 result = instanceof_function(Z_OBJCE_P(expr), EX_T(opline->op2.var).class_entry TSRMLS_CC);
    8737             :         } else {
    8738           0 :                 result = 0;
    8739             :         }
    8740           5 :         ZVAL_BOOL(&EX_T(opline->result.var).tmp_var, result);
    8741           5 :         zval_dtor(free_op1.var);
    8742             :         CHECK_EXCEPTION();
    8743           5 :         ZEND_VM_NEXT_OPCODE();
    8744             : }
    8745             : 
    8746      145778 : static int ZEND_FASTCALL  ZEND_ADD_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8747             : {
    8748      145778 :         USE_OPLINE
    8749             :         zend_free_op free_op1;
    8750             : 
    8751             :         SAVE_OPLINE();
    8752      291556 :         fast_add_function(&EX_T(opline->result.var).tmp_var,
    8753             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    8754             :                 opline->op2.zv TSRMLS_CC);
    8755      145778 :         zval_dtor(free_op1.var);
    8756             : 
    8757             :         CHECK_EXCEPTION();
    8758      145778 :         ZEND_VM_NEXT_OPCODE();
    8759             : }
    8760             : 
    8761         431 : static int ZEND_FASTCALL  ZEND_SUB_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8762             : {
    8763         431 :         USE_OPLINE
    8764             :         zend_free_op free_op1;
    8765             : 
    8766             :         SAVE_OPLINE();
    8767         862 :         fast_sub_function(&EX_T(opline->result.var).tmp_var,
    8768             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    8769             :                 opline->op2.zv TSRMLS_CC);
    8770         431 :         zval_dtor(free_op1.var);
    8771             : 
    8772             :         CHECK_EXCEPTION();
    8773         431 :         ZEND_VM_NEXT_OPCODE();
    8774             : }
    8775             : 
    8776      176397 : static int ZEND_FASTCALL  ZEND_MUL_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8777             : {
    8778      176397 :         USE_OPLINE
    8779             :         zend_free_op free_op1;
    8780             : 
    8781             :         SAVE_OPLINE();
    8782      352794 :         fast_mul_function(&EX_T(opline->result.var).tmp_var,
    8783             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    8784             :                 opline->op2.zv TSRMLS_CC);
    8785      176397 :         zval_dtor(free_op1.var);
    8786             : 
    8787             :         CHECK_EXCEPTION();
    8788      176397 :         ZEND_VM_NEXT_OPCODE();
    8789             : }
    8790             : 
    8791          37 : static int ZEND_FASTCALL  ZEND_DIV_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8792             : {
    8793          37 :         USE_OPLINE
    8794             :         zend_free_op free_op1;
    8795             : 
    8796             :         SAVE_OPLINE();
    8797          74 :         fast_div_function(&EX_T(opline->result.var).tmp_var,
    8798             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    8799             :                 opline->op2.zv TSRMLS_CC);
    8800          37 :         zval_dtor(free_op1.var);
    8801             : 
    8802             :         CHECK_EXCEPTION();
    8803          37 :         ZEND_VM_NEXT_OPCODE();
    8804             : }
    8805             : 
    8806           6 : static int ZEND_FASTCALL  ZEND_MOD_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8807             : {
    8808           6 :         USE_OPLINE
    8809             :         zend_free_op free_op1;
    8810             : 
    8811             :         SAVE_OPLINE();
    8812          12 :         fast_mod_function(&EX_T(opline->result.var).tmp_var,
    8813             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    8814             :                 opline->op2.zv TSRMLS_CC);
    8815           6 :         zval_dtor(free_op1.var);
    8816             : 
    8817             :         CHECK_EXCEPTION();
    8818           6 :         ZEND_VM_NEXT_OPCODE();
    8819             : }
    8820             : 
    8821          39 : static int ZEND_FASTCALL  ZEND_SL_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8822             : {
    8823          39 :         USE_OPLINE
    8824             :         zend_free_op free_op1;
    8825             : 
    8826             :         SAVE_OPLINE();
    8827          78 :         shift_left_function(&EX_T(opline->result.var).tmp_var,
    8828             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    8829             :                 opline->op2.zv TSRMLS_CC);
    8830          39 :         zval_dtor(free_op1.var);
    8831             : 
    8832             :         CHECK_EXCEPTION();
    8833          39 :         ZEND_VM_NEXT_OPCODE();
    8834             : }
    8835             : 
    8836           1 : static int ZEND_FASTCALL  ZEND_SR_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8837             : {
    8838           1 :         USE_OPLINE
    8839             :         zend_free_op free_op1;
    8840             : 
    8841             :         SAVE_OPLINE();
    8842           2 :         shift_right_function(&EX_T(opline->result.var).tmp_var,
    8843             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    8844             :                 opline->op2.zv TSRMLS_CC);
    8845           1 :         zval_dtor(free_op1.var);
    8846             : 
    8847             :         CHECK_EXCEPTION();
    8848           1 :         ZEND_VM_NEXT_OPCODE();
    8849             : }
    8850             : 
    8851      324997 : static int ZEND_FASTCALL  ZEND_CONCAT_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8852             : {
    8853      324997 :         USE_OPLINE
    8854             :         zend_free_op free_op1;
    8855             : 
    8856             :         SAVE_OPLINE();
    8857      649994 :         concat_function(&EX_T(opline->result.var).tmp_var,
    8858             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    8859             :                 opline->op2.zv TSRMLS_CC);
    8860      324997 :         zval_dtor(free_op1.var);
    8861             : 
    8862             :         CHECK_EXCEPTION();
    8863      324997 :         ZEND_VM_NEXT_OPCODE();
    8864             : }
    8865             : 
    8866        2999 : static int ZEND_FASTCALL  ZEND_IS_IDENTICAL_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8867             : {
    8868        2999 :         USE_OPLINE
    8869             :         zend_free_op free_op1;
    8870             : 
    8871             :         SAVE_OPLINE();
    8872        5998 :         is_identical_function(&EX_T(opline->result.var).tmp_var,
    8873             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    8874             :                 opline->op2.zv TSRMLS_CC);
    8875        2999 :         zval_dtor(free_op1.var);
    8876             : 
    8877             :         CHECK_EXCEPTION();
    8878        2999 :         ZEND_VM_NEXT_OPCODE();
    8879             : }
    8880             : 
    8881           0 : static int ZEND_FASTCALL  ZEND_IS_NOT_IDENTICAL_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8882             : {
    8883           0 :         USE_OPLINE
    8884             :         zend_free_op free_op1;
    8885           0 :         zval *result = &EX_T(opline->result.var).tmp_var;
    8886             : 
    8887             :         SAVE_OPLINE();
    8888           0 :         is_identical_function(result,
    8889             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    8890             :                 opline->op2.zv TSRMLS_CC);
    8891           0 :         Z_LVAL_P(result) = !Z_LVAL_P(result);
    8892           0 :         zval_dtor(free_op1.var);
    8893             : 
    8894             :         CHECK_EXCEPTION();
    8895           0 :         ZEND_VM_NEXT_OPCODE();
    8896             : }
    8897             : 
    8898        1049 : static int ZEND_FASTCALL  ZEND_IS_EQUAL_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8899             : {
    8900        1049 :         USE_OPLINE
    8901             :         zend_free_op free_op1;
    8902        1049 :         zval *result = &EX_T(opline->result.var).tmp_var;
    8903             : 
    8904             :         SAVE_OPLINE();
    8905        2098 :         ZVAL_BOOL(result, fast_equal_function(result,
    8906             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    8907             :                 opline->op2.zv TSRMLS_CC));
    8908        1049 :         zval_dtor(free_op1.var);
    8909             : 
    8910             :         CHECK_EXCEPTION();
    8911        1049 :         ZEND_VM_NEXT_OPCODE();
    8912             : }
    8913             : 
    8914       27118 : static int ZEND_FASTCALL  ZEND_IS_NOT_EQUAL_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8915             : {
    8916       27118 :         USE_OPLINE
    8917             :         zend_free_op free_op1;
    8918       27118 :         zval *result = &EX_T(opline->result.var).tmp_var;
    8919             : 
    8920             :         SAVE_OPLINE();
    8921       54236 :         ZVAL_BOOL(result, fast_not_equal_function(result,
    8922             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    8923             :                 opline->op2.zv TSRMLS_CC));
    8924       27118 :         zval_dtor(free_op1.var);
    8925             : 
    8926             :         CHECK_EXCEPTION();
    8927       27118 :         ZEND_VM_NEXT_OPCODE();
    8928             : }
    8929             : 
    8930      217338 : static int ZEND_FASTCALL  ZEND_IS_SMALLER_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8931             : {
    8932      217338 :         USE_OPLINE
    8933             :         zend_free_op free_op1;
    8934      217338 :         zval *result = &EX_T(opline->result.var).tmp_var;
    8935             : 
    8936             :         SAVE_OPLINE();
    8937      434676 :         ZVAL_BOOL(result, fast_is_smaller_function(result,
    8938             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    8939             :                 opline->op2.zv TSRMLS_CC));
    8940      217338 :         zval_dtor(free_op1.var);
    8941             : 
    8942             :         CHECK_EXCEPTION();
    8943      217338 :         ZEND_VM_NEXT_OPCODE();
    8944             : }
    8945             : 
    8946           0 : static int ZEND_FASTCALL  ZEND_IS_SMALLER_OR_EQUAL_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8947             : {
    8948           0 :         USE_OPLINE
    8949             :         zend_free_op free_op1;
    8950           0 :         zval *result = &EX_T(opline->result.var).tmp_var;
    8951             : 
    8952             :         SAVE_OPLINE();
    8953           0 :         ZVAL_BOOL(result, fast_is_smaller_or_equal_function(result,
    8954             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    8955             :                 opline->op2.zv TSRMLS_CC));
    8956           0 :         zval_dtor(free_op1.var);
    8957             : 
    8958             :         CHECK_EXCEPTION();
    8959           0 :         ZEND_VM_NEXT_OPCODE();
    8960             : }
    8961             : 
    8962          22 : static int ZEND_FASTCALL  ZEND_BW_OR_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8963             : {
    8964          22 :         USE_OPLINE
    8965             :         zend_free_op free_op1;
    8966             : 
    8967             :         SAVE_OPLINE();
    8968          44 :         bitwise_or_function(&EX_T(opline->result.var).tmp_var,
    8969             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    8970             :                 opline->op2.zv TSRMLS_CC);
    8971          22 :         zval_dtor(free_op1.var);
    8972             : 
    8973             :         CHECK_EXCEPTION();
    8974          22 :         ZEND_VM_NEXT_OPCODE();
    8975             : }
    8976             : 
    8977      210839 : static int ZEND_FASTCALL  ZEND_BW_AND_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8978             : {
    8979      210839 :         USE_OPLINE
    8980             :         zend_free_op free_op1;
    8981             : 
    8982             :         SAVE_OPLINE();
    8983      421678 :         bitwise_and_function(&EX_T(opline->result.var).tmp_var,
    8984             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    8985             :                 opline->op2.zv TSRMLS_CC);
    8986      210839 :         zval_dtor(free_op1.var);
    8987             : 
    8988             :         CHECK_EXCEPTION();
    8989      210839 :         ZEND_VM_NEXT_OPCODE();
    8990             : }
    8991             : 
    8992           0 : static int ZEND_FASTCALL  ZEND_BW_XOR_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    8993             : {
    8994           0 :         USE_OPLINE
    8995             :         zend_free_op free_op1;
    8996             : 
    8997             :         SAVE_OPLINE();
    8998           0 :         bitwise_xor_function(&EX_T(opline->result.var).tmp_var,
    8999             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    9000             :                 opline->op2.zv TSRMLS_CC);
    9001           0 :         zval_dtor(free_op1.var);
    9002             : 
    9003             :         CHECK_EXCEPTION();
    9004           0 :         ZEND_VM_NEXT_OPCODE();
    9005             : }
    9006             : 
    9007           0 : static int ZEND_FASTCALL  ZEND_BOOL_XOR_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9008             : {
    9009           0 :         USE_OPLINE
    9010             :         zend_free_op free_op1;
    9011             : 
    9012             :         SAVE_OPLINE();
    9013           0 :         boolean_xor_function(&EX_T(opline->result.var).tmp_var,
    9014             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    9015             :                 opline->op2.zv TSRMLS_CC);
    9016           0 :         zval_dtor(free_op1.var);
    9017             : 
    9018             :         CHECK_EXCEPTION();
    9019           0 :         ZEND_VM_NEXT_OPCODE();
    9020             : }
    9021             : 
    9022           0 : static int ZEND_FASTCALL zend_fetch_var_address_helper_SPEC_TMP_CONST(int type, ZEND_OPCODE_HANDLER_ARGS)
    9023             : {
    9024           0 :         USE_OPLINE
    9025             :         zend_free_op free_op1;
    9026             :         zval *varname;
    9027             :         zval **retval;
    9028             :         zval tmp_varname;
    9029             :         HashTable *target_symbol_table;
    9030             :         ulong hash_value;
    9031             : 
    9032             :         SAVE_OPLINE();
    9033           0 :         varname = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    9034             : 
    9035           0 :         if (IS_TMP_VAR != IS_CONST && UNEXPECTED(Z_TYPE_P(varname) != IS_STRING)) {
    9036           0 :                 ZVAL_COPY_VALUE(&tmp_varname, varname);
    9037             :                 zval_copy_ctor(&tmp_varname);
    9038             :                 Z_SET_REFCOUNT(tmp_varname, 1);
    9039             :                 Z_UNSET_ISREF(tmp_varname);
    9040           0 :                 convert_to_string(&tmp_varname);
    9041           0 :                 varname = &tmp_varname;
    9042             :         }
    9043             : 
    9044             :         if (IS_CONST != IS_UNUSED) {
    9045             :                 zend_class_entry *ce;
    9046             : 
    9047             :                 if (IS_CONST == IS_CONST) {
    9048           0 :                         if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    9049           0 :                                 ce = CACHED_PTR(opline->op2.literal->cache_slot);
    9050             :                         } else {
    9051           0 :                                 ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.literal + 1, 0 TSRMLS_CC);
    9052           0 :                                 if (UNEXPECTED(ce == NULL)) {
    9053           0 :                                         if (IS_TMP_VAR != IS_CONST && varname == &tmp_varname) {
    9054             :                                                 zval_dtor(&tmp_varname);
    9055             :                                         }
    9056           0 :                                         zval_dtor(free_op1.var);
    9057             :                                         CHECK_EXCEPTION();
    9058           0 :                                         ZEND_VM_NEXT_OPCODE();
    9059             :                                 }
    9060           0 :                                 CACHE_PTR(opline->op2.literal->cache_slot, ce);
    9061             :                         }
    9062             :                 } else {
    9063             :                         ce = EX_T(opline->op2.var).class_entry;
    9064             :                 }
    9065           0 :                 retval = zend_std_get_static_property(ce, Z_STRVAL_P(varname), Z_STRLEN_P(varname), 0, ((IS_TMP_VAR == IS_CONST) ? opline->op1.literal : NULL) TSRMLS_CC);
    9066           0 :                 zval_dtor(free_op1.var);
    9067             :         } else {
    9068             :                 target_symbol_table = zend_get_target_symbol_table(opline->extended_value & ZEND_FETCH_TYPE_MASK TSRMLS_CC);
    9069             : /*
    9070             :                 if (!target_symbol_table) {
    9071             :                         CHECK_EXCEPTION();
    9072             :                         ZEND_VM_NEXT_OPCODE();
    9073             :                 }
    9074             : */
    9075             :                 if (IS_TMP_VAR == IS_CONST) {
    9076             :                         hash_value = Z_HASH_P(varname);
    9077             :                 } else {
    9078             :                         hash_value = str_hash(Z_STRVAL_P(varname), Z_STRLEN_P(varname));
    9079             :                 }
    9080             : 
    9081             :                 if (zend_hash_quick_find(target_symbol_table, Z_STRVAL_P(varname), Z_STRLEN_P(varname)+1, hash_value, (void **) &retval) == FAILURE) {
    9082             :                         switch (type) {
    9083             :                                 case BP_VAR_R:
    9084             :                                 case BP_VAR_UNSET:
    9085             :                                         zend_error(E_NOTICE,"Undefined variable: %s", Z_STRVAL_P(varname));
    9086             :                                         /* break missing intentionally */
    9087             :                                 case BP_VAR_IS:
    9088             :                                         retval = &EG(uninitialized_zval_ptr);
    9089             :                                         break;
    9090             :                                 case BP_VAR_RW:
    9091             :                                         zend_error(E_NOTICE,"Undefined variable: %s", Z_STRVAL_P(varname));
    9092             :                                         /* break missing intentionally */
    9093             :                                 case BP_VAR_W:
    9094             :                                         Z_ADDREF_P(&EG(uninitialized_zval));
    9095             :                                         zend_hash_quick_update(target_symbol_table, Z_STRVAL_P(varname), Z_STRLEN_P(varname)+1, hash_value, &EG(uninitialized_zval_ptr), sizeof(zval *), (void **) &retval);
    9096             :                                         break;
    9097             :                                 EMPTY_SWITCH_DEFAULT_CASE()
    9098             :                         }
    9099             :                 }
    9100             :                 switch (opline->extended_value & ZEND_FETCH_TYPE_MASK) {
    9101             :                         case ZEND_FETCH_GLOBAL:
    9102             :                                 if (IS_TMP_VAR != IS_TMP_VAR) {
    9103             :                                         zval_dtor(free_op1.var);
    9104             :                                 }
    9105             :                                 break;
    9106             :                         case ZEND_FETCH_LOCAL:
    9107             :                                 zval_dtor(free_op1.var);
    9108             :                                 break;
    9109             :                         case ZEND_FETCH_STATIC:
    9110             :                                 zval_update_constant(retval, 1 TSRMLS_CC);
    9111             :                                 break;
    9112             :                         case ZEND_FETCH_GLOBAL_LOCK:
    9113             :                                 if (IS_TMP_VAR == IS_VAR && !free_op1.var) {
    9114             :                                         PZVAL_LOCK(*EX_T(opline->op1.var).var.ptr_ptr);
    9115             :                                 }
    9116             :                                 break;
    9117             :                 }
    9118             :         }
    9119             : 
    9120             : 
    9121           0 :         if (IS_TMP_VAR != IS_CONST && varname == &tmp_varname) {
    9122             :                 zval_dtor(&tmp_varname);
    9123             :         }
    9124           0 :         if (opline->extended_value & ZEND_FETCH_MAKE_REF) {
    9125           0 :                 SEPARATE_ZVAL_TO_MAKE_IS_REF(retval);
    9126             :         }
    9127           0 :         PZVAL_LOCK(*retval);
    9128           0 :         switch (type) {
    9129             :                 case BP_VAR_R:
    9130             :                 case BP_VAR_IS:
    9131           0 :                         EX_T(opline->result.var).var.ptr = *retval;
    9132           0 :                         break;
    9133             :                 case BP_VAR_UNSET: {
    9134             :                         zend_free_op free_res;
    9135             : 
    9136           0 :                         PZVAL_UNLOCK(*retval, &free_res);
    9137           0 :                         if (retval != &EG(uninitialized_zval_ptr)) {
    9138           0 :                                 SEPARATE_ZVAL_IF_NOT_REF(retval);
    9139             :                         }
    9140           0 :                         PZVAL_LOCK(*retval);
    9141           0 :                         FREE_OP_VAR_PTR(free_res);
    9142             :                 }
    9143             :                 /* break missing intentionally */
    9144             :                 default:
    9145           0 :                         EX_T(opline->result.var).var.ptr_ptr = retval;
    9146             :                         break;
    9147             :         }
    9148             :         CHECK_EXCEPTION();
    9149           0 :         ZEND_VM_NEXT_OPCODE();
    9150             : }
    9151             : 
    9152           0 : static int ZEND_FASTCALL  ZEND_FETCH_R_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9153             : {
    9154           0 :         return zend_fetch_var_address_helper_SPEC_TMP_CONST(BP_VAR_R, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    9155             : }
    9156             : 
    9157           0 : static int ZEND_FASTCALL  ZEND_FETCH_W_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9158             : {
    9159           0 :         return zend_fetch_var_address_helper_SPEC_TMP_CONST(BP_VAR_W, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    9160             : }
    9161             : 
    9162           0 : static int ZEND_FASTCALL  ZEND_FETCH_RW_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9163             : {
    9164           0 :         return zend_fetch_var_address_helper_SPEC_TMP_CONST(BP_VAR_RW, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    9165             : }
    9166             : 
    9167           0 : static int ZEND_FASTCALL  ZEND_FETCH_FUNC_ARG_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9168             : {
    9169           0 :         USE_OPLINE
    9170             : 
    9171           0 :         return zend_fetch_var_address_helper_SPEC_TMP_CONST(zend_is_by_ref_func_arg_fetch(opline, EX(call) TSRMLS_CC) ? BP_VAR_W : BP_VAR_R, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    9172             : }
    9173             : 
    9174           0 : static int ZEND_FASTCALL  ZEND_FETCH_UNSET_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9175             : {
    9176           0 :         return zend_fetch_var_address_helper_SPEC_TMP_CONST(BP_VAR_UNSET, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    9177             : }
    9178             : 
    9179           0 : static int ZEND_FASTCALL  ZEND_FETCH_IS_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9180             : {
    9181           0 :         return zend_fetch_var_address_helper_SPEC_TMP_CONST(BP_VAR_IS, ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    9182             : }
    9183             : 
    9184           8 : static int ZEND_FASTCALL  ZEND_FETCH_DIM_R_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9185             : {
    9186           8 :         USE_OPLINE
    9187             :         zend_free_op free_op1;
    9188             :         zval *container;
    9189             : 
    9190             :         SAVE_OPLINE();
    9191          16 :         container = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    9192           8 :         zend_fetch_dimension_address_read(&EX_T(opline->result.var), container, opline->op2.zv, IS_CONST, BP_VAR_R TSRMLS_CC);
    9193             : 
    9194             :         if (IS_TMP_VAR != IS_VAR || !(opline->extended_value & ZEND_FETCH_ADD_LOCK)) {
    9195           8 :                 zval_dtor(free_op1.var);
    9196             :         }
    9197             :         CHECK_EXCEPTION();
    9198           8 :         ZEND_VM_NEXT_OPCODE();
    9199             : }
    9200             : 
    9201          56 : static int ZEND_FASTCALL  ZEND_FETCH_DIM_TMP_VAR_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9202             : {
    9203          56 :         USE_OPLINE
    9204             :         zend_free_op free_op1;
    9205             :         zval *container;
    9206             : 
    9207             :         SAVE_OPLINE();
    9208         112 :         container = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    9209             : 
    9210          56 :         if (UNEXPECTED(Z_TYPE_P(container) != IS_ARRAY)) {
    9211             :                 PZVAL_LOCK(&EG(uninitialized_zval));
    9212           3 :                 EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
    9213             :         } else {
    9214             : 
    9215          53 :                 zval *value = *zend_fetch_dimension_address_inner(Z_ARRVAL_P(container), opline->op2.zv, IS_CONST, BP_VAR_R TSRMLS_CC);
    9216             : 
    9217             :                 PZVAL_LOCK(value);
    9218          53 :                 EX_T(opline->result.var).var.ptr = value;
    9219             : 
    9220             :         }
    9221             :         CHECK_EXCEPTION();
    9222          56 :         ZEND_VM_NEXT_OPCODE();
    9223             : }
    9224             : 
    9225     1114737 : static int ZEND_FASTCALL  ZEND_ADD_CHAR_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9226             : {
    9227     1114737 :         USE_OPLINE
    9228     1114737 :         zval *str = &EX_T(opline->result.var).tmp_var;
    9229             : 
    9230             :         SAVE_OPLINE();
    9231             : 
    9232     1114737 :         if (IS_TMP_VAR == IS_UNUSED) {
    9233             :                 /* Initialize for erealloc in add_char_to_string */
    9234             :                 Z_STRVAL_P(str) = NULL;
    9235             :                 Z_STRLEN_P(str) = 0;
    9236             :                 Z_TYPE_P(str) = IS_STRING;
    9237             : 
    9238             :                 INIT_PZVAL(str);
    9239             :         }
    9240             : 
    9241     1114737 :         add_char_to_string(str, str, opline->op2.zv);
    9242             : 
    9243             :         /* FREE_OP is missing intentionally here - we're always working on the same temporary variable */
    9244             :         /*CHECK_EXCEPTION();*/
    9245     1114737 :         ZEND_VM_NEXT_OPCODE();
    9246             : }
    9247             : 
    9248      668736 : static int ZEND_FASTCALL  ZEND_ADD_STRING_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9249             : {
    9250      668736 :         USE_OPLINE
    9251      668736 :         zval *str = &EX_T(opline->result.var).tmp_var;
    9252             : 
    9253             :         SAVE_OPLINE();
    9254             : 
    9255      668736 :         if (IS_TMP_VAR == IS_UNUSED) {
    9256             :                 /* Initialize for erealloc in add_string_to_string */
    9257             :                 Z_STRVAL_P(str) = NULL;
    9258             :                 Z_STRLEN_P(str) = 0;
    9259             :                 Z_TYPE_P(str) = IS_STRING;
    9260             : 
    9261             :                 INIT_PZVAL(str);
    9262             :         }
    9263             : 
    9264      668736 :         add_string_to_string(str, str, opline->op2.zv);
    9265             : 
    9266             :         /* FREE_OP is missing intentionally here - we're always working on the same temporary variable */
    9267             :         /*CHECK_EXCEPTION();*/
    9268      668736 :         ZEND_VM_NEXT_OPCODE();
    9269             : }
    9270             : 
    9271           0 : static int ZEND_FASTCALL  ZEND_INIT_METHOD_CALL_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9272             : {
    9273           0 :         USE_OPLINE
    9274             :         zval *function_name;
    9275             :         char *function_name_strval;
    9276             :         int function_name_strlen;
    9277             :         zend_free_op free_op1;
    9278           0 :         call_slot *call = EX(call_slots) + opline->result.num;
    9279             : 
    9280             :         SAVE_OPLINE();
    9281             : 
    9282           0 :         function_name = opline->op2.zv;
    9283             : 
    9284           0 :         if (IS_CONST != IS_CONST &&
    9285             :             UNEXPECTED(Z_TYPE_P(function_name) != IS_STRING)) {
    9286             :                 if (UNEXPECTED(EG(exception) != NULL)) {
    9287             :                         HANDLE_EXCEPTION();
    9288             :                 }
    9289             :                 zend_error_noreturn(E_ERROR, "Method name must be a string");
    9290             :         }
    9291             : 
    9292           0 :         function_name_strval = Z_STRVAL_P(function_name);
    9293           0 :         function_name_strlen = Z_STRLEN_P(function_name);
    9294             : 
    9295           0 :         call->object = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    9296             : 
    9297           0 :         if (EXPECTED(call->object != NULL) &&
    9298           0 :             EXPECTED(Z_TYPE_P(call->object) == IS_OBJECT)) {
    9299           0 :                 call->called_scope = Z_OBJCE_P(call->object);
    9300             : 
    9301           0 :                 if (IS_CONST != IS_CONST ||
    9302           0 :                     (call->fbc = CACHED_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, call->called_scope)) == NULL) {
    9303           0 :                     zval *object = call->object;
    9304             : 
    9305           0 :                         if (UNEXPECTED(Z_OBJ_HT_P(call->object)->get_method == NULL)) {
    9306           0 :                                 zend_error_noreturn(E_ERROR, "Object does not support method calls");
    9307             :                         }
    9308             : 
    9309             :                         /* First, locate the function. */
    9310           0 :                         call->fbc = Z_OBJ_HT_P(call->object)->get_method(&call->object, function_name_strval, function_name_strlen, ((IS_CONST == IS_CONST) ? (opline->op2.literal + 1) : NULL) TSRMLS_CC);
    9311           0 :                         if (UNEXPECTED(call->fbc == NULL)) {
    9312           0 :                                 zend_error_noreturn(E_ERROR, "Call to undefined method %s::%s()", Z_OBJ_CLASS_NAME_P(call->object), function_name_strval);
    9313             :                         }
    9314           0 :                         if (IS_CONST == IS_CONST &&
    9315           0 :                             EXPECTED(call->fbc->type <= ZEND_USER_FUNCTION) &&
    9316           0 :                             EXPECTED((call->fbc->common.fn_flags & (ZEND_ACC_CALL_VIA_HANDLER|ZEND_ACC_NEVER_CACHE)) == 0) &&
    9317           0 :                             EXPECTED(call->object == object)) {
    9318           0 :                                 CACHE_POLYMORPHIC_PTR(opline->op2.literal->cache_slot, call->called_scope, call->fbc);
    9319             :                         }
    9320             :                 }
    9321             :         } else {
    9322           0 :                 if (UNEXPECTED(EG(exception) != NULL)) {
    9323             : 
    9324           0 :                         HANDLE_EXCEPTION();
    9325             :                 }
    9326           0 :                 zend_error_noreturn(E_ERROR, "Call to a member function %s() on %s", function_name_strval, zend_get_type_by_const(Z_TYPE_P(call->object)));
    9327             :         }
    9328             : 
    9329           0 :         if ((call->fbc->common.fn_flags & ZEND_ACC_STATIC) != 0) {
    9330           0 :                 call->object = NULL;
    9331             :         } else {
    9332           0 :                 if (!PZVAL_IS_REF(call->object)) {
    9333           0 :                         Z_ADDREF_P(call->object); /* For $this pointer */
    9334             :                 } else {
    9335             :                         zval *this_ptr;
    9336           0 :                         ALLOC_ZVAL(this_ptr);
    9337           0 :                         INIT_PZVAL_COPY(this_ptr, call->object);
    9338             :                         zval_copy_ctor(this_ptr);
    9339           0 :                         call->object = this_ptr;
    9340             :                 }
    9341             :         }
    9342             : 
    9343           0 :         call->num_additional_args = 0;
    9344           0 :         call->is_ctor_call = 0;
    9345           0 :         EX(call) = call;
    9346             : 
    9347             : 
    9348             :         CHECK_EXCEPTION();
    9349           0 :         ZEND_VM_NEXT_OPCODE();
    9350             : }
    9351             : 
    9352           0 : static int ZEND_FASTCALL  ZEND_CASE_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9353             : {
    9354           0 :         USE_OPLINE
    9355             :         zend_free_op free_op1;
    9356             : 
    9357             :         SAVE_OPLINE();
    9358           0 :         is_equal_function(&EX_T(opline->result.var).tmp_var,
    9359             :                                  _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    9360             :                                  opline->op2.zv TSRMLS_CC);
    9361             : 
    9362             :         CHECK_EXCEPTION();
    9363           0 :         ZEND_VM_NEXT_OPCODE();
    9364             : }
    9365             : 
    9366       66534 : static int ZEND_FASTCALL  ZEND_ADD_ARRAY_ELEMENT_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9367             : {
    9368       66534 :         USE_OPLINE
    9369             :         zend_free_op free_op1;
    9370             :         zval *expr_ptr;
    9371             : 
    9372             :         SAVE_OPLINE();
    9373       66534 :         if ((IS_TMP_VAR == IS_VAR || IS_TMP_VAR == IS_CV) && opline->extended_value) {
    9374             :                 zval **expr_ptr_ptr = NULL;
    9375             : 
    9376             :                 if (IS_TMP_VAR == IS_VAR && UNEXPECTED(expr_ptr_ptr == NULL)) {
    9377             :                         zend_error_noreturn(E_ERROR, "Cannot create references to/from string offsets");
    9378             :                 }
    9379             :                 SEPARATE_ZVAL_TO_MAKE_IS_REF(expr_ptr_ptr);
    9380             :                 expr_ptr = *expr_ptr_ptr;
    9381             :                 Z_ADDREF_P(expr_ptr);
    9382             :         } else {
    9383      133068 :                 expr_ptr=_get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    9384             :                 if (1) { /* temporary variable */
    9385             :                         zval *new_expr;
    9386             : 
    9387       66534 :                         ALLOC_ZVAL(new_expr);
    9388       66534 :                         INIT_PZVAL_COPY(new_expr, expr_ptr);
    9389       66534 :                         expr_ptr = new_expr;
    9390             :                 } else if (IS_TMP_VAR == IS_CONST || PZVAL_IS_REF(expr_ptr)) {
    9391             :                         zval *new_expr;
    9392             : 
    9393             :                         ALLOC_ZVAL(new_expr);
    9394             :                         INIT_PZVAL_COPY(new_expr, expr_ptr);
    9395             :                         expr_ptr = new_expr;
    9396             :                         zendi_zval_copy_ctor(*expr_ptr);
    9397             : 
    9398             :                 } else if (IS_TMP_VAR == IS_CV) {
    9399             :                         Z_ADDREF_P(expr_ptr);
    9400             :                 }
    9401             :         }
    9402             : 
    9403             :         if (IS_CONST != IS_UNUSED) {
    9404             : 
    9405       66534 :                 zval *offset = opline->op2.zv;
    9406             :                 ulong hval;
    9407             : 
    9408       66534 :                 switch (Z_TYPE_P(offset)) {
    9409             :                         case IS_DOUBLE:
    9410           4 :                                 hval = zend_dval_to_lval(Z_DVAL_P(offset));
    9411           2 :                                 goto num_index;
    9412             :                         case IS_LONG:
    9413             :                         case IS_BOOL:
    9414       64301 :                                 hval = Z_LVAL_P(offset);
    9415             : num_index:
    9416       64303 :                                 zend_hash_index_update(Z_ARRVAL(EX_T(opline->result.var).tmp_var), hval, &expr_ptr, sizeof(zval *), NULL);
    9417       64303 :                                 break;
    9418             :                         case IS_STRING:
    9419             :                                 if (IS_CONST == IS_CONST) {
    9420        2231 :                                         hval = Z_HASH_P(offset);
    9421             :                                 } else {
    9422             :                                         ZEND_HANDLE_NUMERIC_EX(Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, goto num_index);
    9423             :                                         hval = str_hash(Z_STRVAL_P(offset), Z_STRLEN_P(offset));
    9424             :                                 }
    9425        2231 :                                 zend_hash_quick_update(Z_ARRVAL(EX_T(opline->result.var).tmp_var), Z_STRVAL_P(offset), Z_STRLEN_P(offset)+1, hval, &expr_ptr, sizeof(zval *), NULL);
    9426        2231 :                                 break;
    9427             :                         case IS_NULL:
    9428           0 :                                 zend_hash_update(Z_ARRVAL(EX_T(opline->result.var).tmp_var), "", sizeof(""), &expr_ptr, sizeof(zval *), NULL);
    9429           0 :                                 break;
    9430             :                         default:
    9431           0 :                                 zend_error(E_WARNING, "Illegal offset type");
    9432           0 :                                 zval_ptr_dtor(&expr_ptr);
    9433             :                                 /* do nothing */
    9434             :                                 break;
    9435             :                 }
    9436             : 
    9437             :         } else {
    9438             :                 zend_hash_next_index_insert(Z_ARRVAL(EX_T(opline->result.var).tmp_var), &expr_ptr, sizeof(zval *), NULL);
    9439             :         }
    9440             :         if ((IS_TMP_VAR == IS_VAR || IS_TMP_VAR == IS_CV) && opline->extended_value) {
    9441             : 
    9442             :         }
    9443             :         CHECK_EXCEPTION();
    9444       66534 :         ZEND_VM_NEXT_OPCODE();
    9445             : }
    9446             : 
    9447       22146 : static int ZEND_FASTCALL  ZEND_INIT_ARRAY_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9448             : {
    9449       22146 :         USE_OPLINE
    9450             : 
    9451       22146 :         array_init(&EX_T(opline->result.var).tmp_var);
    9452       22146 :         if (IS_TMP_VAR == IS_UNUSED) {
    9453             :                 ZEND_VM_NEXT_OPCODE();
    9454             : #if 0 || IS_TMP_VAR != IS_UNUSED
    9455             :         } else {
    9456       22146 :                 return ZEND_ADD_ARRAY_ELEMENT_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
    9457             : #endif
    9458             :         }
    9459             : }
    9460             : 
    9461           0 : static int ZEND_FASTCALL  ZEND_UNSET_VAR_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9462             : {
    9463           0 :         USE_OPLINE
    9464             :         zval tmp, *varname;
    9465             :         HashTable *target_symbol_table;
    9466             :         zend_free_op free_op1;
    9467             : 
    9468             :         SAVE_OPLINE();
    9469           0 :         if (IS_TMP_VAR == IS_CV &&
    9470             :             IS_CONST == IS_UNUSED &&
    9471             :             (opline->extended_value & ZEND_QUICK_SET)) {
    9472             :                 if (EG(active_symbol_table)) {
    9473             :                         zend_compiled_variable *cv = &CV_DEF_OF(opline->op1.var);
    9474             : 
    9475             :                         zend_delete_variable(EX(prev_execute_data), EG(active_symbol_table),  cv->name, cv->name_len+1, cv->hash_value TSRMLS_CC);
    9476             :                         EX_CV(opline->op1.var) = NULL;
    9477             :                 } else if (EX_CV(opline->op1.var)) {
    9478             :                         zval_ptr_dtor(EX_CV(opline->op1.var));
    9479             :                         EX_CV(opline->op1.var) = NULL;
    9480             :                 }
    9481             :                 CHECK_EXCEPTION();
    9482             :                 ZEND_VM_NEXT_OPCODE();
    9483             :         }
    9484             : 
    9485           0 :         varname = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    9486             : 
    9487           0 :         if (IS_TMP_VAR != IS_CONST && Z_TYPE_P(varname) != IS_STRING) {
    9488           0 :                 ZVAL_COPY_VALUE(&tmp, varname);
    9489             :                 zval_copy_ctor(&tmp);
    9490           0 :                 convert_to_string(&tmp);
    9491           0 :                 varname = &tmp;
    9492           0 :         } else if (IS_TMP_VAR == IS_VAR || IS_TMP_VAR == IS_CV) {
    9493             :                 Z_ADDREF_P(varname);
    9494             :         }
    9495             : 
    9496             :         if (IS_CONST != IS_UNUSED) {
    9497             :                 zend_class_entry *ce;
    9498             : 
    9499             :                 if (IS_CONST == IS_CONST) {
    9500           0 :                         if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    9501           0 :                                 ce = CACHED_PTR(opline->op2.literal->cache_slot);
    9502             :                         } else {
    9503           0 :                                 ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.literal + 1, 0 TSRMLS_CC);
    9504           0 :                                 if (UNEXPECTED(EG(exception) != NULL)) {
    9505           0 :                                         if (IS_TMP_VAR != IS_CONST && varname == &tmp) {
    9506             :                                                 zval_dtor(&tmp);
    9507           0 :                                         } else if (IS_TMP_VAR == IS_VAR || IS_TMP_VAR == IS_CV) {
    9508             :                                                 zval_ptr_dtor(&varname);
    9509             :                                         }
    9510           0 :                                         zval_dtor(free_op1.var);
    9511           0 :                                         HANDLE_EXCEPTION();
    9512             :                                 }
    9513           0 :                                 if (UNEXPECTED(ce == NULL)) {
    9514           0 :                                         zend_error_noreturn(E_ERROR, "Class '%s' not found", Z_STRVAL_P(opline->op2.zv));
    9515             :                                 }
    9516           0 :                                 CACHE_PTR(opline->op2.literal->cache_slot, ce);
    9517             :                         }
    9518             :                 } else {
    9519             :                         ce = EX_T(opline->op2.var).class_entry;
    9520             :                 }
    9521           0 :                 zend_std_unset_static_property(ce, Z_STRVAL_P(varname), Z_STRLEN_P(varname), ((IS_TMP_VAR == IS_CONST) ? opline->op1.literal : NULL) TSRMLS_CC);
    9522             :         } else {
    9523             :                 ulong hash_value = zend_inline_hash_func(varname->value.str.val, varname->value.str.len+1);
    9524             : 
    9525             :                 target_symbol_table = zend_get_target_symbol_table(opline->extended_value & ZEND_FETCH_TYPE_MASK TSRMLS_CC);
    9526             :                 zend_delete_variable(execute_data, target_symbol_table, varname->value.str.val, varname->value.str.len+1, hash_value TSRMLS_CC);
    9527             :         }
    9528             : 
    9529           0 :         if (IS_TMP_VAR != IS_CONST && varname == &tmp) {
    9530             :                 zval_dtor(&tmp);
    9531           0 :         } else if (IS_TMP_VAR == IS_VAR || IS_TMP_VAR == IS_CV) {
    9532             :                 zval_ptr_dtor(&varname);
    9533             :         }
    9534           0 :         zval_dtor(free_op1.var);
    9535             :         CHECK_EXCEPTION();
    9536           0 :         ZEND_VM_NEXT_OPCODE();
    9537             : }
    9538             : 
    9539           0 : static int ZEND_FASTCALL  ZEND_ISSET_ISEMPTY_VAR_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9540             : {
    9541           0 :         USE_OPLINE
    9542             :         zval **value;
    9543           0 :         zend_bool isset = 1;
    9544             : 
    9545             :         SAVE_OPLINE();
    9546           0 :         if (IS_TMP_VAR == IS_CV &&
    9547             :             IS_CONST == IS_UNUSED &&
    9548             :             (opline->extended_value & ZEND_QUICK_SET)) {
    9549             :                 if (EX_CV(opline->op1.var)) {
    9550             :                         value = EX_CV(opline->op1.var);
    9551             :                 } else if (EG(active_symbol_table)) {
    9552             :                         zend_compiled_variable *cv = &CV_DEF_OF(opline->op1.var);
    9553             : 
    9554             :                         if (zend_hash_quick_find(EG(active_symbol_table), cv->name, cv->name_len+1, cv->hash_value, (void **) &value) == FAILURE) {
    9555             :                                 isset = 0;
    9556             :                         }
    9557             :                 } else {
    9558             :                         isset = 0;
    9559             :                 }
    9560             :         } else {
    9561             :                 HashTable *target_symbol_table;
    9562             :                 zend_free_op free_op1;
    9563           0 :                 zval tmp, *varname = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    9564             : 
    9565           0 :                 if (IS_TMP_VAR != IS_CONST && Z_TYPE_P(varname) != IS_STRING) {
    9566           0 :                         ZVAL_COPY_VALUE(&tmp, varname);
    9567             :                         zval_copy_ctor(&tmp);
    9568           0 :                         convert_to_string(&tmp);
    9569           0 :                         varname = &tmp;
    9570             :                 }
    9571             : 
    9572             :                 if (IS_CONST != IS_UNUSED) {
    9573             :                         zend_class_entry *ce;
    9574             : 
    9575             :                         if (IS_CONST == IS_CONST) {
    9576           0 :                                 if (CACHED_PTR(opline->op2.literal->cache_slot)) {
    9577           0 :                                         ce = CACHED_PTR(opline->op2.literal->cache_slot);
    9578             :                                 } else {
    9579           0 :                                         ce = zend_fetch_class_by_name(Z_STRVAL_P(opline->op2.zv), Z_STRLEN_P(opline->op2.zv), opline->op2.literal + 1, 0 TSRMLS_CC);
    9580           0 :                                         if (UNEXPECTED(ce == NULL)) {
    9581             :                                                 CHECK_EXCEPTION();
    9582           0 :                                                 ZEND_VM_NEXT_OPCODE();
    9583             :                                         }
    9584           0 :                                         CACHE_PTR(opline->op2.literal->cache_slot, ce);
    9585             :                                 }
    9586             :                         } else {
    9587             :                                 ce = EX_T(opline->op2.var).class_entry;
    9588             :                         }
    9589           0 :                         value = zend_std_get_static_property(ce, Z_STRVAL_P(varname), Z_STRLEN_P(varname), 1, ((IS_TMP_VAR == IS_CONST) ? opline->op1.literal : NULL) TSRMLS_CC);
    9590           0 :                         if (!value) {
    9591           0 :                                 isset = 0;
    9592             :                         }
    9593             :                 } else {
    9594             :                         target_symbol_table = zend_get_target_symbol_table(opline->extended_value & ZEND_FETCH_TYPE_MASK TSRMLS_CC);
    9595             :                         if (zend_hash_find(target_symbol_table, varname->value.str.val, varname->value.str.len+1, (void **) &value) == FAILURE) {
    9596             :                                 isset = 0;
    9597             :                         }
    9598             :                 }
    9599             : 
    9600           0 :                 if (IS_TMP_VAR != IS_CONST && varname == &tmp) {
    9601             :                         zval_dtor(&tmp);
    9602             :                 }
    9603           0 :                 zval_dtor(free_op1.var);
    9604             :         }
    9605             : 
    9606           0 :         if (opline->extended_value & ZEND_ISSET) {
    9607           0 :                 if (isset && Z_TYPE_PP(value) != IS_NULL) {
    9608           0 :                         ZVAL_BOOL(&EX_T(opline->result.var).tmp_var, 1);
    9609             :                 } else {
    9610           0 :                         ZVAL_BOOL(&EX_T(opline->result.var).tmp_var, 0);
    9611             :                 }
    9612             :         } else /* if (opline->extended_value & ZEND_ISEMPTY) */ {
    9613           0 :                 if (!isset || !i_zend_is_true(*value TSRMLS_CC)) {
    9614           0 :                         ZVAL_BOOL(&EX_T(opline->result.var).tmp_var, 1);
    9615             :                 } else {
    9616           0 :                         ZVAL_BOOL(&EX_T(opline->result.var).tmp_var, 0);
    9617             :                 }
    9618             :         }
    9619             : 
    9620             :         CHECK_EXCEPTION();
    9621           0 :         ZEND_VM_NEXT_OPCODE();
    9622             : }
    9623             : 
    9624           0 : static int ZEND_FASTCALL  ZEND_YIELD_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9625             : {
    9626           0 :         USE_OPLINE
    9627             : 
    9628             :         /* The generator object is stored in return_value_ptr_ptr */
    9629           0 :         zend_generator *generator = (zend_generator *) EG(return_value_ptr_ptr);
    9630             : 
    9631           0 :         if (generator->flags & ZEND_GENERATOR_FORCED_CLOSE) {
    9632           0 :                 zend_error_noreturn(E_ERROR, "Cannot yield from finally in a force-closed generator");
    9633             :         }
    9634             : 
    9635             :         /* Destroy the previously yielded value */
    9636           0 :         if (generator->value) {
    9637           0 :                 zval_ptr_dtor(&generator->value);
    9638             :         }
    9639             : 
    9640             :         /* Destroy the previously yielded key */
    9641           0 :         if (generator->key) {
    9642           0 :                 zval_ptr_dtor(&generator->key);
    9643             :         }
    9644             : 
    9645             :         /* Set the new yielded value */
    9646             :         if (IS_TMP_VAR != IS_UNUSED) {
    9647             :                 zend_free_op free_op1;
    9648             : 
    9649           0 :                 if (EX(op_array)->fn_flags & ZEND_ACC_RETURN_REFERENCE) {
    9650             :                         /* Constants and temporary variables aren't yieldable by reference,
    9651             :                          * but we still allow them with a notice. */
    9652             :                         if (IS_TMP_VAR == IS_CONST || IS_TMP_VAR == IS_TMP_VAR) {
    9653             :                                 zval *value, *copy;
    9654             : 
    9655           0 :                                 zend_error(E_NOTICE, "Only variable references should be yielded by reference");
    9656             : 
    9657           0 :                                 value = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    9658           0 :                                 ALLOC_ZVAL(copy);
    9659           0 :                                 INIT_PZVAL_COPY(copy, value);
    9660             : 
    9661             :                                 /* Temporary variables don't need ctor copying */
    9662           0 :                                 if (!1) {
    9663             :                                         zval_copy_ctor(copy);
    9664             :                                 }
    9665             : 
    9666           0 :                                 generator->value = copy;
    9667             :                         } else {
    9668             :                                 zval **value_ptr = NULL;
    9669             : 
    9670             :                                 if (IS_TMP_VAR == IS_VAR && UNEXPECTED(value_ptr == NULL)) {
    9671             :                                         zend_error_noreturn(E_ERROR, "Cannot yield string offsets by reference");
    9672             :                                 }
    9673             : 
    9674             :                                 /* If a function call result is yielded and the function did
    9675             :                                  * not return by reference we throw a notice. */
    9676             :                                 if (IS_TMP_VAR == IS_VAR && !Z_ISREF_PP(value_ptr)
    9677             :                                     && !(opline->extended_value == ZEND_RETURNS_FUNCTION
    9678             :                                          && EX_T(opline->op1.var).var.fcall_returned_reference)
    9679             :                                     && EX_T(opline->op1.var).var.ptr_ptr == &EX_T(opline->op1.var).var.ptr) {
    9680             :                                         zend_error(E_NOTICE, "Only variable references should be yielded by reference");
    9681             : 
    9682             :                                         Z_ADDREF_PP(value_ptr);
    9683             :                                         generator->value = *value_ptr;
    9684             :                                 } else {
    9685             :                                         SEPARATE_ZVAL_TO_MAKE_IS_REF(value_ptr);
    9686             :                                         Z_ADDREF_PP(value_ptr);
    9687             :                                         generator->value = *value_ptr;
    9688             :                                 }
    9689             : 
    9690             :                         }
    9691             :                 } else {
    9692           0 :                         zval *value = _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC);
    9693             : 
    9694             :                         /* Consts, temporary variables and references need copying */
    9695             :                         if (IS_TMP_VAR == IS_CONST || IS_TMP_VAR == IS_TMP_VAR
    9696             :                                 || PZVAL_IS_REF(value)
    9697             :                         ) {
    9698             :                                 zval *copy;
    9699             : 
    9700           0 :                                 ALLOC_ZVAL(copy);
    9701           0 :                                 INIT_PZVAL_COPY(copy, value);
    9702             : 
    9703             :                                 /* Temporary variables don't need ctor copying */
    9704           0 :                                 if (!1) {
    9705             :                                         zval_copy_ctor(copy);
    9706             :                                 }
    9707             : 
    9708           0 :                                 generator->value = copy;
    9709             : 
    9710             :                         } else {
    9711             :                                 if (IS_TMP_VAR == IS_CV) {
    9712             :                                         Z_ADDREF_P(value);
    9713             :                                 }
    9714             :                                 generator->value = value;
    9715             :                         }
    9716             :                 }
    9717             :         } else {
    9718             :                 /* If no value was specified yield null */
    9719             :                 Z_ADDREF(EG(uninitialized_zval));
    9720             :                 generator->value = &EG(uninitialized_zval);
    9721             :         }
    9722             : 
    9723             :         /* Set the new yielded key */
    9724             :         if (IS_CONST != IS_UNUSED) {
    9725             : 
    9726           0 :                 zval *key = opline->op2.zv;
    9727             : 
    9728             :                 /* Consts, temporary variables and references need copying */
    9729             :                 if (IS_CONST == IS_CONST || IS_CONST == IS_TMP_VAR
    9730             :                         || (PZVAL_IS_REF(key) && Z_REFCOUNT_P(key) > 0)
    9731             :                 ) {
    9732             :                         zval *copy;
    9733             : 
    9734           0 :                         ALLOC_ZVAL(copy);
    9735           0 :                         INIT_PZVAL_COPY(copy, key);
    9736             : 
    9737             :                         /* Temporary variables don't need ctor copying */
    9738             :                         if (!0) {
    9739             :                                 zval_copy_ctor(copy);
    9740             :                         }
    9741             : 
    9742           0 :                         generator->key = copy;
    9743             :                 } else {
    9744             :                         Z_ADDREF_P(key);
    9745             :                         generator->key = key;
    9746             :                 }
    9747             : 
    9748           0 :                 if (Z_TYPE_P(generator->key) == IS_LONG
    9749           0 :                     && Z_LVAL_P(generator->key) > generator->largest_used_integer_key
    9750             :                 ) {
    9751           0 :                         generator->largest_used_integer_key = Z_LVAL_P(generator->key);
    9752             :                 }
    9753             : 
    9754             :         } else {
    9755             :                 /* If no key was specified we use auto-increment keys */
    9756             :                 generator->largest_used_integer_key++;
    9757             : 
    9758             :                 ALLOC_INIT_ZVAL(generator->key);
    9759             :                 ZVAL_LONG(generator->key, generator->largest_used_integer_key);
    9760             :         }
    9761             : 
    9762           0 :         if (RETURN_VALUE_USED(opline)) {
    9763             :                 /* If the return value of yield is used set the send
    9764             :                  * target and initialize it to NULL */
    9765           0 :                 generator->send_target = &EX_T(opline->result.var).var.ptr;
    9766             :                 Z_ADDREF(EG(uninitialized_zval));
    9767           0 :                 EX_T(opline->result.var).var.ptr = &EG(uninitialized_zval);
    9768             :         } else {
    9769           0 :                 generator->send_target = NULL;
    9770             :         }
    9771             : 
    9772             :         /* We increment to the next op, so we are at the correct position when the
    9773             :          * generator is resumed. */
    9774           0 :         ZEND_VM_INC_OPCODE();
    9775             : 
    9776             :         /* The GOTO VM uses a local opline variable. We need to set the opline
    9777             :          * variable in execute_data so we don't resume at an old position. */
    9778             :         SAVE_OPLINE();
    9779             : 
    9780           0 :         ZEND_VM_RETURN();
    9781             : }
    9782             : 
    9783           1 : static int ZEND_FASTCALL  ZEND_POW_SPEC_TMP_CONST_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9784             : {
    9785           1 :         USE_OPLINE
    9786             :         zend_free_op free_op1;
    9787             : 
    9788             :         SAVE_OPLINE();
    9789           2 :         pow_function(&EX_T(opline->result.var).tmp_var,
    9790             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    9791             :                 opline->op2.zv TSRMLS_CC);
    9792           1 :         zval_dtor(free_op1.var);
    9793             : 
    9794             :         CHECK_EXCEPTION();
    9795           1 :         ZEND_VM_NEXT_OPCODE();
    9796             : }
    9797             : 
    9798        3310 : static int ZEND_FASTCALL  ZEND_ADD_SPEC_TMP_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9799             : {
    9800        3310 :         USE_OPLINE
    9801             :         zend_free_op free_op1, free_op2;
    9802             : 
    9803             :         SAVE_OPLINE();
    9804        9930 :         fast_add_function(&EX_T(opline->result.var).tmp_var,
    9805             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    9806             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    9807        3310 :         zval_dtor(free_op1.var);
    9808        3310 :         zval_dtor(free_op2.var);
    9809             :         CHECK_EXCEPTION();
    9810        3310 :         ZEND_VM_NEXT_OPCODE();
    9811             : }
    9812             : 
    9813         137 : static int ZEND_FASTCALL  ZEND_SUB_SPEC_TMP_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9814             : {
    9815         137 :         USE_OPLINE
    9816             :         zend_free_op free_op1, free_op2;
    9817             : 
    9818             :         SAVE_OPLINE();
    9819         411 :         fast_sub_function(&EX_T(opline->result.var).tmp_var,
    9820             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    9821             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    9822         137 :         zval_dtor(free_op1.var);
    9823         137 :         zval_dtor(free_op2.var);
    9824             :         CHECK_EXCEPTION();
    9825         137 :         ZEND_VM_NEXT_OPCODE();
    9826             : }
    9827             : 
    9828           8 : static int ZEND_FASTCALL  ZEND_MUL_SPEC_TMP_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9829             : {
    9830           8 :         USE_OPLINE
    9831             :         zend_free_op free_op1, free_op2;
    9832             : 
    9833             :         SAVE_OPLINE();
    9834          24 :         fast_mul_function(&EX_T(opline->result.var).tmp_var,
    9835             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    9836             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    9837           8 :         zval_dtor(free_op1.var);
    9838           8 :         zval_dtor(free_op2.var);
    9839             :         CHECK_EXCEPTION();
    9840           8 :         ZEND_VM_NEXT_OPCODE();
    9841             : }
    9842             : 
    9843          10 : static int ZEND_FASTCALL  ZEND_DIV_SPEC_TMP_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9844             : {
    9845          10 :         USE_OPLINE
    9846             :         zend_free_op free_op1, free_op2;
    9847             : 
    9848             :         SAVE_OPLINE();
    9849          30 :         fast_div_function(&EX_T(opline->result.var).tmp_var,
    9850             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    9851             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    9852          10 :         zval_dtor(free_op1.var);
    9853          10 :         zval_dtor(free_op2.var);
    9854             :         CHECK_EXCEPTION();
    9855          10 :         ZEND_VM_NEXT_OPCODE();
    9856             : }
    9857             : 
    9858           0 : static int ZEND_FASTCALL  ZEND_MOD_SPEC_TMP_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9859             : {
    9860           0 :         USE_OPLINE
    9861             :         zend_free_op free_op1, free_op2;
    9862             : 
    9863             :         SAVE_OPLINE();
    9864           0 :         fast_mod_function(&EX_T(opline->result.var).tmp_var,
    9865             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    9866             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    9867           0 :         zval_dtor(free_op1.var);
    9868           0 :         zval_dtor(free_op2.var);
    9869             :         CHECK_EXCEPTION();
    9870           0 :         ZEND_VM_NEXT_OPCODE();
    9871             : }
    9872             : 
    9873           0 : static int ZEND_FASTCALL  ZEND_SL_SPEC_TMP_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9874             : {
    9875           0 :         USE_OPLINE
    9876             :         zend_free_op free_op1, free_op2;
    9877             : 
    9878             :         SAVE_OPLINE();
    9879           0 :         shift_left_function(&EX_T(opline->result.var).tmp_var,
    9880             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    9881             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    9882           0 :         zval_dtor(free_op1.var);
    9883           0 :         zval_dtor(free_op2.var);
    9884             :         CHECK_EXCEPTION();
    9885           0 :         ZEND_VM_NEXT_OPCODE();
    9886             : }
    9887             : 
    9888           0 : static int ZEND_FASTCALL  ZEND_SR_SPEC_TMP_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9889             : {
    9890           0 :         USE_OPLINE
    9891             :         zend_free_op free_op1, free_op2;
    9892             : 
    9893             :         SAVE_OPLINE();
    9894           0 :         shift_right_function(&EX_T(opline->result.var).tmp_var,
    9895             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    9896             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    9897           0 :         zval_dtor(free_op1.var);
    9898           0 :         zval_dtor(free_op2.var);
    9899             :         CHECK_EXCEPTION();
    9900           0 :         ZEND_VM_NEXT_OPCODE();
    9901             : }
    9902             : 
    9903       35556 : static int ZEND_FASTCALL  ZEND_CONCAT_SPEC_TMP_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9904             : {
    9905       35556 :         USE_OPLINE
    9906             :         zend_free_op free_op1, free_op2;
    9907             : 
    9908             :         SAVE_OPLINE();
    9909      106668 :         concat_function(&EX_T(opline->result.var).tmp_var,
    9910             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    9911             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    9912       35556 :         zval_dtor(free_op1.var);
    9913       35556 :         zval_dtor(free_op2.var);
    9914             :         CHECK_EXCEPTION();
    9915       35556 :         ZEND_VM_NEXT_OPCODE();
    9916             : }
    9917             : 
    9918           5 : static int ZEND_FASTCALL  ZEND_IS_IDENTICAL_SPEC_TMP_TMP_HANDLER(ZEND_OPCODE_HANDLER_ARGS)
    9919             : {
    9920           5 :         USE_OPLINE
    9921             :         zend_free_op free_op1, free_op2;
    9922             : 
    9923             :         SAVE_OPLINE();
    9924          15 :         is_identical_function(&EX_T(opline->result.var).tmp_var,
    9925             :                 _get_zval_ptr_tmp(opline->op1.var, execute_data, &free_op1 TSRMLS_CC),
    9926             :                 _get_zval_ptr_tmp(opline->op2.var, execute_data, &free_op2 TSRMLS_CC) TSRMLS_CC);
    9927           5 :         zval_dtor(free_op1.var);
    9928           5 :         zval_dtor(free_op2.var);
    9929             :         CHECK_EXCEPTION();
    9930           5 :         ZEND_VM_NEXT_OPCODE();
    9931             : }
    9932             : 
    9933           0 : static int ZEND_FASTCALL  ZEND_IS_NOT_IDENTICAL_SPEC_TMP_TMP_HANDLER