php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #54556
Patch wrong-array-access.diff revision 2011-09-14 13:51 UTC by dmitry@php.net
Patch php-5-3-use-a-null-as-array-trigger-notice revision 2011-07-26 11:12 UTC by laruence@php.net
revision 2011-07-25 12:10 UTC by laruence@php.net
revision 2011-07-25 09:29 UTC by laruence@php.net

Patch php-5-3-use-a-null-as-array-trigger-notice for Scripting Engine problem Bug #54556

Patch version 2011-07-26 11:12 UTC

Return to Bug #54556 | Download this patch
This patch renders other patches obsolete

Obsolete patches:

Patch Revisions:

Developer: laruence@php.net

Index: Zend/zend_execute.c
===================================================================
--- Zend/zend_execute.c (revision 313688)
+++ Zend/zend_execute.c (working copy)
@@ -1049,6 +1049,7 @@
            break;

        case IS_NULL:
+           zend_error(E_NOTICE, "Attempt to use NULL as array");
            if (result) {
                AI_SET_PTR(result->var, EG(uninitialized_zval_ptr));
                PZVAL_LOCK(EG(uninitialized_zval_ptr));
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Oct 21 07:01:27 2019 UTC