#14845 [Opn->Ana]: var_dump sometimes crashes after array stringitem is overwriten with arrayitem.

From: Date: Sat, 21 Dec 2002 16:51:24 +0000
Subject: #14845 [Opn->Ana]: var_dump sometimes crashes after array stringitem is overwriten with arrayitem.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-28156@lists.php.net to get a copy of this message
ID: 14845 Updated by: moriyoshi@php.net Reported By: leen@wirehub.nl -Status: Open +Status: Analyzed Bug Type: Feature/Change Request Operating System: Windows&Linux (probably all) PHP Version: 4.1.1 New Comment: Please see http://bugs.php.net/19943 Previous Comments: ------------------------------------------------------------------------ [2002-01-04 06:43:11] leen@wirehub.nl When een item in an Array is string it can not be overwriten with an array. This is ok with me, but PHP doesn't give a warning either: $myarray = Array (); $var = Array (); $var ['NAME1'] = 'string'; $var ['NAME1'] ['NAME2'] ['NAME3'] = $myarray; print "<pre>"; print_r ($var); print "</pre>"; $var = Array (); $var ['NAME1'] = 'string'; $var ['NAME1'] ['NAME2'] = Array (); print "<pre>"; print_r ($var); print "</pre>"; result: Array ( [NAME1] => string ) Warning: Array to string conversion in /var/sites/p3/pageprocessor/pageprocessor3.0/www/dsdic.php on line 37 Array ( [NAME1] => Atring ) This behaviour is very hard to debug (with 3.000+ lines of code or so and more then one person working on it). :) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=14845&edit=1

« previous php.bugs (#28156) next »