php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23543 unserialize on object fails when string is loaded with file()
Submitted: 2003-05-08 07:10 UTC Modified: 2003-05-14 11:03 UTC
From: tbrandl at barff dot de Assigned:
Status: No Feedback Package: Strings related
PHP Version: 4.3.1 OS: Win 2k
Private report: No CVE-ID: None
 [2003-05-08 07:10 UTC] tbrandl at barff dot de
this fails (output is null):
$string = unserialize(implode("", file("serialized_Obj.dat")));

print_r($string) == null;

this works:
fopen("serialized_Obj.dat");
$string = unserialize(fread($fh, ...));

print_r($string) == the original object.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-08 07:19 UTC] alan_k@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


can you provide a fully working example illustrating this issue?
 [2003-05-14 11:03 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC