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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jan 28 02:01:30 2025 UTC