Re: PHP Variable Storage / DBUS

From: Date: Thu, 18 Mar 2010 16:36:38 +0000
Subject: Re: PHP Variable Storage / DBUS
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-47399@lists.php.net to get a copy of this message
On Thu, 18 Mar 2010, Ben DeMott wrote:

> I realize there are some limitations here - recursive structures, 
> references, object references, pointer pointers - etc, I just don't 
> know how PHP implements it's data structures well enough to know how 
> hard retrieving simple arrays, integers, and strings from the 
> applications memory would be.

Well, you'll have to serialize the contents of the variables anyway as 
they're not one coherent piece of memory. All of the serializers do 
this. You just need a compatible deserializer on the other side.

> It would be great if a PHP arrays structure could be taken from 
> memory, written to a file or stream, and opened in Python as a 
> Dictionary without any database or serialization inbetween.

The DBus extension in PECL (http://pecl.php.net/package/DBus) implements 
a serializer and deserializer for most data types as supported by DBUS, 
and there is also a python module available to do the same. 

with kind regards,
Derick
-- 
http://derickrethans.nl | http://xdebug.org
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
twitter: @derickr and @xdebug


Thread (5 messages)

« previous php.internals (#47399) next »