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
 [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

Pull Requests

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: Thu Dec 26 14:01:30 2024 UTC