From: mp at webfactory dot de Operating system: any PHP version: 5.2.0 PHP Bug Type: Class/Object related Bug description: wrong instanceof results
Description: ------------ instanceof produces wrong results when the first operand is not an object instance but a class name or a string containing a class name. Reproduce code: --------------- var_dump(Iterator instanceof Traversable); var_dump("Iterator" instanceof Traversable); Expected result: ---------------- bool(true) bool(true) Actual result: -------------- bool(false) Fatal error: Invalid opcode 138/1/1. in ... -- Edit bug report at http://bugs.php.net/?id=39435&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39435&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39435&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39435&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39435&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39435&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39435&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39435&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39435&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39435&r=support Expected behavior: http://bugs.php.net/fix.php?id=39435&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39435&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39435&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39435&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39435&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39435&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39435&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39435&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39435&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39435&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39435&r=mysqlcfg