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 @@ -1030,10 +1030,6 @@ static zend_always_inline bool zend_check_type_slow(
1030
1030
if (!ce ) {
1031
1031
ce = zend_lookup_class_ex (name , NULL , ZEND_FETCH_CLASS_NO_AUTOLOAD );
1032
1032
if (!ce ) {
1033
- if (HAVE_CACHE_SLOT ) {
1034
- cache_slot ++ ;
1035
- }
1036
-
1037
1033
/* Cannot resolve */
1038
1034
return false;
1039
1035
}
@@ -1042,18 +1038,15 @@ static zend_always_inline bool zend_check_type_slow(
1042
1038
ce = zend_fetch_class (name ,
1043
1039
ZEND_FETCH_CLASS_AUTO | ZEND_FETCH_CLASS_NO_AUTOLOAD | ZEND_FETCH_CLASS_SILENT );
1044
1040
if (!ce ) {
1045
- if (HAVE_CACHE_SLOT ) {
1046
- cache_slot ++ ;
1047
- }
1048
-
1049
1041
/* Cannot resolve */
1050
1042
return false;
1051
1043
}
1052
1044
}
1053
1045
}
1054
1046
1055
1047
/* Perform actual type check */
1056
- /* Instance of a single type part of a union is sufficient to pass the type check */
1048
+ /* If type is not an instance of one of the types taking part in the
1049
+ * intersection it cannot be a valid instance of the whole intersection type. */
1057
1050
if (!instanceof_function (Z_OBJCE_P (arg ), ce )) {
1058
1051
return false;
1059
1052
}
You can’t perform that action at this time.
0 commit comments