diff options
| author | Zeev Suraski <zeev@php.net> | 1999-12-21 20:30:04 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 1999-12-21 20:30:04 +0000 |
| commit | f0888ccaef222093c962eef72857e424f0fc5cb7 (patch) | |
| tree | dd5ae96c2287110b9cd62898ec5b10908460ccf1 /Zend/zend_execute.c | |
| parent | 42847f7d5c434b5ee9c57026b8215df883575d4e (diff) | |
| download | php-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_execute.c')
| -rw-r--r-- | Zend/zend_execute.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 6b3a1aab0a..f109ea1217 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -1806,6 +1806,8 @@ send_by_ref: if (!Ts[opline->op1.u.var].var.ptr_ptr) { get_zval_ptr(&opline->op1, Ts, &EG(free_op1), BP_VAR_R); FREE_OP(&opline->op1, EG(free_op1)); + } else { + zval_ptr_dtor(&Ts[opline->op1.u.var].var.ptr); } break; case IS_TMP_VAR: |
