php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #37688 ע?ʹ???
Submitted: 2006-06-03 15:18 UTC Modified: 2006-06-03 15:29 UTC
From: cheneyforever at yahoo dot com dot cn Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Windows XP SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cheneyforever at yahoo dot com dot cn
New email:
PHP Version: OS:

 

 [2006-06-03 15:18 UTC] cheneyforever at yahoo dot com dot cn
Description:
------------
fwrite????
??????һ??ע?ʹ???


    // ??????????????ǽ?ʹ??????ģʽ????$filename??
    // ???ˣ??ļ?ָ?뽫?????ļ??Ŀ?ͷ??<=======Ӧ??Ϊ??β
    // ?Ǿ??ǵ?????ʹ??fwrite()??ʱ????$somecontent??Ҫд???ĵط???
    if (!$handle = fopen($filename, 'a')) {
         echo "???ܴ????ļ? $filename";
         exit;
    }


Reproduce code:
---------------
fwrite????
??????һ??ע?ʹ???


    // ??????????????ǽ?ʹ??????ģʽ????$filename??
    // ???ˣ??ļ?ָ?뽫?????ļ??Ŀ?ͷ??<=======Ӧ??Ϊ??β
    // ?Ǿ??ǵ?????ʹ??fwrite()??ʱ????$somecontent??Ҫд???ĵط???
    if (!$handle = fopen($filename, 'a')) {
         echo "???ܴ????ļ? $filename";
         exit;
    }


Expected result:
----------------
fwrite????
??????һ??ע?ʹ???


    // ??????????????ǽ?ʹ??????ģʽ????$filename??
    // ???ˣ??ļ?ָ?뽫?????ļ??Ŀ?ͷ??<=======Ӧ??Ϊ??β
    // ?Ǿ??ǵ?????ʹ??fwrite()??ʱ????$somecontent??Ҫд???ĵط???
    if (!$handle = fopen($filename, 'a')) {
         echo "???ܴ????ļ? $filename";
         exit;
    }


Actual result:
--------------
fwrite????
??????һ??ע?ʹ???


    // ??????????????ǽ?ʹ??????ģʽ????$filename??
    // ???ˣ??ļ?ָ?뽫?????ļ??Ŀ?ͷ??<=======Ӧ??Ϊ??β
    // ?Ǿ??ǵ?????ʹ??fwrite()??ʱ????$somecontent??Ҫд???ĵط???
    if (!$handle = fopen($filename, 'a')) {
         echo "???ܴ????ļ? $filename";
         exit;
    }


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-03 15:29 UTC] nlopess@php.net
write in english, please.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 16:01:30 2024 UTC