diff options
| author | Antony Dovgal <tony2001@php.net> | 2007-02-20 14:08:43 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2007-02-20 14:08:43 +0000 |
| commit | 180baf01093fc0ed73d9904b85ec93485605c752 (patch) | |
| tree | b74718736b5c5d743c1fea9ea96405ac907754f3 /ext/simplexml/simplexml.c | |
| parent | e7544f28b80abb9ba1be696d5c1ec73bf63e311c (diff) | |
| download | php-git-180baf01093fc0ed73d9904b85ec93485605c752.tar.gz | |
MFH: fix leak and errmsg
add test
Diffstat (limited to 'ext/simplexml/simplexml.c')
| -rw-r--r-- | ext/simplexml/simplexml.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index a37b858a53..8787e542a1 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -515,7 +515,10 @@ static void sxe_prop_dim_write(zval *object, zval *member, zval *value, zend_boo } /* break is missing intentionally */ default: - php_error_docref(NULL TSRMLS_CC, E_WARNING, "It is not yet possible to assign complex types to %s", attribs ? "attributes" : "properties"); + if (member == &tmp_zv) { + zval_dtor(&tmp_zv); + } + zend_error(E_WARNING, "It is not yet possible to assign complex types to %s", attribs ? "attributes" : "properties"); return; } } |
