EG(error_zval) is not handled well
| Bug #71841 | EG(error_zval) is not handled well | ||||
|---|---|---|---|---|---|
| Submitted: | 2016-03-17 07:15 UTC | Modified: | - | ||
| From: | laruence@php.net | Assigned: | |||
| Status: | Closed | Package: | Scripting Engine problem | ||
| PHP Version: | 5.6.19 | OS: | |||
| Private report: | No | CVE-ID: | None | ||
[2016-03-17 07:15 UTC] 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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits