PHP 4.0 Bug #3832: parser error when using new and var

From: Date: Tue, 14 Mar 2000 17:40:59 +0000
Subject: PHP 4.0 Bug #3832: parser error when using new and var
Groups: php.dev 
Request: Send a blank email to php-dev+get-16806@lists.php.net to get a copy of this message
From: brinca@substancia.com Operating system: Win 2000 PHP version: 4.0 Beta 4 Patch Level 1 PHP Bug Type: Compile Failure Bug description: parser error when using new and var the compiler issues a parser error when someone instatiates a class using a var statement preceding the variable: var $foo = new fooclass; but if you remove the var statement: $foo = new fooclass; it works fine. BTW, fooclass is a class defined in fooinclude.php, and required by this file. The parser error refers to an error in line X of fooinclude.php, when the error is actually located in this file. I'm not sure if this is a bug or if you shouldn't use the var statement in the first place....

« previous php.dev (#16806) next »