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
 [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: Wed Dec 07 00:03:19 2022 UTC