php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71841 EG(error_zval) is not handled well
Submitted: 2016-03-17 07:15 UTC Modified: -
From: [email protected] Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.6.19 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: [email protected]
New email:
PHP Version: OS:

 

 [2016-03-17 07:15 UTC] [email protected]
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 commitsRelated reports
 [2016-03-17 07:29 UTC] [email protected]
Automatic comment on behalf of [email protected]
Revision: http://git.php.net/?p=php-src.git;a=commit;h=5546f8be5605f94e174d8a4faee40e1ddec79a03
Log: Fixed bug #71841 (EG(error_zval) is not handled well)
 [2016-03-17 07:29 UTC] [email protected]
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Dec 31 04:00:01 2025 UTC