Bug #71841 [Opn->Csd]: EG(error_zval) is not handled well
| From: | laruence@php.net | Date: | Thu, 17 Mar 2016 07:29:20 +0000 |
| Subject: | Bug #71841 [Opn->Csd]: EG(error_zval) is not handled well | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-199879@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71841&edit=1
ID: 71841
Updated by: laruence@php.net
Reported by: laruence@php.net
Summary: EG(error_zval) is not handled well
-Status: Open
+Status: Closed
Type: Bug
Package: Scripting Engine problem
PHP Version: 5.6.19
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of laruence@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=5546f8be5605f94e174d8a4faee40e1ddec79a03
Log: Fixed bug #71841 (EG(error_zval) is not handled well)
Previous Comments:
------------------------------------------------------------------------
[2016-03-17 07:15:02] laruence@php.net
Description:
------------
for assign_dim, EG(error_zval) results NULL
but for assign_obj, it doesn't, which makes nothing, and also maybe make the EG(error_zval)
altered.
Test script:
---------------
<?php
$obj = unserialize('O:1:"A":0:{}');
var_dump($obj);
var_dump($obj->prop .= 0);
$arr = array(PHP_INT_MAX=>0);
var_dump($arr[] .= 0);
Expected result:
----------------
NULL
NULL
Actual result:
--------------
string (1) "0"
NULL
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71841&edit=1