php_phar.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. +----------------------------------------------------------------------+
  3. | phar php single-file executable PHP extension |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) The PHP Group |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 3.01 of the PHP license, |
  8. | that is bundled with this package in the file LICENSE, and is |
  9. | available through the world-wide-web at the following url: |
  10. | https://www.php.net/license/3_01.txt |
  11. | If you did not receive a copy of the PHP license and are unable to |
  12. | obtain it through the world-wide-web, please send a note to |
  13. | license@php.net so we can mail you a copy immediately. |
  14. +----------------------------------------------------------------------+
  15. | Authors: Gregory Beaver <cellog@php.net> |
  16. | Marcus Boerger <helly@php.net> |
  17. +----------------------------------------------------------------------+
  18. */
  19. #ifndef PHP_PHAR_H
  20. #define PHP_PHAR_H
  21. #define PHP_PHAR_VERSION PHP_VERSION
  22. #include "ext/standard/basic_functions.h"
  23. extern zend_module_entry phar_module_entry;
  24. #define phpext_phar_ptr &phar_module_entry
  25. #ifdef PHP_WIN32
  26. #define PHP_PHAR_API __declspec(dllexport)
  27. #else
  28. #define PHP_PHAR_API PHPAPI
  29. #endif
  30. PHP_PHAR_API int phar_resolve_alias(char *alias, size_t alias_len, char **filename, size_t *filename_len);
  31. #endif /* PHP_PHAR_H */