Re: [PHP-DEV] PHP 4.0 Bug #1864: Can't instantiate a class in a return statement From: Andi Gutmans (andi <email protected>)
Date: 07/25/99

At 01:39 AM 7/25/99 +0000, fjord <email protected> wrote:
>From: fjord <email protected>
>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 <email protected>>
http://www.zend.com/

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>