php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #728 copying an object with static var in constructor crashes
Submitted: 1998-09-08 16:04 UTC Modified: 1998-09-10 17:27 UTC
From: vogtner at soldan dot de Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0.2a OS: Linux 2.0.29/Apache 1.3.1 module
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: vogtner at soldan dot de
New email:
PHP Version: OS:

 

 [1998-09-08 16:04 UTC] vogtner at soldan dot de
<%
   Class X {
      function X ()
      {
         static $z = 0;
      }
   };

   $a = New X;
   $b = $a;
%>

[BTW: this is PHP 3.0.3. Could you add this version number
to the drop-down field of the bug report form?]

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-09-10 17:27 UTC] zeev
Fixed, thanks for the report!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 14:01:34 2025 UTC