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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mic at kwayisi dot org
New email:
PHP Version: OS:

 

 [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

Pull Requests

Pull requests:

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 07:01:33 2025 UTC