mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
Merge branch 'PHP-5.6'
* PHP-5.6: Bacport fix bug #68741 - Null pointer dereference Check that the type is correct Conflicts: ext/standard/incomplete_class.c
This commit is contained in:
commit
cd5802e1b3
@ -139,7 +139,7 @@ PHPAPI zend_string *php_lookup_class_name(zval *object)
|
||||
|
||||
object_properties = Z_OBJPROP_P(object);
|
||||
|
||||
if ((val = zend_hash_str_find(object_properties, MAGIC_MEMBER, sizeof(MAGIC_MEMBER)-1)) != NULL) {
|
||||
if ((val = zend_hash_str_find(object_properties, MAGIC_MEMBER, sizeof(MAGIC_MEMBER)-1)) != NULL && Z_TYPE_P(val) == IS_STRING) {
|
||||
return zend_string_copy(Z_STR_P(val));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user