Bug #77186 [Opn]: I discovered that Incompatible chanI discovered that incoges is not documented.
[email protected] Thu, 22 Nov 2018 17:30:24 +0000
| Newsgroups | php.standards |
|---|---|
| Message-ID | <[email protected]> |
Edit report at https://bugs.php.net/bug.php?id=77186&edit=1 ID: 77186 Updated by: [email protected] Reported by: katamotokosuke0605 at gmail dot com Summary: I discovered that Incompatible chanI discovered that incoges is not documented. Status: Open Type: Bug Package: PHP Language Specification Operating System: Darwin Kernel Version 17.7.0 PHP Version: 5.6.38 Block user comment: N Private report: N New Comment: Duplicate of bug #73503. Previous Comments: ------------------------------------------------------------------------ [2018-11-22 13:48:17] katamotokosuke0605 at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=77186&edit=1