]> granicus.if.org Git - php/commitdiff
Ease off on severity of new error (Using Resources as array offsets)
authorSara Golemon <pollita@php.net>
Thu, 24 Jun 2004 16:35:34 +0000 (16:35 +0000)
committerSara Golemon <pollita@php.net>
Thu, 24 Jun 2004 16:35:34 +0000 (16:35 +0000)
Zend/zend_execute.c

index 733826352d86fcfd2a40f01b81367f658cdd3d42..9874d0d68b8d2f10d64fc1115458ea35d526910e 100644 (file)
@@ -840,7 +840,7 @@ fetch_string_dim:
                        }
                        break;
                case IS_RESOURCE:
-                       zend_error(E_WARNING, "Resource ID#%ld used as offset, casting to integer (%ld)", dim->value.lval, dim->value.lval);
+                       zend_error(E_STRICT, "Resource ID#%ld used as offset, casting to integer (%ld)", dim->value.lval, dim->value.lval);
                        /* Fall Through */
                case IS_DOUBLE:
                case IS_BOOL: