Doc #72430 [ReO->Csd]: [] operator not supported for strings
| From: | cmb@php.net | Date: | Wed, 14 Sep 2016 10:56:26 +0000 |
| Subject: | Doc #72430 [ReO->Csd]: [] operator not supported for strings | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13902@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: cmb@php.net
Reported by: rmoisto at gmail dot com
Summary: [] operator not supported for strings
-Status: Re-Opened
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: 7.1.0alpha1
Assigned To: cmb
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2016-09-14 10:56:10] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=340030
Log: Fix #72430: [] operator not supported for strings
------------------------------------------------------------------------
[2016-09-14 10:44:17] cmb@php.net
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=219d8599b04162a0ba733513dcab71a996b88f56
Log: Fix #72430: [] operator not supported for strings
------------------------------------------------------------------------
[2016-06-20 16:32:44] krakjoe@php.net
Backward compatibility broken by fix for: https://bugs.php.net/bug.php?id=53432
Requires documentation changes.
------------------------------------------------------------------------
[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