Bug #12674: string + 'true', types misunderstanding (?)

From: Date: Thu, 09 Aug 2001 12:18:08 +0000
Subject: Bug #12674: string + 'true', types misunderstanding (?)
Groups: php.dev 
Request: Send a blank email to php-dev+get-62712@lists.php.net to get a copy of this message
From: joustin@plusnet.pl Operating system: Win2000 sp2 PHP version: 4.0.6 PHP Bug Type: Scripting Engine problem Bug description: string + 'true', types misunderstanding (?) Hmm... why is that ? Am I reading manual too briefly, or is there something with the operators ? might be bogus, but please enlighten me:P btw: I thought that there's no seperate boolean type =] <? function foo(){ return true; } if(foo() == 'whatever you like'){ echo '!?!? why is that equal ?'; } ?> <? function paranoid(){ return 1; } if(!(paranoid() == (string) 'whatever you like')){ echo 'hmm??'; } ?> -- Edit bug report at: http://bugs.php.net/?id=12674&edit=1

« previous php.dev (#62712) next »