#46651 [NEW]: Code example translated wrong for fwrite
From: mihai at i2web dot it
Operating system:
PHP version: Irrelevant
PHP Bug Type: Translation problem
Bug description: Code example translated wrong for fwrite
Description:
------------
Please take a look at this page:
http://it.php.net/manual/it/function.fwrite.php
The example code contains an error in this italian translation; while the
example on the original english page is correct.
The error is that fwrite must not be negated with !, otherwise the code
will throw an error when fwrite was succesfull. Compare this code with the
one on the english page.
Best regards,
Constantin Mihai Olaru
Reproduce code:
---------------
if (!fwrite($handle, $somecontent) ===FALSE) {
echo "Non si riesce a scrivere nel file ($filename)";
exit;
}
--
Edit bug report at http://bugs.php.net/?id=46651&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46651&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46651&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46651&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46651&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46651&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=46651&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=46651&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=46651&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=46651&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=46651&r=support
Expected behavior: http://bugs.php.net/fix.php?id=46651&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=46651&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=46651&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46651&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46651&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46651&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=46651&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=46651&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=46651&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=46651&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=46651&r=mysqlcfg
Thread (2 messages)
- mihai at i2web dot it