diff options
| author | Rob Richards <rrichards@php.net> | 2003-08-07 21:39:00 +0000 |
|---|---|---|
| committer | Rob Richards <rrichards@php.net> | 2003-08-07 21:39:00 +0000 |
| commit | 6fae803c12c0c42a2261e3432a5a75407021d960 (patch) | |
| tree | 42261b5beff9336cba483c85e842d8610da5c659 /ext | |
| parent | 12ac36ca8d4c5bbc5b6ab4c318071ee05e28d01d (diff) | |
| download | php-git-6fae803c12c0c42a2261e3432a5a75407021d960.tar.gz | |
fix bug #24957 (var_dump of object segfaults)
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/simplexml/simplexml.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index 5e94cbec62..c5084f6950 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -430,6 +430,7 @@ sxe_properties_get(zval *object TSRMLS_DC) MAKE_STD_ZVAL(newptr); array_init(newptr); + zval_add_ref(data_ptr); zend_hash_next_index_insert(Z_ARRVAL_P(newptr), data_ptr, sizeof(zval *), NULL); zend_hash_next_index_insert(Z_ARRVAL_P(newptr), &value, sizeof(zval *), NULL); |
