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.

82 lines
3.1 KiB

27 years ago
27 years ago
20 years ago
27 years ago
27 years ago
27 years ago
27 years ago
28 years ago
28 years ago
28 years ago
28 years ago
28 years ago
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 5 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2007 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. | Author: Zeev Suraski <zeev@zend.com> |
  16. +----------------------------------------------------------------------+
  17. */
  18. /* $Id$ */
  19. #ifndef PHP_INI_H
  20. #define PHP_INI_H
  21. #include "zend_ini.h"
  22. BEGIN_EXTERN_C()
  23. int php_init_config(TSRMLS_D);
  24. int php_shutdown_config(void);
  25. void php_ini_register_extensions(TSRMLS_D);
  26. PHPAPI zval *cfg_get_entry(char *name, uint name_length);
  27. PHPAPI int cfg_get_long(char *varname, long *result);
  28. PHPAPI int cfg_get_double(char *varname, double *result);
  29. PHPAPI int cfg_get_string(char *varname, char **result);
  30. END_EXTERN_C()
  31. #define PHP_INI_USER ZEND_INI_USER
  32. #define PHP_INI_PERDIR ZEND_INI_PERDIR
  33. #define PHP_INI_SYSTEM ZEND_INI_SYSTEM
  34. #define PHP_INI_ALL ZEND_INI_ALL
  35. #define php_ini_entry zend_ini_entry
  36. #define PHP_INI_MH ZEND_INI_MH
  37. #define PHP_INI_DISP ZEND_INI_DISP
  38. #define PHP_INI_BEGIN ZEND_INI_BEGIN
  39. #define PHP_INI_END ZEND_INI_END
  40. #define PHP_INI_ENTRY3_EX ZEND_INI_ENTRY3_EX
  41. #define PHP_INI_ENTRY3 ZEND_INI_ENTRY3
  42. #define PHP_INI_ENTRY2_EX ZEND_INI_ENTRY2_EX
  43. #define PHP_INI_ENTRY2 ZEND_INI_ENTRY2
  44. #define PHP_INI_ENTRY1_EX ZEND_INI_ENTRY1_EX
  45. #define PHP_INI_ENTRY1 ZEND_INI_ENTRY1
  46. #define PHP_INI_ENTRY_EX ZEND_INI_ENTRY_EX
  47. #define PHP_INI_ENTRY ZEND_INI_ENTRY
  48. #define STD_PHP_INI_ENTRY STD_ZEND_INI_ENTRY
  49. #define STD_PHP_INI_ENTRY_EX STD_ZEND_INI_ENTRY_EX
  50. #define STD_PHP_INI_BOOLEAN STD_ZEND_INI_BOOLEAN
  51. #define PHP_INI_DISPLAY_ORIG ZEND_INI_DISPLAY_ORIG
  52. #define PHP_INI_DISPLAY_ACTIVE ZEND_INI_DISPLAY_ACTIVE
  53. #define PHP_INI_STAGE_STARTUP ZEND_INI_STAGE_STARTUP
  54. #define PHP_INI_STAGE_SHUTDOWN ZEND_INI_STAGE_SHUTDOWN
  55. #define PHP_INI_STAGE_ACTIVATE ZEND_INI_STAGE_ACTIVATE
  56. #define PHP_INI_STAGE_DEACTIVATE ZEND_INI_STAGE_DEACTIVATE
  57. #define PHP_INI_STAGE_RUNTIME ZEND_INI_STAGE_RUNTIME
  58. #define PHP_INI_STAGE_HTACCESS ZEND_INI_STAGE_HTACCESS
  59. #define php_ini_boolean_displayer_cb zend_ini_boolean_displayer_cb
  60. #define php_ini_color_displayer_cb zend_ini_color_displayer_cb
  61. #define php_alter_ini_entry zend_alter_ini_entry
  62. #define php_ini_long zend_ini_long
  63. #define php_ini_double zend_ini_double
  64. #define php_ini_string zend_ini_string
  65. #endif /* PHP_INI_H */