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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 07:01:29 2025 UTC