From: Andrei Zmievski Date: Fri, 28 Jan 2000 17:29:37 +0000 (+0000) Subject: Use sizeof on the proper string. X-Git-Tag: BEFORE_SAPIFICATION_FEB_10_2000~167 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e02d610df8bce36d5f35dc3e80890181e514146c;p=php Use sizeof on the proper string. --- 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); }