php_ini.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. | Author: Zeev Suraski <zeev@php.net> |
  14. +----------------------------------------------------------------------+
  15. */
  16. #ifndef PHP_INI_H
  17. #define PHP_INI_H
  18. #include "zend_ini.h"
  19. BEGIN_EXTERN_C()
  20. PHPAPI void config_zval_dtor(zval *zvalue);
  21. int php_init_config(void);
  22. int php_shutdown_config(void);
  23. void php_ini_register_extensions(void);
  24. PHPAPI zval *cfg_get_entry_ex(zend_string *name);
  25. PHPAPI zval *cfg_get_entry(const char *name, size_t name_length);
  26. PHPAPI int cfg_get_long(const char *varname, zend_long *result);
  27. PHPAPI int cfg_get_double(const char *varname, double *result);
  28. PHPAPI int cfg_get_string(const char *varname, char **result);
  29. PHPAPI int php_parse_user_ini_file(const char *dirname, const char *ini_filename, HashTable *target_hash);
  30. PHPAPI void php_ini_activate_config(HashTable *source_hash, int modify_type, int stage);
  31. PHPAPI int php_ini_has_per_dir_config(void);
  32. PHPAPI int php_ini_has_per_host_config(void);
  33. PHPAPI void php_ini_activate_per_dir_config(char *path, size_t path_len);
  34. PHPAPI void php_ini_activate_per_host_config(const char *host, size_t host_len);
  35. PHPAPI HashTable* php_ini_get_configuration_hash(void);
  36. END_EXTERN_C()
  37. #define PHP_INI_USER ZEND_INI_USER
  38. #define PHP_INI_PERDIR ZEND_INI_PERDIR
  39. #define PHP_INI_SYSTEM ZEND_INI_SYSTEM
  40. #define PHP_INI_ALL ZEND_INI_ALL
  41. #define php_ini_entry zend_ini_entry
  42. #define PHP_INI_MH ZEND_INI_MH
  43. #define PHP_INI_DISP ZEND_INI_DISP
  44. #define PHP_INI_BEGIN ZEND_INI_BEGIN
  45. #define PHP_INI_END ZEND_INI_END
  46. #define PHP_INI_ENTRY3_EX ZEND_INI_ENTRY3_EX
  47. #define PHP_INI_ENTRY3 ZEND_INI_ENTRY3
  48. #define PHP_INI_ENTRY2_EX ZEND_INI_ENTRY2_EX
  49. #define PHP_INI_ENTRY2 ZEND_INI_ENTRY2
  50. #define PHP_INI_ENTRY1_EX ZEND_INI_ENTRY1_EX
  51. #define PHP_INI_ENTRY1 ZEND_INI_ENTRY1
  52. #define PHP_INI_ENTRY_EX ZEND_INI_ENTRY_EX
  53. #define PHP_INI_ENTRY ZEND_INI_ENTRY
  54. #define STD_PHP_INI_ENTRY STD_ZEND_INI_ENTRY
  55. #define STD_PHP_INI_ENTRY_EX STD_ZEND_INI_ENTRY_EX
  56. #define STD_PHP_INI_BOOLEAN STD_ZEND_INI_BOOLEAN
  57. #define PHP_INI_DISPLAY_ORIG ZEND_INI_DISPLAY_ORIG
  58. #define PHP_INI_DISPLAY_ACTIVE ZEND_INI_DISPLAY_ACTIVE
  59. #define PHP_INI_STAGE_STARTUP ZEND_INI_STAGE_STARTUP
  60. #define PHP_INI_STAGE_SHUTDOWN ZEND_INI_STAGE_SHUTDOWN
  61. #define PHP_INI_STAGE_ACTIVATE ZEND_INI_STAGE_ACTIVATE
  62. #define PHP_INI_STAGE_DEACTIVATE ZEND_INI_STAGE_DEACTIVATE
  63. #define PHP_INI_STAGE_RUNTIME ZEND_INI_STAGE_RUNTIME
  64. #define PHP_INI_STAGE_HTACCESS ZEND_INI_STAGE_HTACCESS
  65. #define php_ini_boolean_displayer_cb zend_ini_boolean_displayer_cb
  66. #define php_ini_color_displayer_cb zend_ini_color_displayer_cb
  67. #define php_alter_ini_entry zend_alter_ini_entry
  68. #define php_ini_long zend_ini_long
  69. #define php_ini_double zend_ini_double
  70. #define php_ini_string zend_ini_string
  71. #endif /* PHP_INI_H */