php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32080 segfault when assigning object to itself with zend.ze1_compatibility_mode=On
Submitted: 2005-02-23 15:41 UTC Modified: 2005-04-29 09:05 UTC
From: nicoletti at nns dot ch Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5CVS-2005-04-29 OS: *
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nicoletti at nns dot ch
New email:
PHP Version: OS:

 

 [2005-02-23 15:41 UTC] nicoletti at nns dot ch
Description:
------------
segfault when assigning object to itself in ze1 mode

Reproduce code:
---------------
ini_set('zend.ze1_compatibility_mode', true);
class test { }
$t = new test;
$t = $t; // gives segfault

Expected result:
----------------
last line gives segfault


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-25 14:34 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [2005-02-25 14:59 UTC] nicoletti at nns dot ch
(gdb) bt
#0  0x081ee835 in zend_std_object_get_class (object=0x836fa74) at /usr/local/src/php5/php5-200502251330/Zend/zend_object_handlers.c:839
#1  0x081d6e49 in zend_get_class_entry (zobject=0x836fa74) at /usr/local/src/php5/php5-200502251330/Zend/zend_API.c:227
#2  0x0824fd33 in zend_assign_to_variable (result=0x836e624, op1=0x836e638, op2=0x836e64c, value=0x836fa74, type=16, Ts=0xbfffd134)
    at /usr/local/src/php5/php5-200502251330/Zend/zend_execute.c:861
#3  0x08240d4d in ZEND_ASSIGN_SPEC_CV_CV_HANDLER (execute_data=0xbfffd1e8) at /usr/local/src/php5/php5-200502251330/Zend/zend_vm_execute.h:23463
#4  0x081fc2b2 in execute (op_array=0x836a11c) at /usr/local/src/php5/php5-200502251330/Zend/zend_vm_execute.h:78
#5  0x081d65a9 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/local/src/php5/php5-200502251330/Zend/zend.c:1058
#6  0x08192873 in php_execute_script (primary_file=0xbffff574) at /usr/local/src/php5/php5-200502251330/main/main.c:1636
#7  0x08251c7d in main (argc=3, argv=0xbffff604) at /usr/local/src/php5/php5-200502251330/sapi/cli/php_cli.c:944
 [2005-04-29 09:05 UTC] dmitry@php.net
Fixed in CVS HEAD and PHP_5_0.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 17:01:29 2024 UTC