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 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php