ID:               44806
 Updated by:       [EMAIL PROTECTED]
 Reported By:      aymeric dot jouno at free dot fr
-Status:           Open
+Status:           Bogus
 Bug Type:         Class/Object related
 Operating System: XP
 PHP Version:      5.2.5
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

This is correct, private (and also protected) methods are serialized
containing a \0 character.


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

[2008-04-23 08:48:54] aymeric dot jouno at free dot fr

Description:
------------
There is a mismatch/bug under PHP 5.2.5( id don't try it in other
version)

CONTEXT :

Serialize an Object with Private vars in a text file using 
fopen no binary and fwrite.



RESULT :

serialize Object is forced to bad binary mode in file.
if you change private vars to public vars it work !...


SOLUTION :
1 but poor => encode_base_64(Serialized Objet)
2 good => use fopen in binary mode



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


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

Reply via email to