Bug #78531 [NEW]: Crash when using undefined variable as object
| From: | dmitry@php.net | Date: | Thu, 12 Sep 2019 22:34:22 +0000 |
| Subject: | Bug #78531 [NEW]: Crash when using undefined variable as object | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-222718@lists.php.net to get a copy of this message | ||
From: dmitry
Operating system: *
PHP version: 7.4Git-2019-09-12 (Git)
Package: Scripting Engine problem
Bug Type: Bug
Bug description:Crash when using undefined variable as object
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 bug report at https://bugs.php.net/bug.php?id=78531&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78531&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78531&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78531&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78531&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78531&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78531&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78531&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78531&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78531&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78531&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78531&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78531&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78531&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78531&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78531&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78531&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78531&r=mysqlcfg