php_variables.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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: Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
  14. | Zeev Suraski <zeev@php.net> |
  15. +----------------------------------------------------------------------+
  16. */
  17. #ifndef PHP_VARIABLES_H
  18. #define PHP_VARIABLES_H
  19. #include "php.h"
  20. #include "SAPI.h"
  21. #define PARSE_POST 0
  22. #define PARSE_GET 1
  23. #define PARSE_COOKIE 2
  24. #define PARSE_STRING 3
  25. #define PARSE_ENV 4
  26. #define PARSE_SERVER 5
  27. #define PARSE_SESSION 6
  28. BEGIN_EXTERN_C()
  29. void php_startup_auto_globals(void);
  30. extern PHPAPI void (*php_import_environment_variables)(zval *array_ptr);
  31. PHPAPI void php_register_variable(const char *var, const char *val, zval *track_vars_array);
  32. /* binary-safe version */
  33. PHPAPI void php_register_variable_safe(const char *var, const char *val, size_t val_len, zval *track_vars_array);
  34. PHPAPI void php_register_variable_ex(const char *var, zval *val, zval *track_vars_array);
  35. PHPAPI void php_build_argv(const char *s, zval *track_vars_array);
  36. PHPAPI int php_hash_environment(void);
  37. END_EXTERN_C()
  38. #define NUM_TRACK_VARS 6
  39. #endif /* PHP_VARIABLES_H */