File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -1041,10 +1041,6 @@ static zend_always_inline bool zend_check_type_slow(
1041
1041
if (!ce ) {
1042
1042
ce = zend_lookup_class_ex (name , NULL , ZEND_FETCH_CLASS_NO_AUTOLOAD );
1043
1043
if (!ce ) {
1044
- if (HAVE_CACHE_SLOT ) {
1045
- cache_slot ++ ;
1046
- }
1047
-
1048
1044
/* Cannot resolve */
1049
1045
return false;
1050
1046
}
@@ -1053,18 +1049,15 @@ static zend_always_inline bool zend_check_type_slow(
1053
1049
ce = zend_fetch_class (name ,
1054
1050
ZEND_FETCH_CLASS_AUTO | ZEND_FETCH_CLASS_NO_AUTOLOAD | ZEND_FETCH_CLASS_SILENT );
1055
1051
if (!ce ) {
1056
- if (HAVE_CACHE_SLOT ) {
1057
- cache_slot ++ ;
1058
- }
1059
-
1060
1052
/* Cannot resolve */
1061
1053
return false;
1062
1054
}
1063
1055
}
1064
1056
}
1065
1057
1066
1058
/* Perform actual type check */
1067
- /* Instance of a single type part of a union is sufficient to pass the type check */
1059
+ /* If type is not an instance of one of the types taking part in the
1060
+ * intersection it cannot be a valid instance of the whole intersection type. */
1068
1061
if (!instanceof_function (Z_OBJCE_P (arg ), ce )) {
1069
1062
return false;
1070
1063
}
You can’t perform that action at this time.
0 commit comments