diff options
author | foobar <sniper@php.net> | 2005-03-26 02:43:02 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2005-03-26 02:43:02 +0000 |
commit | fcba5e099c43cd2215006c511094b8ecaeba000a (patch) | |
tree | 4f57f595e1e5f18793e98c3370aebfdb8414c39e | |
parent | d203f886659af626275f5982c5553f9e02641dc2 (diff) | |
download | php-git-fcba5e099c43cd2215006c511094b8ecaeba000a.tar.gz |
- Fixed bug #28839 (SIGSEGV in interactive mode (php -a))
(kameshj at fastmail dot fm)
-rw-r--r-- | Zend/zend_execute_API.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 40ccb5e0fc..e49086acc7 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -1094,6 +1094,17 @@ void execute_new_code(TSRMLS_D) opline->op2.u.constant.is_ref = 1; opline->op2.u.constant.refcount = 2; } + switch (opline->opcode) { + case ZEND_JMP: + opline->op1.u.jmp_addr = &CG(active_op_array)->opcodes[opline->op1.u.opline_num]; + break; + case ZEND_JMPZ: + case ZEND_JMPNZ: + case ZEND_JMPZ_EX: + case ZEND_JMPNZ_EX: + opline->op2.u.jmp_addr = &CG(active_op_array)->opcodes[opline->op2.u.opline_num]; + break; + } ZEND_VM_SET_OPCODE_HANDLER(opline); opline++; } |