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: laruence@php.net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.6.19 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: laruence@php.net
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-17 07:29 UTC] laruence@php.net
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)
 [2016-03-17 07:29 UTC] laruence@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 16:01:30 2024 UTC