From:             sampw at hotmail dot com
Operating system: WinXp Sp2 PHP 5.0.2
PHP version:      5.0.1
PHP Bug Type:     Zend Engine 2 problem
Bug description:  __autoload() not invoked for interfaces

Description:
------------
__autoload() not invoked for interfaces.

If a class implements an interface, the class is invoked through
__autoload(), but the required interface not.

I don't know if it is a bug, but it makes sense to invoke interfaces too.


For example, if you need persistence objects (Objects in a Session! (A
little PHP Application Server :-)), you need __autoload() in order to
deserialize an object completly!
(Inorder to include the class definition! Deserialize does only recover
the class vars!) Stupid is that you have to know if the recovered object
has an interface because you have to include it to ...

Why __autoload() if it does not work with classes which implements
interfaces?




-- 
Edit bug report at http://bugs.php.net/?id=30234&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30234&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30234&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30234&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30234&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30234&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30234&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30234&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30234&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30234&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30234&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30234&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30234&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30234&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30234&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30234&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30234&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30234&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30234&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30234&r=mysqlcfg

Reply via email to