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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 10:01:32 2024 UTC