From e02d610df8bce36d5f35dc3e80890181e514146c Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Fri, 28 Jan 2000 17:29:37 +0000 Subject: [PATCH] Use sizeof on the proper string. --- TODO | 1 + main/main.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index efc92858a5..e5fc4fa769 100644 --- a/TODO +++ b/TODO @@ -48,6 +48,7 @@ ext/oci8 ext/standard ------------ * strpad() (Andrei) + * stri_replace() (Andrei) * comparing arrays semantically (like Python) (Andrei) * NOT binary safe: strtok() diff --git a/main/main.c b/main/main.c index d8568e973d..fa10a9aa03 100644 --- a/main/main.c +++ b/main/main.c @@ -1004,7 +1004,7 @@ static inline void php_register_server_variables(ELS_D SLS_DC PLS_DC) ALLOC_ZVAL(array_ptr); array_init(array_ptr); INIT_PZVAL(array_ptr); - zend_hash_add(&EG(symbol_table), "HTTP_SERVER_VARS", sizeof("HTTP_ENV_VARS"), &array_ptr, sizeof(pval *),NULL); + zend_hash_add(&EG(symbol_table), "HTTP_SERVER_VARS", sizeof("HTTP_SERVER_VARS"), &array_ptr, sizeof(pval *),NULL); } sapi_module.register_server_variables(array_ptr ELS_CC SLS_CC PLS_CC); } -- 2.50.1