On Jan 14, 4:58 pm, Brian Moon <[email protected]> wrote:
> On 1/14/09 10:52 AM, Stuart Dallas wrote:
>
> > We've started seeing this warning from the PHP extension a lot over
> > the past few weeks. The only thing we've changed recently is to add a
> > new instance into the mix which we've done several times before and
> > never seen this.
>
> In laymen terms, this occurs when you are storing an object such as the
> SimpleXML object that keeps data points outside of the object itself.  I
> say laymen as I don't fully understand it myself.  Don't need to.  Just
> need to know how to make it stop happening.
>
> In the case of SimpleXML, we have to run through the whole object and
> convert everything to an array or StdClass before storing in memcached.
>
> I have only seen this error with SimpleXML so it could be specific to
> SimpleXML.  Are you storing SimpleXML data in memcached?

Not SimpleXML, but the arrays being stored can contain instances of
classes, but I was under the impression that those could be serialized
in the same way arrays are. Is that not correct?

Based on what you've said we can exclude those objects before storing
the arrays since they're actually created on demand, but it seems a
bit odd to me.

-Stuart

Reply via email to