_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
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',
)))
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