Re: PHP 4.0 Bug #1864: Can't instantiate a class in a return statement

From: Date: Sun, 25 Jul 1999 04:53:30 +0000
Subject: Re: PHP 4.0 Bug #1864: Can't instantiate a class in a return statement
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-9122@lists.php.net to get a copy of this message
At 01:39 AM 7/25/99 +0000, fjord@diku.dk wrote:
From:             fjord@diku.dk
Operating system: Redhat Linux 6.0
PHP version:      4.0 Beta 1
PHP Bug Type:     Parser error
Bug description: Can't instantiate a class in a return statement // The following results in a parse error: class foo {
    var $test;
} function bar () {
    return new foo;
}
This is a limitation which we will be fixed in Beta 2. Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.dev (#9122) next »