mirror of
https://github.com/php/php-src.git
synced 2024-11-27 20:03:40 +08:00
MFHZE2
This commit is contained in:
parent
34aa1fdd2a
commit
d53b487633
@ -431,7 +431,11 @@ ZEND_API ZEND_INI_MH(OnUpdateBool)
|
||||
|
||||
p = (zend_bool *) (base+(size_t) mh_arg1);
|
||||
|
||||
*p = (zend_bool) atoi(new_value);
|
||||
if (strncasecmp("on", new_value, sizeof("on"))) {
|
||||
*p = (zend_bool) atoi(new_value);
|
||||
} else {
|
||||
*p = (zend_bool) 1;
|
||||
}
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user