ID:               33494
 User updated by:  adax2000 at tlen dot pl
 Reported By:      adax2000 at tlen dot pl
-Status:           Bogus
+Status:           Open
 Bug Type:         Strings related
 Operating System: linux
 PHP Version:      4.3.11
 New Comment:

.


Previous Comments:
------------------------------------------------------------------------

[2005-06-28 12:17:29] adax2000 at tlen dot pl

and the pair (that was oryginaly used in pear class MIME)
$fd = fopen("rys2.gif","rb");
$string = base64_encode(fread($fd,filesize("rys2.gif"));
realy should'n add this magic_quotos even if they are enabled at least
in windows where you asure "rb" mean "read as binary"

------------------------------------------------------------------------

[2005-06-28 11:51:31] adax2000 at tlen dot pl

i saw into source and now i know exactly what's going on. 
i wrote too allready that code 0 is replaced by 92,48 
also wenn magic_quoutes are enabled it change this string, so i'm not
sure howto treat it now. surely i't should to be something about it
secion of manual, that says that file_get_contents/fread are binary
safe, and pear class MIME (that i use to send mails) should check this
setting. 
anyway I apologize for inconvenience

------------------------------------------------------------------------

[2005-06-28 09:39:07] [EMAIL PROTECTED]

I can't reproduce it on Linux, so no, it is not OS-dependant.
Also do var_dump(file_get_contents()); and figure out what is the
difference between the output and the real file contents.

Feel free to reopen the report when you're able to reproduce it with
latest snapshots. Thank you.

------------------------------------------------------------------------

[2005-06-28 02:20:54] adax2000 at tlen dot pl

i't is not allways posible to upgrade php i have no privileges to do
this, and admin don't do this especially when you don't say that is
realy bug or not. istead of this i discoverd that function
file_get_contents (fread too) change every character which ord()==0
into two chr(92)+chr(48) and replace the use of this function with
self-made function based on fgetc (works well)

please don't remove this reply mayby others find this usefull

p.s.
when file_get_contents use os-dependent enchanments it must not be
reproducable on every host

------------------------------------------------------------------------

[2005-06-27 20:32:03] [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

I can't reproduce it neither with 4.4-dev, nor with 5.1-dev.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/33494

-- 
Edit this bug report at http://bugs.php.net/?id=33494&edit=1

Reply via email to