Bug #18540: Overload "extension" does not work
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)
- paulo at isnet dot com dot br