diff options
author | Hartmut Holzgraefe <hholzgra@php.net> | 2003-05-20 13:36:38 +0000 |
---|---|---|
committer | Hartmut Holzgraefe <hholzgra@php.net> | 2003-05-20 13:36:38 +0000 |
commit | 2bffad8fcee56c01124ac60d442083edc1393b25 (patch) | |
tree | 5eec178887d019e6d532bdd31ae849e243a253a1 /ext/fdf/fdf.c | |
parent | 4b7c5cea4bec6f9a82c16d0a67865b00ca504aae (diff) | |
download | php-git-2bffad8fcee56c01124ac60d442083edc1393b25.tar.gz |
zend_is_callable() already checks this ...
Diffstat (limited to 'ext/fdf/fdf.c')
-rw-r--r-- | ext/fdf/fdf.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/ext/fdf/fdf.c b/ext/fdf/fdf.c index 95e8698525..be8228c0b0 100644 --- a/ext/fdf/fdf.c +++ b/ext/fdf/fdf.c @@ -1540,14 +1540,6 @@ PHP_FUNCTION(fdf_enum_values) { ZEND_FETCH_RESOURCE(fdf, FDFDoc *, &r_fdf, -1, "fdf", le_fdf); - if (Z_TYPE_P(callback) != IS_ARRAY && - Z_TYPE_P(callback) != IS_STRING) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Wrong syntax for function name"); - RETURN_FALSE; - } - - convert_to_string_ex(&callback); - if (!zend_is_callable(callback, 0, &name)) { php_error_docref1(NULL TSRMLS_CC, name, E_WARNING, "Second argument is expected to be a valid callback"); efree(name); |