Bug #18540 Updated: Overload "extension" does not work

From: Date: Thu, 25 Jul 2002 14:55:43 +0000
Subject: Bug #18540 Updated: Overload "extension" does not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15196@lists.php.net to get a copy of this message
ID: 18540 Updated by: paulo@isnet.com.br Reported By: paulo@isnet.com.br Status: Open Bug Type: Zend Engine 2 problem Operating System: Windows -PHP Version: 4CVS-2002-07-24 +PHP Version: 4.3.0-DEV with Zend2 New Comment: - Previous Comments: ------------------------------------------------------------------------ [2002-07-24 11:11:01] paulo@isnet.com.br The overload extension is enabled by default on PHP-4.3.0-Dev with Zend2 alpha 1 AND 2 on windows, but the overload() function does not work. At times it crashes Apache, other times it gives a message like 'too many nested levels'. class test {} overload('test'); // <== Crashes PHP I guess it happens because of the new way PHP handles objects - we no longer need to call $this->function(), so how would the overloaded class decide wich function or property to work with? Also, when overloading methods only the first function call is overloaded. When an overloaded function is called from within another one, it is not found. I think this behavior is fine for properties, but it limits the use of the extension when using overloaded methods. (should this be in another bug report or feature wish list?) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18540&edit=1

« previous php.bugs (#15196) next »