com php-src: woops: Zend/zend_execute.c

From: Date: Tue, 22 Mar 2016 14:34:09 +0000
Subject: com php-src: woops: Zend/zend_execute.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-95656@lists.php.net to get a copy of this message
Commit: 8a8d97a699ac2508a94bdb9dd9b0b840a47c512d Author: Joe Watkins <krakjoe@php.net> Tue, 22 Mar 2016 14:34:09 +0000 Parents: bc450bb21bf30009b492f0eb43c55c867a63547c Branches: typed_ref_properties Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8a8d97a699ac2508a94bdb9dd9b0b840a47c512d Log: woops Changed paths: M Zend/zend_execute.c Diff: diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 3289e6b..d122eba 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -820,7 +820,7 @@ zend_bool zend_verify_property_type(zend_property_info *info, zval *property, ze info->type_ce = zend_lookup_class(resolved); } - if (Z_TYPE_P(property) != IS_OBJECT || !instanceof_function(info->type_ce, Z_OBJCE_P(property))) { + if (Z_TYPE_P(property) != IS_OBJECT || !instanceof_function(Z_OBJCE_P(property), info->type_ce)) { zend_throw_exception_ex(zend_ce_type_error, info->type, "Typed property %s::$%s must be an instance of %s, %s used", ZSTR_VAL(info->ce->name),

« previous php.cvs (#95656) next »