Bug #72430 [Ver]: [] operator not supported for strings

From: Date: Mon, 20 Jun 2016 16:32:44 +0000
Subject: Bug #72430 [Ver]: [] operator not supported for strings
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13562@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72430&edit=1 ID: 72430 Updated by: krakjoe@php.net Reported by: rmoisto at gmail dot com Summary: [] operator not supported for strings Status: Verified Type: Bug -Package: *General Issues +Package: Documentation problem PHP Version: 7.1.0alpha1 Block user comment: N Private report: N New Comment: Backward compatibility broken by fix for: https://bugs.php.net/bug.php?id=53432 Requires documentation changes. Previous Comments: ------------------------------------------------------------------------ [2016-06-16 13:50:00] rmoisto at gmail dot com Description: ------------ Fatal error when redeclaring a string as an array. Not sure if it's a backwards compatibility issue or an actual bug. Test script: --------------- https://3v4l.org/HBGvH <?php $r = ''; $r[] = ''; Actual result: -------------- Fatal error: Uncaught Error: [] operator not supported for strings ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=72430&edit=1

« previous php.doc.bugs (#13562) next »