Bug #78531 [Asn->Csd]: Crash when using undefined variable as object
| From: | dmitry@php.net | Date: | Thu, 12 Sep 2019 22:43:51 +0000 |
| Subject: | Bug #78531 [Asn->Csd]: Crash when using undefined variable as object | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-222720@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: Assigned
+Status: Closed
Type: Bug
Package: Scripting Engine problem
Operating System: *
PHP Version: 7.4Git-2019-09-12 (Git)
Assigned To: dmitry
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=51d9f32dbeae2ffdc6e9f01d4f542a8e03f24baf
Log: Fixed bug #78531 (Crash when using undefined variable as object
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