]> granicus.if.org Git - php/commitdiff
Use dedicated function for illegal offset type error
authorGeorge Peter Banyard <girgias@php.net>
Thu, 2 Jul 2020 00:29:47 +0000 (02:29 +0200)
committerGeorge Peter Banyard <girgias@php.net>
Fri, 10 Jul 2020 14:49:52 +0000 (16:49 +0200)
Zend/zend_execute.c

index 852c9b35e1da7d96ca496a39d361ad76a33a0617..f6ca285a60320708a532520c6601f92c2d29390e 100644 (file)
@@ -2599,7 +2599,7 @@ num_key:
                str = ZSTR_EMPTY_ALLOC();
                goto str_key;
        } else {
-               zend_type_error("Illegal offset type");
+               zend_illegal_offset();
                return 0;
        }
 }