OnUpdateBool
| From: | (Marcus Boerger) | Date: | Fri, 23 Aug 2002 22:49:00 +0000 |
| Subject: | OnUpdateBool | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-87369@lists.php.net to get a copy of this message | ||
The boolean ini settings are handled by OnUpdateBool:
ZEND_API ZEND_INI_MH(OnUpdateBool)
{
zend_bool *p;
#ifndef ZTS
char *base = (char *) mh_arg2;
#else
char *base;
base = (char *) ts_resource(*((int *) mh_arg2));
#endif
p = (zend_bool *) (base+(size_t) mh_arg1);
*p = (zend_bool) atoi(new_value);
return SUCCESS;
}
this function obviously does not check for 'On' and 'Off' but
only uses atoi. Therefor you cannot call ini_set('setting', 'On');
Shouldn't On and Off be allowed also?
marcus