php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #77186 I discovered that Incompatible chanI discovered that incoges is not documented.
Submitted: 2018-11-22 13:48 UTC Modified: 2018-11-22 17:30 UTC
From: katamotokosuke0605 at gmail dot com Assigned: cmb (profile)
Status: Duplicate Package: Documentation problem
PHP Version: 5.6.38 OS: Darwin Kernel Version 17.7.0
Private report: No CVE-ID: None
 [2018-11-22 13:48 UTC] 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 >



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-11-22 17:30 UTC] cmb@php.net
Duplicate of bug #73503.
 [2018-11-22 17:30 UTC] cmb@php.net
-Status: Open +Status: Duplicate -Type: Bug +Type: Documentation Problem -Package: PHP Language Specification +Package: Documentation problem -Assigned To: +Assigned To: cmb
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 13:01:29 2024 UTC