Date: 05/20/98
- Next message: Gergely Madarasz: "Re: [PHP-DEV] Bug #370: readfile and fpassthru segfaults"
- Previous message: Mailer-Daemon <email protected>: "[PHP-DEV] Re: Subject: Bug #371 Updated: PHP causes failure of conventional CGI scripts? [acknowledgment]"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] Bug #389: Static variable into Class recursiv function"
- Reply: Zeev Suraski: "Re: [PHP-DEV] Bug #389: Static variable into Class recursiv function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: andri <email protected>
Operating system: Linux 2.0.33
PHP version: 3.0 Release Candidate 4
PHP Bug Type: Misbehaving function
Bug description:
Static variable into Class Recursiv function do not work property
Script exsample:
<?
class clss {
var $t;
function recursiv() {
static $r = 0;
$r++;
echo "$r<BR>\n";
if ($r < $this->t) {
$this->recursiv();
}
}
}
$n = new clss;
$n->t = 10;
$n->recursiv();
?>
- Next message: Gergely Madarasz: "Re: [PHP-DEV] Bug #370: readfile and fpassthru segfaults"
- Previous message: Mailer-Daemon <email protected>: "[PHP-DEV] Re: Subject: Bug #371 Updated: PHP causes failure of conventional CGI scripts? [acknowledgment]"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] Bug #389: Static variable into Class recursiv function"
- Reply: Zeev Suraski: "Re: [PHP-DEV] Bug #389: Static variable into Class recursiv function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

