diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2019-03-16 06:14:01 -0300 |
---|---|---|
committer | Gabriel Caruso <carusogabriel34@gmail.com> | 2019-04-14 11:44:12 -0300 |
commit | 656db96eb931671ecdc789c047f620de2f9fec05 (patch) | |
tree | a8db212e3370ef9da5dfe1549760c1f1ad542d16 /ext/zip/php_zip.c | |
parent | 69b20f51e15d535da77f830709a4f1b5a682c265 (diff) | |
download | php-git-656db96eb931671ecdc789c047f620de2f9fec05.tar.gz |
Remove HAVE_* for always available extensions
Diffstat (limited to 'ext/zip/php_zip.c')
-rw-r--r-- | ext/zip/php_zip.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index 02b8b6c49e..abf901da1f 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -28,11 +28,7 @@ #include "ext/standard/php_string.h" #include "ext/pcre/php_pcre.h" #include "ext/standard/php_filestat.h" -#if PHP_VERSION_ID >= 70200 #include "zend_interfaces.h" -#elif defined(HAVE_SPL) -#include "ext/spl/spl_iterators.h" -#endif #include "php_zip.h" /* zip_open is a macro for renaming libzip zipopen, so we need to use PHP_NAMED_FUNCTION */ @@ -3017,11 +3013,7 @@ static PHP_MINIT_FUNCTION(zip) php_zip_register_prop_handler(&zip_prop_handlers, "numFiles", php_zip_get_num_files, NULL, NULL, IS_LONG); php_zip_register_prop_handler(&zip_prop_handlers, "filename", NULL, NULL, php_zipobj_get_filename, IS_STRING); php_zip_register_prop_handler(&zip_prop_handlers, "comment", NULL, php_zipobj_get_zip_comment, NULL, IS_STRING); -#if PHP_VERSION_ID >= 70200 zend_class_implements(zip_class_entry, 1, zend_ce_countable); -#elif defined(HAVE_SPL) - zend_class_implements(zip_class_entry, 1, spl_ce_Countable); -#endif REGISTER_ZIP_CLASS_CONST_LONG("CREATE", ZIP_CREATE); REGISTER_ZIP_CLASS_CONST_LONG("EXCL", ZIP_EXCL); |