Reply to Re: Any possible reason why "$line.serialize($rs2)" refuses to execute?

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация