|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-03 15:29 UTC] nlopess@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 19 06:00:01 2025 UTC |
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; }