From: robin_fernandes at uk dot ibm dot com Operating system: Windows PHP version: 5CVS-2007-07-16 (snap) PHP Bug Type: Scripting Engine problem Bug description: is_subclass_of: behaviour contradicts is_a.phpt testcase description
Description: ------------ This is either a minor mistake in a testcase description, or a bug in is_subclass_of(). The description of testcase http://lxr.php.net/source/ZendEngine2/tests/is_a.phpt states: "is_a() and is_subclass_of() shouldn't call __autoload". However, the expected output explicitly checks for __autoload() calls *in some cases* (lines 49 and 50). Either the testcase description (and perhaps documentation) should clarify in which circumstances is_subclass_of() does result in an invocation of __autoload(), or is_subclass_of() should be fixed. Below is a simplified testcase illustrating a case where is_subclass_of() does invoke __autoload(). Reproduce code: --------------- <?php function __autoload($name) { echo("AUTOLOAD '$name'\n"); } Class Def {} var_dump(is_subclass_of("Def", "Undef")); ?> Expected result: ---------------- bool(false) Actual result: -------------- AUTOLOAD 'Undef' bool(false) -- Edit bug report at http://bugs.php.net/?id=42009&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42009&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42009&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42009&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42009&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42009&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42009&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42009&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42009&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42009&r=support Expected behavior: http://bugs.php.net/fix.php?id=42009&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42009&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42009&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42009&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42009&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42009&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42009&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42009&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42009&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42009&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42009&r=mysqlcfg
