|
Posted by Rafi B. on 01/13/06 17:02
This is the context in which it is executed:
$line = "====1,$tt,$sql\n";
$rs2->sql = $rs->sql;
$rs2->oldProvider = $rs->dataProvider;
$rs2->InitArrayFields($rows,$flds);
$rs2->fetchMode = $savefetch;
return $line.serialize($rs2);
$rs2 is a Recordset, this code is part of ADOdb caching function, which
tries to serialize a recordset from database, and saves it into a file.
When I do print_r($rs2) it seems that all the data is there, the last
line, even without the concating of $line, just crashes. Without any
message.
What I've been through the past days because of this is insane.
Upgraded cPanel, upgraded Apache, all my apps and modules are identical
to a friends' server which this code runs so smoothly on it makes me
want to cry.
Any help why serialize() will just crash like this?
Janwillem Borleffs wrote:
> Rafi B. wrote:
> > I narrowed down the problem to: $line.serialize($rs2)
> > Am I missing something maybe in the PHP5 configuration?
> >
>
> This is probably too obvious, but when $line is an object and serialize() a
> method of this object, the call should be:
>
> $line->serialize($rs2);
>
>
> JW
Navigation:
[Reply to this message]
|