php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch scalar-array-read.50613.HEAD.patch for Scripting Engine problem Bug #50613

Patch version 2010-03-06 16:23 UTC

Return to Bug #50613 | Download this patch
Patch Revisions:

Developer: arpad@php.net

Index: Zend/zend_execute.c
===================================================================
--- Zend/zend_execute.c	(revision 295865)
+++ Zend/zend_execute.c	(working copy)
@@ -1226,6 +1226,7 @@
 			break;
 
 		default:
+			zend_error(E_WARNING, "Cannot use a scalar value as an array");
 			if (result) {
 				AI_SET_PTR(result->var, EG(uninitialized_zval_ptr));
 				PZVAL_LOCK(EG(uninitialized_zval_ptr));
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 00:01:33 2024 UTC