fix bug #53432 (Assignment via string index access on an empty string converts to array)

From: Date: Tue, 19 Nov 2013 23:47:30 +0000
Subject: fix bug #53432 (Assignment via string index access on an empty string converts to array)
Groups: php.internals 
Request: Send a blank email to internals+get-70213@lists.php.net to get a copy of this message
Hi all, This PR seems good fix for 5.6. https://github.com/php/php-src/pull/463 Test script: --------------- $a = ''; // empty string $a[10] = 'a'; echo $a; // "Array" $b = ' '; // non empty string $b[10] = 'b'; echo $b; // " b" Expected result: ---------------- " a" " b" Actual result: -------------- "Array" " b" Current behavior does not make sense. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#70213) next »