Export php_getenv() API

This exports a php_getenv() API which will fetch an environment
variable in a thread-safe manner (assuming all other environment
manipulations are thread-safe ... ha ha ha).

Closes GH-6571.
This commit is contained in:
Nikita Popov 2021-01-04 11:29:51 +01:00
parent 01f7722faa
commit e69a65a2b5
2 changed files with 64 additions and 62 deletions

View file

@ -137,6 +137,8 @@ typedef struct {
} putenv_entry;
#endif
PHPAPI zend_string *php_getenv(const char *str, size_t str_len);
PHPAPI double php_get_nan(void);
PHPAPI double php_get_inf(void);