php_spl.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 7 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2018 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. | http://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: Marcus Boerger <helly@php.net> |
  16. +----------------------------------------------------------------------+
  17. */
  18. #ifndef PHP_SPL_H
  19. #define PHP_SPL_H
  20. #include "php.h"
  21. #include <stdarg.h>
  22. #define PHP_SPL_VERSION PHP_VERSION
  23. extern zend_module_entry spl_module_entry;
  24. #define phpext_spl_ptr &spl_module_entry
  25. #ifdef PHP_WIN32
  26. # ifdef SPL_EXPORTS
  27. # define SPL_API __declspec(dllexport)
  28. # elif defined(COMPILE_DL_SPL)
  29. # define SPL_API __declspec(dllimport)
  30. # else
  31. # define SPL_API /* nothing */
  32. # endif
  33. #elif defined(__GNUC__) && __GNUC__ >= 4
  34. # define SPL_API __attribute__ ((visibility("default")))
  35. #else
  36. # define SPL_API
  37. #endif
  38. #if defined(PHP_WIN32) && !defined(COMPILE_DL_SPL)
  39. #undef phpext_spl
  40. #define phpext_spl NULL
  41. #endif
  42. PHP_MINIT_FUNCTION(spl);
  43. PHP_MSHUTDOWN_FUNCTION(spl);
  44. PHP_RINIT_FUNCTION(spl);
  45. PHP_RSHUTDOWN_FUNCTION(spl);
  46. PHP_MINFO_FUNCTION(spl);
  47. ZEND_BEGIN_MODULE_GLOBALS(spl)
  48. zend_string *autoload_extensions;
  49. HashTable *autoload_functions;
  50. intptr_t hash_mask_handle;
  51. intptr_t hash_mask_handlers;
  52. int hash_mask_init;
  53. int autoload_running;
  54. ZEND_END_MODULE_GLOBALS(spl)
  55. ZEND_EXTERN_MODULE_GLOBALS(spl)
  56. #define SPL_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(spl, v)
  57. PHP_FUNCTION(spl_classes);
  58. PHP_FUNCTION(class_parents);
  59. PHP_FUNCTION(class_implements);
  60. PHP_FUNCTION(class_uses);
  61. PHPAPI zend_string *php_spl_object_hash(zval *obj);
  62. #endif /* PHP_SPL_H */
  63. /*
  64. * Local Variables:
  65. * c-basic-offset: 4
  66. * tab-width: 4
  67. * End:
  68. * vim600: fdm=marker
  69. * vim: noet sw=4 ts=4
  70. */