mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Allow arbitrary expressions in static variable initializer
Closes GH-9301
This commit is contained in:
parent
3189a9f94a
commit
0b1d750d91
44 changed files with 1118 additions and 690 deletions
|
@ -556,6 +556,7 @@ static void zend_file_cache_serialize_op_array(zend_op_array *op_arra
|
|||
case ZEND_FE_RESET_RW:
|
||||
case ZEND_ASSERT_CHECK:
|
||||
case ZEND_JMP_NULL:
|
||||
case ZEND_BIND_INIT_STATIC_OR_JMP:
|
||||
SERIALIZE_PTR(opline->op2.jmp_addr);
|
||||
break;
|
||||
case ZEND_CATCH:
|
||||
|
@ -1404,6 +1405,7 @@ static void zend_file_cache_unserialize_op_array(zend_op_array *op_arr
|
|||
case ZEND_FE_RESET_RW:
|
||||
case ZEND_ASSERT_CHECK:
|
||||
case ZEND_JMP_NULL:
|
||||
case ZEND_BIND_INIT_STATIC_OR_JMP:
|
||||
UNSERIALIZE_PTR(opline->op2.jmp_addr);
|
||||
break;
|
||||
case ZEND_CATCH:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue