[PHP-BUG] Bug #77186 [NEW]: I discovered that Incompatible chanI discovered that incoges is not documented.
[email protected] ("katamotokosuke0605 at gmail dot com") Thu, 22 Nov 2018 13:48:17 +0000
| Newsgroups | php.standards |
|---|---|
| Message-ID | <[email protected]> |
From: katamotokosuke0605 at gmail dot com
Operating system: Darwin Kernel Version 17.7.0
PHP version: 5.6.38
Package: PHP Language Specification
Bug Type: Bug
Bug description:I discovered that Incompatible chanI discovered that incoges is not documented.
Description:
------------
---
From manual page: https://php.net/migration70
---
To whom it may concern,
I am currently migrating from php 5.6 to php 7.1.
But I found an incompatible change not listed in the document.
I would like you to include it in the document.
Kosuke Katamoto
Test script:
---------------
php5.6
```
$ php -v
PHP 5.6.38 (cli) (built: Nov 22 2018 22:26:33)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend
Technologies
with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans
$ php -a
Interactive shell
php > $a = '';
php > $a['cat'] = 'aaa';
php > print_r($a);
Array
(
[cat] => aaa
)
php >
```
php7.1
$ phpenv local 7.1.9
7.1.9
$ php -v
PHP 7.1.9 (cli) (built: Nov 22 2018 22:19:36) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Zend OPcache v7.1.9, Copyright (c) 1999-2017, by Zend
Technologies
with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans
$ php -a
Interactive shell
php > $a = '';
php > $a['cat'] = 'aaa';
PHP Warning: Illegal string offset 'cat' in php shell code on line 1
PHP Stack trace:
PHP 1. {main}() php shell code:0
php > print_r($a);
a
php >
--
Edit bug report at https://bugs.php.net/bug.php?id=77186&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77186&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77186&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77186&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77186&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77186&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77186&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77186&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77186&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77186&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77186&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77186&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77186&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77186&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77186&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77186&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77186&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77186&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77186&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77186&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77186&r=mysqlcfg