diff options
| author | Zeev Suraski <zeev@php.net> | 1999-04-28 20:26:33 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 1999-04-28 20:26:33 +0000 |
| commit | 66476011ddb8a3bee0558df90a201cbbfee1434c (patch) | |
| tree | 7a4e01f282db00b604f9445c8170515f86ecbf89 /ext/odbc/odbc.c | |
| parent | 1aaf98e54bc25eac01eaad6f2ea19e1633b6ac5d (diff) | |
| download | php-git-66476011ddb8a3bee0558df90a201cbbfee1434c.tar.gz | |
A step towards generalizing the INI mechanism even more
Diffstat (limited to 'ext/odbc/odbc.c')
| -rw-r--r-- | ext/odbc/odbc.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ext/odbc/odbc.c b/ext/odbc/odbc.c index 0ef444adb2..768af90802 100644 --- a/ext/odbc/odbc.c +++ b/ext/odbc/odbc.c @@ -189,7 +189,7 @@ static PHP_INI_MH(odbc_param_int) long *p; ODBC_TLS_VARS; - p = (long *) (globals + (size_t)mh_arg); + p = (long *) (globals + (size_t)mh_arg1); *p = atoi(new_value); return SUCCESS; @@ -201,7 +201,7 @@ static PHP_INI_MH(odbc_param_str) char **p; ODBC_TLS_VARS; - p = (char **) (globals + (size_t)mh_arg); + p = (char **) (globals + (size_t)mh_arg1); *p = new_value; return SUCCESS; @@ -209,14 +209,14 @@ static PHP_INI_MH(odbc_param_str) PHP_INI_BEGIN() - PHP_INI_ENTRY("odbc.allow_persistent", "1", PHP_INI_SYSTEM, odbc_param_int, (void *)XtOffsetOf(php_odbc_globals, allow_persistent)) - PHP_INI_ENTRY("odbc.max_persistent", "-1", PHP_INI_SYSTEM, odbc_param_int, (void *)XtOffsetOf(php_odbc_globals, max_persistent)) - PHP_INI_ENTRY("odbc.max_links", "-1", PHP_INI_SYSTEM, odbc_param_int, (void *)XtOffsetOf(php_odbc_globals, max_links)) - PHP_INI_ENTRY("odbc.default_db", NULL, PHP_INI_ALL, odbc_param_str, (void *)XtOffsetOf(php_odbc_globals, defDB)) - PHP_INI_ENTRY("odbc.default_user", NULL, PHP_INI_ALL, odbc_param_str, (void *)XtOffsetOf(php_odbc_globals, defUser)) - PHP_INI_ENTRY("odbc.default_pw", NULL, PHP_INI_ALL, odbc_param_str, (void *)XtOffsetOf(php_odbc_globals, defPW)) - PHP_INI_ENTRY("odbc.defaultlrl", "4096", PHP_INI_ALL, odbc_param_int, (void *)XtOffsetOf(php_odbc_globals, defaultlrl)) - PHP_INI_ENTRY("odbc.defaultbinmode", "1", PHP_INI_ALL, odbc_param_str, (void *)XtOffsetOf(php_odbc_globals, defPW)) + PHP_INI_ENTRY1("odbc.allow_persistent", "1", PHP_INI_SYSTEM, odbc_param_int, (void *)XtOffsetOf(php_odbc_globals, allow_persistent)) + PHP_INI_ENTRY1("odbc.max_persistent", "-1", PHP_INI_SYSTEM, odbc_param_int, (void *)XtOffsetOf(php_odbc_globals, max_persistent)) + PHP_INI_ENTRY1("odbc.max_links", "-1", PHP_INI_SYSTEM, odbc_param_int, (void *)XtOffsetOf(php_odbc_globals, max_links)) + PHP_INI_ENTRY1("odbc.default_db", NULL, PHP_INI_ALL, odbc_param_str, (void *)XtOffsetOf(php_odbc_globals, defDB)) + PHP_INI_ENTRY1("odbc.default_user", NULL, PHP_INI_ALL, odbc_param_str, (void *)XtOffsetOf(php_odbc_globals, defUser)) + PHP_INI_ENTRY1("odbc.default_pw", NULL, PHP_INI_ALL, odbc_param_str, (void *)XtOffsetOf(php_odbc_globals, defPW)) + PHP_INI_ENTRY1("odbc.defaultlrl", "4096", PHP_INI_ALL, odbc_param_int, (void *)XtOffsetOf(php_odbc_globals, defaultlrl)) + PHP_INI_ENTRY1("odbc.defaultbinmode", "1", PHP_INI_ALL, odbc_param_str, (void *)XtOffsetOf(php_odbc_globals, defPW)) PHP_INI_END() |
