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

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-09-10 17:27 UTC] zeev
Fixed, thanks for the report!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 23:01:29 2024 UTC