Bug #18540: Overload "extension" does not work

From: Date: Wed, 24 Jul 2002 15:11:02 +0000
Subject: Bug #18540: Overload "extension" does not work
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15054@lists.php.net to get a copy of this message
From:             paulo@isnet.com.br
Operating system: Windows
PHP version:      4CVS-2002-07-24
PHP Bug Type:     Zend Engine 2 problem
Bug description:  Overload "extension" does not work

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 bug report at http://bugs.php.net/?id=18540&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=18540&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=18540&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=18540&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=18540&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18540&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=18540&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=18540&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=18540&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=18540&r=globals



Thread (4 messages)

« previous php.bugs (#15054) next »