Ask a Question related to PHP Bugs, Design and Development.
-
judas dot iscariote at gmail dot com #1
#40714 [Com]: 'false instanceof string;' gives fun times.... NOT
ID: 40714
Comment by: judas dot iscariote at gmail dot com
Reported By: [email]pookey@php.net[/email]
Status: Open
Bug Type: Scripting Engine problem
Operating System: linux
PHP Version: 5.2.1
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2007-03-04 04:00:17] [email]pookey@php.net[/email]
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 [url]http://bugs.php.net/?id=40714&edit=1[/url]
judas dot iscariote at gmail dot com Guest
-
#40714 [NEW]: 'false instanceof string;' gives fun times.... NOT
From: pookey@php.net Operating system: linux PHP version: 5.2.1 PHP Bug Type: Scripting Engine problem Bug description: ... -
#40714 [Fbk->Opn]: 'false instanceof string;' gives fun times.... NOT
ID: 40714 User updated by: pookey@php.net Reported By: pookey@php.net -Status: Feedback +Status: Open... -
#40714 [Opn->Fbk]: 'false instanceof string;' gives fun times.... NOT
ID: 40714 Updated by: iliaa@php.net Reported By: pookey@php.net -Status: Open +Status: Feedback Bug... -
#25734 [NEW]: string false type-casts into boolean TRUE
From: rbotzer at yahoo dot com Operating system: MacOS X PHP version: 4.3.3 PHP Bug Type: Feature/Change Request Bug... -
#25140 [Opn->Csd]: mb_convert_encoding returns FALSE when it tries to convert empty string ('')
ID: 25140 Updated by: derick@php.net Reported By: hyamamoto at cybozu dot co dot jp -Status: Open +Status: ...



Reply With Quote

