ID: 40714 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Scripting Engine problem Operating System: linux PHP Version: 5.2.1 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip The instance of operator was never intended to work with literals, the "parameter" must always be a variable. Previous Comments: ------------------------------------------------------------------------ [2007-03-04 04:08:19] judas dot iscariote at gmail dot com huh ? I get ./sapi/cli/php -r 'false instanceof string;' PHP Fatal error: instanceof expects an object instance, constant given in Command line code on line 1 ------------------------------------------------------------------------ [2007-03-04 04:00:17] [EMAIL PROTECTED] Description: ------------ # php -r 'false instanceof string;' Fatal error: Invalid opcode 138/1/1. in Command line code on line 1 Not a great deal more to say about this bug, other than accept it's stupid code anyway. Reproduce code: --------------- # php -r 'false instanceof string;' Expected result: ---------------- no output Actual result: -------------- Fatal error: Invalid opcode 138/1/1. in Command line code on line 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40714&edit=1
