You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
2.0 KiB

25 years ago
24 years ago
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 4 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2003 The PHP Group |
  6. +----------------------------------------------------------------------+
  7. | This source file is subject to version 3.0 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_0.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: Rasmus Lerdorf <rasmus@lerdorf.on.ca> |
  16. | Zeev Suraski <zeev@zend.com> |
  17. +----------------------------------------------------------------------+
  18. */
  19. /* $Id$ */
  20. #ifndef PHP_VARIABLES_H
  21. #define PHP_VARIABLES_H
  22. #include "php.h"
  23. #include "SAPI.h"
  24. #define PARSE_POST 0
  25. #define PARSE_GET 1
  26. #define PARSE_COOKIE 2
  27. #define PARSE_STRING 3
  28. BEGIN_EXTERN_C()
  29. void php_treat_data(int arg, char *str, zval* destArray TSRMLS_DC);
  30. void php_startup_auto_globals(TSRMLS_D);
  31. extern PHPAPI void (*php_import_environment_variables)(zval *array_ptr TSRMLS_DC);
  32. PHPAPI void php_register_variable(char *var, char *val, pval *track_vars_array TSRMLS_DC);
  33. /* binary-safe version */
  34. PHPAPI void php_register_variable_safe(char *var, char *val, int val_len, pval *track_vars_array TSRMLS_DC);
  35. PHPAPI void php_register_variable_ex(char *var, zval *val, pval *track_vars_array TSRMLS_DC);
  36. int php_hash_environment(TSRMLS_D);
  37. END_EXTERN_C()
  38. #define NUM_TRACK_VARS 6
  39. #endif /* PHP_VARIABLES_H */