Doc #52224 [Opn->Ana]: [DE] Logic problem in example

From: Date: Thu, 01 Jul 2010 21:13:55 +0000
Subject: Doc #52224 [Opn->Ana]: [DE] Logic problem in example
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4635@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52224&edit=1 ID: 52224 Updated by: wiesemann@php.net Reported by: alex dot b dot mail at gmx dot de -Summary: Logic problem in example +Summary: [DE] Logic problem in example -Status: Open +Status: Analyzed Type: Documentation Problem -Package: Documentation problem +Package: Translation problem Operating System: Irrelevant PHP Version: Irrelevant -Assigned To: +Assigned To: wiesemann New Comment: This is just a translation error. The English examples are correct. Previous Comments: ------------------------------------------------------------------------ [2010-07-01 19:30:04] alex dot b dot mail at gmx dot de Description: ------------ The is_bool example is not correct. Here ist the original example: <?php $a = false; $b = 0; // Da $a ein Boolean ist, wird true zurückgegeben if (is_bool($a)) { echo "Ja, das ist ein Boolean"; } // Da $b kein Boolean ist, wird false zurückgegeben if (is_bool($b)) { echo "Nein, dies ist kein Boolean"; } ?> The correct example should be like the following "Test script" or similar. Test script: --------------- <?php $a = false; $b = 0; // Da $a ein Boolean ist, wird true zurückgegeben if (is_bool($a)) { echo "Ja, \$a ist ein Boolean. "; } // Da $b kein Boolean ist, wird false zurückgegeben if (is_bool($b)) { echo "Ja, \$b ist ein Boolean. "; } else { echo "Nein, \$b ist kein Boolean. "; } ?> Expected result: ---------------- Ja, $a ist ein Boolean. Nein, $b ist kein Boolean. Actual result: -------------- Ja, das ist ein Boolean ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52224&edit=1

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