Date: 07/25/99
- Next message: Egon Schmid: "[PHP-DEV] cvs: /php3/functions imap.c"
- Previous message: Ralph R. Katieb: "[PHP-DEV] Re: Bug #1621 Updated: pg_fetch_row & pg_fieldname ok | pg_fetch_array & pg_fetch_object -> PHP dies"
- In reply to: fjord <email protected>: "[PHP-DEV] PHP 4.0 Bug #1864: Can't instantiate a class in a return statement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Egon Schmid: "[PHP-DEV] cvs: /php3/functions imap.c"
- Previous message: Ralph R. Katieb: "[PHP-DEV] Re: Bug #1621 Updated: pg_fetch_row & pg_fieldname ok | pg_fetch_array & pg_fetch_object -> PHP dies"
- In reply to: fjord <email protected>: "[PHP-DEV] PHP 4.0 Bug #1864: Can't instantiate a class in a return statement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

