Re: [PHP-DEV] $obj = new foo() patch From: Andi Gutmans (andi <email protected>)
Date: 11/10/00

At 02:31 AM 11/10/00 +0100, André Langhorst wrote:
>>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();
>?>

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.

>2) current CVS does not work as apache module, I´m getting a popup
>"php_unregister_ini_entries" not found in php4dll

In 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 <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>