#48017 [NEW]: Examples missing in german page on logical operators
| From: | momrom at freenet dot de | Date: | Sun, 19 Apr 2009 14:30:47 +0000 |
| Subject: | #48017 [NEW]: Examples missing in german page on logical operators | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-2112@lists.php.net to get a copy of this message | ||
From: momrom at freenet dot de
Operating system: -
PHP version: Irrelevant
PHP Bug Type: Translation problem
Bug description: Examples missing in german page on logical operators
Description:
------------
The examples from the english page are missing in german.
Expected result:
----------------
Wie auch in C werden logische Ausdrücke von links nach rechts ausgewertet.
Die Auswertung wird abgebrochen, sobald das Ergebnis vorhersehbar ist.
foo() wird in den folgenden Fällen nicht aufgerufen
<?php
$a = (false && foo());
$b = (true || foo());
$c = (false and foo());
$d = (true or foo());
?>
"||" hat Vorrang vor "="
"=" hat Vorrang vor "or"
<?php
$e = false || true; // äquivalent zu ($e = (false || true)), $e erhält den
Wert true
$f = false or true; // äquivalent zu (($f = false) or true), $f erhält den
Wert false
?>
"&&" hat Vorrang vor "="
"=" hat Vorrang vor "and"
<?php
$g = true && false; // äquivalent zu ($g = (true || false)), $g erhält den
Wert false
$h = true and false; // äquivalent zu (($h = true) and false), $h erhält
den Wert true
?>
--
Edit bug report at http://bugs.php.net/?id=48017&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48017&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48017&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48017&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48017&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48017&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48017&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48017&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48017&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48017&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48017&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48017&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48017&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48017&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48017&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48017&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48017&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48017&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48017&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48017&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48017&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48017&r=mysqlcfg