diff options
author | Andrei Zmievski <andrei@php.net> | 2000-10-20 18:25:16 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 2000-10-20 18:25:16 +0000 |
commit | 7b4983c8f82c4f361df787f58c6f5cf88d5def0b (patch) | |
tree | e38e8ffceb65a0f2492b28e2b07c8668fcddeda4 /ext/fdf | |
parent | a0cfab65ea72963f81a3440a3587d11bd7800337 (diff) | |
download | php-git-7b4983c8f82c4f361df787f58c6f5cf88d5def0b.tar.gz |
Mega-patch to get better resource information for modules.
* Fixed a bug in zend_rsrc_list_get_rsrc_type()
* Switched register_list_destructors() to use
zend_register_list_destructors_ex() instead
* Updated all relevant modules to provide the resource type name
to register_list_destructors() call
* Updated var_dump() to output resource type name instead of number
@- Made resource type names visible, e.g. var_dump() and
@ get_resource_type() display "file" for file resources. (Andrei)
Diffstat (limited to 'ext/fdf')
-rw-r--r-- | ext/fdf/fdf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/fdf/fdf.c b/ext/fdf/fdf.c index bb1e9f751a..998483d946 100644 --- a/ext/fdf/fdf.c +++ b/ext/fdf/fdf.c @@ -100,7 +100,9 @@ zend_module_entry fdf_module_entry = { ZEND_GET_MODULE(fdf) #endif -static void phpi_FDFClose(FDFDoc fdf) { +static void phpi_FDFClose(zend_rsrc_list_entry *rsrc) +{ + FDFDoc fdf = (FDFDoc)rsrc->ptr; (void)FDFClose(fdf); } @@ -116,7 +118,7 @@ static sapi_post_entry supported_post_entries[] = { PHP_MINIT_FUNCTION(fdf) { FDFErc err; - FDF_GLOBAL(le_fdf) = register_list_destructors(phpi_FDFClose, NULL); + FDF_GLOBAL(le_fdf) = register_list_destructors(phpi_FDFClose, NULL, "fdf"); /* add handler for Acrobat FDF form post requests */ sapi_add_post_entry("application/vnd.fdf", php_default_post_reader, fdf_post_handler); |