#19575 [Opn->Dup]: Boolean prints 1 for TRUE but nothing for FALSE

From: Date: Sat, 05 Oct 2002 14:58:17 +0000
Subject: #19575 [Opn->Dup]: Boolean prints 1 for TRUE but nothing for FALSE
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969348995@lists.php.net to get a copy of this message
ID: 19575 Updated by: iliaa@php.net Reported By: jc@mega-bucks.co.jp -Status: Open +Status: Duplicate Bug Type: Documentation problem Operating System: Red Hat Linux 7.2 PHP Version: 4.2.3 New Comment: Dupe of bug #18411 Previous Comments: ------------------------------------------------------------------------ [2002-09-24 06:56:43] jc@mega-bucks.co.jp A boolean of TRUE will print as "1" whereas FALSE prints as "" This has caused me a problem since I had assume that TRUE would print as TRUE and FALSE would print as FALSE. Could you add this to the documentation. I could understand 1/0, TRUE/FALSE, but "1"/"" is not evident at first. I'd even suggest a change request that booleans print out as TRUE/FALSE (since booleans really should not be 1/0 integers or empty/non-empty strings but BOOLEANS) but I'm sure that would ge shot down. :) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19575&edit=1

« previous php.doc (#969348995) next »