#46651 [Opn->Csd]: [IT] Code example translated wrong for fwrite
ID: 46651
Updated by: kalle@php.net
Reported By: mihai at i2web dot it
-Status: Open
+Status: Closed
Bug Type: Translation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: kalle
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:
------------------------------------------------------------------------
[2008-11-23 11:18:57] mihai at i2web dot it
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 this bug report at http://bugs.php.net/?id=46651&edit=1
Thread (2 messages)