Hello David,

  wait for PHP 5.1 and use the Serializable interface. Otherwise ask
on the general list for support.

marcus

Tuesday, July 5, 2005, 4:16:11 PM, you wrote:

> I'm writing an extension for PHP 4 (running version 4.3.10) in C/C++. 
> The extension provides a set of classes to the PHP programmer (it is, 
> hence, object oriented). My problem is that some of the objects (or, 
> rather, references to objects) provided by my extension needs to be 
> stored in a session and, thus, serialized. I have, however, no idea on 
> how to provide a custom serialize function for my objects as the 
> built-in one (for obvious reasons) doesn't work. I have had no luck 
> finding any useful tips and/or documentation for PHP 4 regarding this 
> matter. I sincerely hope that someone could point me in the right direction.

> Or have I completely misunderstood the entire concept; when storing a 
> reference to an object (implemented in C/C++), do the object really have 
> to be serialized? Thanks for all tips! :-)

> Best regards
> David Olsson




-- 
Best regards,
 Marcus                            mailto:[EMAIL PROTECTED]

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to