php_spl.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. +----------------------------------------------------------------------+
  3. | Copyright (c) The PHP Group |
  4. +----------------------------------------------------------------------+
  5. | This source file is subject to version 3.01 of the PHP license, |
  6. | that is bundled with this package in the file LICENSE, and is |
  7. | available through the world-wide-web at the following url: |
  8. | https://www.php.net/license/3_01.txt |
  9. | If you did not receive a copy of the PHP license and are unable to |
  10. | obtain it through the world-wide-web, please send a note to |
  11. | license@php.net so we can mail you a copy immediately. |
  12. +----------------------------------------------------------------------+
  13. | Authors: Marcus Boerger <helly@php.net> |
  14. +----------------------------------------------------------------------+
  15. */
  16. #ifndef PHP_SPL_H
  17. #define PHP_SPL_H
  18. #include "php.h"
  19. #include <stdarg.h>
  20. #define PHP_SPL_VERSION PHP_VERSION
  21. extern zend_module_entry spl_module_entry;
  22. #define phpext_spl_ptr &spl_module_entry
  23. #ifdef PHP_WIN32
  24. # ifdef SPL_EXPORTS
  25. # define SPL_API __declspec(dllexport)
  26. # elif defined(COMPILE_DL_SPL)
  27. # define SPL_API __declspec(dllimport)
  28. # else
  29. # define SPL_API /* nothing */
  30. # endif
  31. #elif defined(__GNUC__) && __GNUC__ >= 4
  32. # define SPL_API __attribute__ ((visibility("default")))
  33. #else
  34. # define SPL_API
  35. #endif
  36. #if defined(PHP_WIN32) && !defined(COMPILE_DL_SPL)
  37. #undef phpext_spl
  38. #define phpext_spl NULL
  39. #endif
  40. PHP_MINIT_FUNCTION(spl);
  41. PHP_MSHUTDOWN_FUNCTION(spl);
  42. PHP_RINIT_FUNCTION(spl);
  43. PHP_RSHUTDOWN_FUNCTION(spl);
  44. PHP_MINFO_FUNCTION(spl);
  45. PHPAPI zend_string *php_spl_object_hash(zend_object *obj);
  46. #endif /* PHP_SPL_H */