Re: $obj = new foo() patch
| From: | Andi Gutmans | Date: | Fri, 10 Nov 2000 07:51:43 +0000 |
| Subject: | Re: $obj = new foo() patch | ||
| References: | 1 | Groups: | php.dev php.qa |
| Request: | Send a blank email to php-dev+get-37650@lists.php.net to get a copy of this message | ||
At 02:31 AM 11/10/00 +0100, André Langhorst wrote:
The patch didn't change this behavior. Up to now you can't send anything besides variables by reference. I don't think this has every worked.Please check it out. If there are any problems/concerns with this bug it is best to leave it out for 4.0.4 but it should not harm anyone's scripts. The following bugs are probably solved now: 6529, 6896, 7454, 7455, 7482 Anyway, please grab a fresh CVS tree and check that your OOP code still works :)1) It´s broken. <?php class foo {function foo() { $this->why_not($this->ret1()); }function ret1() { $obj1->a='test'; return $obj1; }function why_not(&$obj) { } }$x = new foo(); ?>
2) current CVS does not work as apache module, I´m getting a popup "php_unregister_ini_entries" not found in php4dllIn the latest CVS php_unregister_ini_entires doesn't exist. You have to update both Zend and the php4 CVS tree. Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/