php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14743 infite method calls
Submitted: 2001-12-28 13:19 UTC Modified: 2001-12-28 13:33 UTC
From: cox at idecnet dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.1.0 OS: Linux
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: cox at idecnet dot com
New email:
PHP Version: OS:

 

 [2001-12-28 13:19 UTC] cox at idecnet dot com
This script (stupid) makes php crash. I know is a fail of the developer but still a crash.
<?php
class foo {
    var $a = "orig value";
    
    function register() {
        $bar =& $this;
        $bar->updateA('new value');
    }
    
    function updateA($val) {
        $this->register();
        $this->a = $val;
    }
}

$foo = new Foo;
$foo->updateA("new value");

?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-28 13:33 UTC] mfischer@php.net
And still there's nothing PHP can do about it (this has been discussed in the past a few times). Bogus.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 15:01:30 2025 UTC