Skip to content

Commit 45caf1a

Browse files
committed
Do not redefine zip constant
1 parent 88e31c5 commit 45caf1a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

ext/zip/php_zip.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3110,12 +3110,6 @@ static PHP_MINIT_FUNCTION(zip)
31103110
php_zip_register_prop_handler(&zip_prop_handlers, "filename", NULL, php_zipobj_get_filename, IS_STRING);
31113111
php_zip_register_prop_handler(&zip_prop_handlers, "comment", NULL, php_zipobj_get_zip_comment, IS_STRING);
31123112

3113-
#ifdef HAVE_LIBZIP_VERSION
3114-
zend_declare_class_constant_string(zip_class_entry, "LIBZIP_VERSION", sizeof("LIBZIP_VERSION")-1, zip_libzip_version());
3115-
#else
3116-
zend_declare_class_constant_string(zip_class_entry, "LIBZIP_VERSION", sizeof("LIBZIP_VERSION")-1, LIBZIP_VERSION);
3117-
#endif
3118-
31193113
php_register_url_stream_wrapper("zip", &php_stream_zip_wrapper);
31203114

31213115
le_zip_dir = zend_register_list_destructors_ex(php_zip_free_dir, NULL, le_zip_dir_name, module_number);

0 commit comments

Comments
 (0)