PHP_ADD_EXTENSION_DEP(phar, zlib, true)
PHP_ADD_EXTENSION_DEP(phar, bz2, true)
PHP_ADD_EXTENSION_DEP(phar, spl, true)
- PHP_ADD_EXTENSION_DEP(phar, gnupg, true)
PHP_ADD_MAKEFILE_FRAGMENT
fi
ADD_EXTENSION_DEP('phar', 'zlib', true);
ADD_EXTENSION_DEP('phar', 'bz2', true);
ADD_EXTENSION_DEP('phar', 'spl', true);
- ADD_EXTENSION_DEP('phar', 'gnupg', true);
}
ZEND_INIT_MODULE_GLOBALS(phar, php_phar_init_globals_module, NULL);
REGISTER_INI_ENTRIES();
- phar_has_gnupg = zend_hash_exists(&module_registry, "gnupg", sizeof("gnupg"));
phar_has_bz2 = zend_hash_exists(&module_registry, "bz2", sizeof("bz2"));
phar_has_zlib = zend_hash_exists(&module_registry, "zlib", sizeof("zlib"));
phar_has_zip = zend_hash_exists(&module_registry, "zip", sizeof("zip"));
}
#else
php_info_print_table_row(2, "bzip2 compression", "unavailable (install pecl/bz2)");
-#endif
-#if HAVE_GNUPGLIB
- if (phar_has_gnupg) {
- php_info_print_table_row(2, "GPG signature", "enabled");
- } else {
- php_info_print_table_row(2, "GPG signature", "disabled (install pecl/gnupg)");
- }
-#else
- php_info_print_table_row(2, "GPG signature", "unavailable (install pecl/gnupg)");
#endif
php_info_print_table_end();
#if HAVE_BZ2
ZEND_MOD_OPTIONAL("bz2")
#endif
-#if HAVE_GNUPGLIB
- ZEND_MOD_OPTIONAL("gnupg")
-#endif
#if HAVE_SPL
ZEND_MOD_REQUIRED("spl")
#endif
#include "ext/spl/spl_exceptions.h"
#include "ext/spl/spl_iterators.h"
#endif
-#if HAVE_GNUPGLIB
-#include "ext/gnupg/php_gnupg.h"
-#endif
#include "php_phar.h"
#ifdef HAVE_STDINT_H
#include <stdint.h>
ZEND_EXTERN_MODULE_GLOBALS(phar)
int phar_has_bz2;
-int phar_has_gnupg;
int phar_has_zlib;
int phar_has_zip;