Re: [PHP-DEV] [PATCH] Fix segfault in filter extension when using callbacks

2008-02-24 Thread Arnar Mar Sig
_PP(value) == IS_BOOL && Z_LVAL_PP(value) == 0)) && zend_hash_exists(HASH_OF(options), "default", sizeof("default")) Arnar Mar Sig On Feb 24, 2008, at 3:37 PM, Arnar Mar Sig wrote: The filter extensinon will segfault if a callback filter returns

[PHP-DEV] [PATCH] Fix segfault in filter extension when using callbacks

2008-02-24 Thread Arnar Mar Sig
d callback, but to set a default value then this key must be a array that includes the key 'default'. Test case: function filter_test($str) { return FALSE; } var_dump(filter_var('durty/boy', FILTER_CALLBACK, array( 'options' => 'filter_test', )))

[PHP-DEV] Patch for get_headers(

2005-08-10 Thread Arnar Mar Sig
This patch defines a new argument to get_headers. "header" to get a specified header and returns it as a string. ? get_headers.patch Index: ext/standard/url.c === RCS file: /repository/php-src/ext/standard/url.c,v retrieving revisio