RE: [PHP-DEV] 4.0.4
| From: | Zeev Suraski | Date: | Thu, 02 Nov 2000 21:58:02 +0000 |
| Subject: | RE: [PHP-DEV] 4.0.4 | ||
| References: | 1 2 3 4 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-36853@lists.php.net to get a copy of this message | ||
The 1st option is not acceptable, because it makes it impossible to send new objects to functions, e.g.:
foo(new bar(...));
or otherwise using them in expressions. The 2nd option looks OK - we need to look into it.
Thanks,
Zeev
At 23:57 02/11/2000, Daniel J. Rodriguez wrote:
Hi Zeev: All the work that has to be done is inside one of the patches I am attaching.-- Zeev Suraski <zeev@zend.com> http://www.zend.com/Alternative a: Have "new" support "&" to return a reference.Alternative b: Have "new" always return a reference.Both patches are simple enough to be applied by hand. Regards Daniel ----- Original Message ----- From: Zeev Suraski <zeev@zend.com> To: Daniel J. Rodriguez <danjrod@terra.es> Cc: André Langhorst <A.Langhorst@itbnet.de>; Andi Gutmans <andi@zend.com>; PHP Development <php-dev@lists.php.net> Sent: Thursday, November 02, 2000 10:29 PM Subject: RE: [PHP-DEV] 4.0.4 We'll look into solving this issue, but if it proves to be more complicated than trivial, it shouldn't be in 4.0.4 either. Zeev At 22:51 02/11/2000, Daniel J. Rodriguez wrote: Dear Andi and André: I also consider that the use of $this as reference inside objects constructors should be settled. It has been submitted as a bug in "6259, 6896, 7444, 7454, 7455, 7482" (as far as I am aware of) and as a feature/request change in 7598. I myself did 7482 and 7598 providing a patch in 7482 for zend-parser.y and an insight into the problem for 7598 when feedback has been requested by "waldschrott". The principal answer has been: "this is a circular reference problem" which it is not. Please consider this issue before moving into PHP 4.0.4. Regards Daniel ----- Original Message ----- From: André Langhorst <A.Langhorst@itbnet.de> To: Andi Gutmans <andi@zend.com>; Sterling Hughes <sterling@php.net>; PHP Development <php-dev@lists.php.net> Sent: Thursday, November 02, 2000 7:48 PM Subject: Re: [PHP-DEV] 4.0.4is oneI don't quite remember which OO issue you're talking about. Theregotissue which involves references within nested structures being duplicated as-is. Can you please refresh my memory?subject was: "serious bug, please read" bug id #7515 if you think of nested structures as objects containing objects, ok. you´re fine - it had to do with references too, after my last post Ino answer, thought your brains are to busy to answer :) andré -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail:php-list-admin@lists.php.net-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Zeev Suraski <zeev@zend.com> http://www.zend.com/