php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29483 php crashes while destroying a referenced object
Submitted: 2004-08-01 16:26 UTC Modified: 2004-08-25 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: stefan dot textor at dsi-project dot de Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.0.0 OS: Windows 2000
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: stefan dot textor at dsi-project dot de
New email:
PHP Version: OS:

 

 [2004-08-01 16:26 UTC] stefan dot textor at dsi-project dot de
Description:
------------
php crashes while setting a references object to null



Reproduce code:
---------------
class MyClass { 
    function __destruct() { 
        print "Destroying object"; 
    } 
} 
$test = new MyClass();
$test1 = $test;
$test = null;

Expected result:
----------------
object should be destroyed and both references should be null imho


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-17 17:41 UTC] tony2001@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

Works fine here. Both under Win32 & Linux.
 [2004-08-25 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC