Doc #52224 [Ana->Csd]: [DE] Logic problem in example
| From: | wiesemann@php.net | Date: | Fri, 02 Jul 2010 19:40:46 +0000 |
| Subject: | Doc #52224 [Ana->Csd]: [DE] Logic problem in example | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-4643@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: [DE] Logic problem in example
-Status: Analyzed
+Status: Closed
Type: Documentation Problem
Package: Translation problem
Operating System: Irrelevant
PHP Version: Irrelevant
Assigned To: wiesemann
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2010-07-02 21:40:26] wiesemann@php.net
Automatic comment from SVN on behalf of wiesemann
Revision: http://svn.php.net/viewvc/?view=revision&revision=300954
Log: - fixed Doc Bug #52224: [DE] Logic problem in example
------------------------------------------------------------------------
[2010-07-01 23:13:54] wiesemann@php.net
This is just a translation error. The English examples are correct.
------------------------------------------------------------------------
[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