note 96214 added to function.pack
| From: | SixThreeOh at osu1 dot php dot net | Date: | Mon, 15 Feb 2010 18:04:30 +0000 |
| Subject: | note 96214 added to function.pack | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-165976@lists.php.net to get a copy of this message | ||
If you're bugged by http://bugs.php.net/bug.php?id=5889 then you can try
this:
Use igbinary-serialize if you don't mind a little overhead.
Or intarray (by the same person) if you don't mind using a slightly experimental package which
may have problems sharing data between differently byte/bit ordered architectures.
I don't believe it would be too difficult to shove a serialize function and unserialize
function in there if you rip out the code from igbinary for storing numeric arrays with the correct
endianess. Looking at
igbinary_serialize32 and igbinary_unserialize32 in
igbinary.c it should be very easy to copy that functionality to intarray.c.
Take away the "<<0" though, that's just stupid :P
Ref: http://opensource.dynamoid.com/
----
Server IP: 69.147.83.197
Probable Submitter: 91.201.194.48
----
Manual Page -- http://www.php.net/manual/en/function.pack.php
Edit -- https://master.php.net/note/edit/96214
Del: integrated -- https://master.php.net/note/delete/96214/integrated
Del: useless -- https://master.php.net/note/delete/96214/useless
Del: bad code -- https://master.php.net/note/delete/96214/bad+code
Del: spam -- https://master.php.net/note/delete/96214/spam
Del: non-english -- https://master.php.net/note/delete/96214/non-english
Del: in docs -- https://master.php.net/note/delete/96214/in+docs
Del: other reasons-- https://master.php.net/note/delete/96214
Reject -- https://master.php.net/note/reject/96214
Search -- https://master.php.net/manage/user-notes.php