mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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:
parent
01f7722faa
commit
e69a65a2b5
2 changed files with 64 additions and 62 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue