ID: 22904 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Feedback +Status: Open Bug Type: Filesystem function related Operating System: linux RH7.2 PHP Version: 4.3.2RC1 New Comment:
problem still exists on last cvs. my editor show ascii(0) as ? but '\0' have to be showen as '\0' mean, if the orginal text (c code this case) file included the \0 *string* i does't want fwrite() replace it with ascii(0)! but to save it as the orginal string. Previous Comments: ------------------------------------------------------------------------ [2003-03-26 09:33:33] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Cannot verify this bug with latest CVS. I think your editor just shows \0 as ? ------------------------------------------------------------------------ [2003-03-26 09:25:48] [EMAIL PROTECTED] here is simple code: ---------------- <? $f = fopen("test.txt","rb"); $buf= fread($f,4096); $f2 = fopen("test2","wb"); fwrite($f2,$buf); ?> --------------- where test.txt content is: --------------test \0 test -------------- the result test2 file is: --------------- test ? test --------------- ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22904&edit=1