php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79995 Possible pointer or memory corruption
Submitted: 2020-08-19 01:33 UTC Modified: 2020-09-01 11:11 UTC
From: mic at kwayisi dot org Assigned: cmb (profile)
Status: Closed Package: Variables related
PHP Version: 8.0.0beta2 OS: Windows
Private report: No CVE-ID: None
 [2020-08-19 01:33 UTC] mic at kwayisi dot org
Description:
------------
PHP is not able to produce the correct variable name.

Test script:
---------------
$foo->bar?->baz;


Expected result:
----------------
PHP Warning: Undefined variable $foo in <file> on line <line>

Actual result:
--------------
PHP Warning: Undefined variable $<gibberish> in <file> on line <line>

Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-08-19 01:35 UTC] mic at kwayisi dot org
-Operating System: Windows 7 +Operating System: Windows -PHP Version: 8.0.0beta1 +PHP Version: 8.0.0beta2
 [2020-08-19 01:35 UTC] mic at kwayisi dot org
Bug is also present in the latest beta release.
 [2020-08-19 01:37 UTC] danack@php.net
Warning: Undefined variable $@��� in /in/dQXEi on line 3

Is the actual error.
 [2020-08-19 08:19 UTC] cmb@php.net
-Status: Open +Status: Verified
 [2020-08-19 08:19 UTC] cmb@php.net
See <https://3v4l.org/dQXEi>.
 [2020-08-20 08:47 UTC] cmb@php.net
The following pull request has been associated:

Patch Name: Fix nullsafe operator on delayed oplines
On GitHub:  https://github.com/php/php-src/pull/5994
Patch:      https://github.com/php/php-src/pull/5994.patch
 [2020-09-01 11:11 UTC] cmb@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: cmb
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 10:01:29 2024 UTC