summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-03-29 21:23:53 +0000
committerMarcus Boerger <helly@php.net>2003-03-29 21:23:53 +0000
commitc21f2b7493f38b62c391c56f55067ccc79be7c7c (patch)
tree6a0b01b0ac02ecdff5538369e23deda4939e33fb /sapi/cli/php_cli.c
parentfa59090287acb4379d40eccf88cca38d47212b95 (diff)
downloadphp-git-c21f2b7493f38b62c391c56f55067ccc79be7c7c.tar.gz
use sizeof() as suggested by Andrei
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r--sapi/cli/php_cli.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index 5fc9a17394..c2ec369155 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -281,9 +281,9 @@ static int php_cli_startup(sapi_module_struct *sapi_module)
/* {{{ sapi_cli_ini_defaults */
-#define INI_DEFAULT(name,name_len,value)\
+#define INI_DEFAULT(name,value)\
ZVAL_STRING(tmp, value, 0);\
- zend_hash_update(configuration_hash, name, name_len, tmp, sizeof(zval), (void**)&entry);\
+ zend_hash_update(configuration_hash, name, sizeof(name), tmp, sizeof(zval), (void**)&entry);\
Z_STRVAL_P(entry) = zend_strndup(Z_STRVAL_P(entry), Z_STRLEN_P(entry))
static void sapi_cli_ini_defaults(HashTable *configuration_hash)
@@ -292,10 +292,10 @@ static void sapi_cli_ini_defaults(HashTable *configuration_hash)
MAKE_STD_ZVAL(tmp);
- INI_DEFAULT("register_argc_argv", 19, "1");
- INI_DEFAULT("html_errors", 12, "0");
- INI_DEFAULT("implicit_flush", 15, "1");
- INI_DEFAULT("max_execution_time", 19, "0");
+ INI_DEFAULT("register_argc_argv", "1");
+ INI_DEFAULT("html_errors", "0");
+ INI_DEFAULT("implicit_flush", "1");
+ INI_DEFAULT("max_execution_time", "0");
FREE_ZVAL(tmp);
}