php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46651 [IT] Code example translated wrong for fwrite
Submitted: 2008-11-23 11:18 UTC Modified: 2008-12-04 06:01 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: mihai at i2web dot it Assigned: kalle (profile)
Status: Closed Package: Translation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2008-11-23 11:18 UTC] 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;
    }


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-04 06:01 UTC] kalle@php.net
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.


 [2020-12-30 11:21 UTC] nikic@php.net
Automatic comment on behalf of kalle
Revision: http://git.php.net/?p=doc/it.git;a=commit;h=4fec12d938d09383ca5a76d9702fcb61f41fa8cc
Log: Fixed bug #46651 ([IT] Code example translated wrong for fwrite)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 22:01:29 2024 UTC