Doc #62226 [Opn->Nab]: Documentation Error

From: Date: Sat, 09 Jun 2012 22:46:26 +0000
Subject: Doc #62226 [Opn->Nab]: Documentation Error
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8451@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62226&edit=1 ID: 62226 Updated by: frozenfire@php.net Reported by: crmoreira at gmail dot com Summary: Documentation Error -Status: Open +Status: Not a bug Type: Documentation Problem Package: *General Issues Operating System: MacOS 1.7.4 PHP Version: 5.3.13 Block user comment: N Private report: N New Comment: The return value of is_bool is a boolean. Booleans cannot be concatenated directly into strings. Instead, you should use something like the following: print "is_bool: ". is_bool($teste)?'Yes':'No'; Previous Comments: ------------------------------------------------------------------------ [2012-06-04 19:22:23] crmoreira at gmail dot com Description: ------------ --- From manual page: http://www.php.net/function.is-bool#refsect1-function.is-bool- returnvalues --- is_bool(teste) Test script: --------------- print "is_bool: " . is_bool(teste) . "\n"; Expected result: ---------------- false Actual result: -------------- null ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62226&edit=1

« previous php.doc.bugs (#8451) next »