# binary serializer/unserializer and session.serialize_handler

- Thread: https://externals.io/message/11326
- Original archive: https://news-web.php.net/php.internals/11326
- Started by fumi@wgserve.de on 2004-07-18T16:16:42+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #11326 — fumi@wgserve.de — 2004-07-18T16:16:42+00:00

URL: https://externals.io/message/11326#11326

hi...

i implemented and shortly benchmarked a binary serializer (which means 
serializing and unserializing php-variables into a binary 
representation). At the moment it is written as an extension, but 
perhaps it is interesting to let it become a standard-extension or part 
of ext/standard (var.c) and ext/session (to avoid registering the 
serialize_handler at runtime). Here is the url to the extension:

	http://fum.no-ip.com/php/fbinary/

There are some additional informations about it and also the benchmarks.
Hopefully it is interesting for anybody...

Bernd Roemer

---

## #11327 — Marcus Boerger — 2004-07-18T16:23:15+00:00

URL: https://externals.io/message/11326#11327 · In reply to: #11326

Hello Bernd,

 just commit it to pecl after applying for pecl. If it turns out to
be helpful the RM might want to symlink it as a default extension
into next release.

regards
marcus
 
Sunday, July 18, 2004, 6:16:42 PM, you wrote:

> hi...

> i implemented and shortly benchmarked a binary serializer (which means 
> serializing and unserializing php-variables into a binary 
> representation). At the moment it is written as an extension, but 
> perhaps it is interesting to let it become a standard-extension or part 
> of ext/standard (var.c) and ext/session (to avoid registering the 
> serialize_handler at runtime). Here is the url to the extension:

> 	http://fum.no-ip.com/php/fbinary/

> There are some additional informations about it and also the benchmarks.
> Hopefully it is interesting for anybody...

> Bernd Roemer




-- 
Best regards,
 Marcus                            mailto:helly@php.net

---

## #11328 — Andi Gutmans — 2004-07-18T17:24:38+00:00

URL: https://externals.io/message/11326#11328 · In reply to: #11326

Hi Bernd,

It seems you are using zend_dynamic_array() which is something I wrote a 
long time ago and never got to completely testing it. Seems to me that 
there's a problem there with the erealloc() call. It could relocate the 
data storage and, therefore, all of your pointers to that storage might end 
up being wrong.
Can you explain exactly what kind of data structure you require? I am 
planning on working on a static allocator (not stack) soon and I'm just 
wondering if that would suit your needs or not.
Thanks,

Andi

At 06:16 PM 7/18/2004 +0200, Bernd Römer wrote:
>hi...
>
>i implemented and shortly benchmarked a binary serializer (which means 
>serializing and unserializing php-variables into a binary representation). 
>At the moment it is written as an extension, but perhaps it is interesting 
>to let it become a standard-extension or part of ext/standard (var.c) and 
>ext/session (to avoid registering the serialize_handler at runtime). Here 
>is the url to the extension:
>
>         http://fum.no-ip.com/php/fbinary/
>
>There are some additional informations about it and also the benchmarks.
>Hopefully it is interesting for anybody...
>
>Bernd Roemer
