summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-12-21 20:30:04 +0000
committerZeev Suraski <zeev@php.net>1999-12-21 20:30:04 +0000
commitf0888ccaef222093c962eef72857e424f0fc5cb7 (patch)
treedd5ae96c2287110b9cd62898ec5b10908460ccf1 /Zend/zend_compile.c
parent42847f7d5c434b5ee9c57026b8215df883575d4e (diff)
downloadphp-git-f0888ccaef222093c962eef72857e424f0fc5cb7.tar.gz
Fix the highlighting problem. STR_REALLOC() should be used instead of plain erealloc()
whenever you're dealing with strings that might be coming back from the engine - there seem to be a few other places like this in PHP.
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r--Zend/zend_compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index dbc413b15d..9d70d255fd 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -1251,9 +1251,9 @@ void do_switch_cond(znode *cond CLS_DC)
switch_entry.control_var = -1;
zend_stack_push(&CG(switch_cond_stack), (void *) &switch_entry, sizeof(switch_entry));
- if (opline->result.op_type == IS_VAR) {
+/* if (opline->result.op_type == IS_VAR) {
opline->result.u.EA.type |= EXT_TYPE_UNUSED;
- }
+ }*/
do_begin_loop(CLS_C);