Bug #78531 [Opn->Asn]: Crash when using undefined variable as object
| From: | dmitry@php.net | Date: | Thu, 12 Sep 2019 22:34:34 +0000 |
| Subject: | Bug #78531 [Opn->Asn]: Crash when using undefined variable as object | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-222719@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78531&edit=1
ID: 78531
Updated by: dmitry@php.net
Reported by: dmitry@php.net
Summary: Crash when using undefined variable as object
-Status: Open
+Status: Assigned
Type: Bug
Package: Scripting Engine problem
Operating System: *
PHP Version: 7.4Git-2019-09-12 (Git)
-Assigned To:
+Assigned To: dmitry
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2019-09-12 22:34:21] dmitry@php.net
Description:
------------
PHP crashes on attempt to modify property of undefined variable
Test script:
---------------
<?php
@$undef->a += 5;
var_dump($undef->a);
Expected result:
----------------
int(5)
Actual result:
--------------
crash
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78531&edit=1