gtoubassi/femtozip — Issue #1: C++ library and PHP PECL
Author: diegomontoya
Created: 2011-12-27 03:41:14+00:00
State: open

Could not find an email address to contact "gtoubassi" so leaving a note here.

1) The wiki mentions its in use in production at a PHP site but there is no PHP module. Is this built but not released?

2) I'm not a C/C++ programmer and tried to tackle creating a PHP PECL extension but ran into the following problems:

A) The C++ library has no error checking or exception handling for all error cases.
B) Throws error on invalid model file (passing a non-existing file). This was fixed by checking file.good().
C) Throws error on broken model file (passing a file but not a valid model). I could not catch the error in C++ using try/catch so not sure what's going on. Again, I have little experience in C++.
D) Throws error on decompression of a string that is not a valid femtozip compressed string.

My half-baked PHP PECL module works only in a perfect environment where everything passed to it is perfect but would like the ability to handle real-world usage where bad data is throw at it and be able to recover and not crash due to errors.

Would love to have femtozip working in production and need some assistance.