Bug #72430 [Opn->Ver]: [] operator not supported for strings
| From: | krakjoe@php.net | Date: | Mon, 20 Jun 2016 05:25:11 +0000 |
| Subject: | Bug #72430 [Opn->Ver]: [] operator not supported for strings | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-201738@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: Open
+Status: Verified
Type: Bug
Package: *General Issues
PHP Version: 7.1.0alpha1
Block user comment: N
Private report: N
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