diff options
author | Felipe Pena <felipe@php.net> | 2009-11-11 17:13:14 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2009-11-11 17:13:14 +0000 |
commit | 3be23aba26543bae6ebe8020fca8e157f673ccb6 (patch) | |
tree | 25f24513fda23c1d680e55e08915adb1e84708b3 /Zend | |
parent | 922b65ac46d00a75942423fe750c6eb734a5b7c1 (diff) | |
download | php-git-3be23aba26543bae6ebe8020fca8e157f673ccb6.tar.gz |
- Fixed bug #50148 (zend_get_property_info should check for Z_TYPE_P(member) == IS_STRING) patch by yoarvi at gmail dot com
Diffstat (limited to 'Zend')
-rw-r--r-- | Zend/zend_object_handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index f63472fd7b..19050061ec 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -198,7 +198,7 @@ ZEND_API struct _zend_property_info *zend_get_property_info(zend_class_entry *ce ulong h; if ((Z_TYPE_P(member) == IS_UNICODE && Z_USTRVAL_P(member)[0] == 0) || - Z_STRVAL_P(member)[0] == '\0') { + (Z_TYPE_P(member) == IS_STRING && Z_STRVAL_P(member)[0] == '\0')) { if (!silent) { if (Z_UNILEN_P(member) == 0) { zend_error(E_ERROR, "Cannot access empty property"); |