diff options
| author | Zeev Suraski <zeev@php.net> | 1999-04-10 16:25:23 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 1999-04-10 16:25:23 +0000 |
| commit | bb6dff9c671cbddd84b557051932c5ea3c0ea7c7 (patch) | |
| tree | 81edb47ea7eb7ece24f42b1a65a083b2fcf27a42 /main/php_ini.c | |
| parent | 4472d0502587f31b77251b2027f3eff858e65add (diff) | |
| download | php-git-bb6dff9c671cbddd84b557051932c5ea3c0ea7c7.tar.gz | |
Buh-bye php3_ini
Diffstat (limited to 'main/php_ini.c')
| -rw-r--r-- | main/php_ini.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/main/php_ini.c b/main/php_ini.c index 8b36129a0d..384422eddb 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -289,3 +289,26 @@ PHP_INI_MH(OnUpdateString) *p = new_value; return SUCCESS; } + + +PHP_INI_MH(OnUpdateStringUnempty) +{ + char **p; +#ifndef ZTS + char *base = (char *) &core_globals; +#else + char *base; + PLS_FETCH(); + + base = (char *) core_globals; +#endif + + if (new_value && !new_value[0]) { + return FAILURE; + } + + p = (char **) (base+(size_t) mh_arg); + + *p = new_value; + return SUCCESS; +} |
