[Html_ajax-svn] [178] implementation and examples for Urlencoded
serializer
Arpad Ray
arpad at rajeczy.com
Thu Nov 10 13:17:53 CST 2005
On Friday 11 November 2005 18:40, Elizabeth Smith wrote:
> Packages in pear don't usually rely on php_compat - instead just do
> if(!function_exists and either error out with instructions to use
> php_compat or copy/paste a compatible implementation. Lots of people
> don't have pear_compat installed and this will die a horrible death for
> them :).
>
To clarify, the package doesn't rely on PHP_Compat. This serialization method
alone requires PHP 5, PHP_Compat, or some other implementation of
http_build_query().
Since PHP_Compat provides a nice implementation I do think that should be
automatically checked for, I don't think duplicating that code here would
make sense.
I've moved the check into the serialize() function, so that unserialize() by
itself doesn't require it, and made it trigger a user warning if the function
isn't defined and can't be included from PHP_Compat.
I hope this prevents a few horrible deaths.
More information about the Html_ajax-svn
mailing list