Re: [PHP] Re: Storing data structires in DB

2005-04-05 Thread Richard Lynch
On Fri, April 1, 2005 10:49 am, GamblerZG said: > And please do not tell me that I need to write it in C++. The thing should > be portable. Write it in C, not C++, as a PHP extension. http://talks.php.net -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.

[PHP] Re: Storing data structires in DB

2005-04-01 Thread GamblerZG
Ok, I wrote something that fits my needs. But, as I said, it is slow. Too slow. Is anyone except me interested in human-editable serialize? Can anyone help me with optimization? And please do not tell me that I need to write it in C++. The thing should be portable. == def

Re: [PHP] Re: Storing data structires in DB

2005-03-26 Thread [EMAIL PROTECTED]
You can have the functions list in an array and check if any of that is in the code you are going to pass to eval(). Devta. GamblerZG escribió: Ok, let me ask in a different way. Is there any way to make eval to parse only data structures, without executing any functions it may encounter? ___

[PHP] Re: Storing data structires in DB

2005-03-26 Thread GamblerZG
Ok, let me ask in a different way. Is there any way to make eval to parse only data structures, without executing any functions it may encounter? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Storing data structires in DB

2005-03-24 Thread Joshua Beall
"Joshua Beall" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You should look into the WDDX functions - http://php.net/wddx/ - they give > you an XML document that you can edit by hand much more easily than the > bytestream you get from serialize. However it is not as compact as

[PHP] Re: Storing data structires in DB

2005-03-24 Thread Joshua Beall
"GamblerZG" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Output of serialize() is barely readable and definetely is not suited for > manual editing. > > It is quite simple to create var_export() clone that does not add junk to > it's output. But then I would need to exec() the s