php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5936 Mutation to class that extends current class causes crash
Submitted: 2000-08-03 07:37 UTC Modified: 2000-08-03 11:50 UTC
From: php-bugs at bjoernsworld dot de Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.1pl2 OS: Winnt 4.0 SP 4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php-bugs at bjoernsworld dot de
New email:
PHP Version: OS:

 

 [2000-08-03 07:37 UTC] php-bugs at bjoernsworld dot de
<?php

class c1 {
  function c1() {
    $this = new c2;
  }
}

class c2 extends c1 {
}

$c = new c1;
?>

Under Windows i get "unknown software exception" (0xc00000fd)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-03 11:50 UTC] waldschrott@php.net
Cirular dependencies cannot (currently) be caught by PHP, I think, thus PHP has not option but crashing ;)
Anyway, why do you want to do such a thing, creating an instance that creates instances infinitely until it runs out of mem or whatever?

PHP did that 3693 times before crashing.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Dec 04 14:05:54 2022 UTC