Skip to content

Commit 383eafe

Browse files
committed
Merge branch 'PHP-5.3' into PHP-5.4
2 parents 4c83ecc + d92a89f commit 383eafe

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ PHP NEWS
33
?? ??? 2012, PHP 5.4.7
44

55
- Core:
6+
. Fixed bug (segfault while build with zts and GOTO vm-kind). (Laruence)
67
. Fixed bug #62844 (parse_url() does not recognize //). (Andrew Faulds).
78
. Fixed bug #62829 (stdint.h included on platform where HAVE_STDINT_H is not
89
set). (Felipe)

Zend/zend_vm_execute.skl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ ZEND_API void {%EXECUTOR_NAME%}(zend_op_array *op_array TSRMLS_DC)
55
DCL_OPLINE
66
zend_execute_data *execute_data;
77
zend_bool nested = 0;
8-
zend_bool original_in_execution = EG(in_execution);
98
{%HELPER_VARS%}
9+
{%EXECUTION_STATUS%}
1010

1111
{%INTERNAL_LABELS%}
1212

Zend/zend_vm_gen.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,13 @@ function gen_executor($f, $skl, $spec, $kind, $executor_name, $initializer_name,
927927
skip_blanks($f, $m[1], $m[3]."\n");
928928
}
929929
break;
930+
case "EXECUTION_STATUS":
931+
if ($kind != ZEND_VM_KIND_GOTO) {
932+
out($f, $m[1] . "zend_bool original_in_execution = EG(in_execution);\n");
933+
} else {
934+
out($f, $m[1] . "zend_bool original_in_execution = op_array? EG(in_execution) : 0;\n");
935+
}
936+
break;
930937
case "INTERNAL_LABELS":
931938
if ($kind == ZEND_VM_KIND_GOTO) {
932939
// Emit array of labels of opcode handlers and code for

0 commit comments

Comments
 (0)