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