summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.h
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-01-30 11:14:53 +0100
committerRemi Collet <remi@php.net>2020-01-31 09:06:42 +0100
commit3af1cee8840a1ccaca90a4392f79510274f84450 (patch)
tree9006d6aa25ac9ff156323cf92d7a26085a6acdd0 /ext/zip/php_zip.h
parent7e7a85e881769f3ad47a68dbef0da8c29583286a (diff)
downloadphp-git-3af1cee8840a1ccaca90a4392f79510274f84450.tar.gz
add ZipArchive::registerProgressCallback and ZipArchive::registerCancelCallback methods
Diffstat (limited to 'ext/zip/php_zip.h')
-rw-r--r--ext/zip/php_zip.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/zip/php_zip.h b/ext/zip/php_zip.h
index 1eb100d45f..b6617e81fb 100644
--- a/ext/zip/php_zip.h
+++ b/ext/zip/php_zip.h
@@ -60,6 +60,12 @@ typedef struct _ze_zip_object {
int filename_len;
int buffers_cnt;
zend_object zo;
+#ifdef HAVE_PROGRESS_CALLBACK
+ zval progress_callback;
+#endif
+#ifdef HAVE_CANCEL_CALLBACK
+ zval cancel_callback;
+#endif
} ze_zip_object;
static inline ze_zip_object *php_zip_fetch_object(zend_object *obj) {