Bug #70151 [Nab]: soap/php_encoding.c uses wrong type to call unset_property
| From: | dmitry@php.net | Date: | Mon, 03 Aug 2015 06:37:21 +0000 |
| Subject: | Bug #70151 [Nab]: soap/php_encoding.c uses wrong type to call unset_property | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-194924@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70151&edit=1
ID: 70151
Updated by: dmitry@php.net
Reported by: stas@php.net
Summary: soap/php_encoding.c uses wrong type to call
unset_property
Status: Not a bug
Type: Bug
Package: SOAP related
Operating System: *
PHP Version: 5.6.11
Assigned To: stas
Block user comment: N
Private report: N
New Comment:
0 (zero) may be changed to NULL, but this won't affect the resulting code.
Previous Comments:
------------------------------------------------------------------------
[2015-07-27 08:16:07] stas@php.net
Oops, no, the code is correct, my mistake.
------------------------------------------------------------------------
[2015-07-27 08:14:09] stas@php.net
Description:
------------
soap/php_encoding.c has this code in unset_zval_property():
zval member;
zend_class_entry *old_scope;
INIT_PZVAL(&member);
ZVAL_STRING(&member, name, 0);
old_scope = EG(scope);
EG(scope) = Z_OBJCE_P(object);
Z_OBJ_HT_P(object)->unset_property(object, &member, 0 TSRMLS_CC);
However, since 5.4 the signature of unset_property is:
void (*zend_object_unset_property_t)(zval *object, zval *member, const struct _zend_literal *key
TSRMLS_DC);
So this code needs to be updated.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70151&edit=1