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:
Stanislav Malyshev 2015-03-22 18:33:39 -07:00
commit cd5802e1b3

View File

@ -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));
}