diff options
author | Andrei Zmievski <andrei@php.net> | 2000-01-28 17:29:37 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 2000-01-28 17:29:37 +0000 |
commit | e02d610df8bce36d5f35dc3e80890181e514146c (patch) | |
tree | 6481a529e8176c0c38fc3ca4598e994094dbea1b | |
parent | 9ab35ae39367bcd30037c6bfc73ae0c77c35d872 (diff) | |
download | php-git-e02d610df8bce36d5f35dc3e80890181e514146c.tar.gz |
Use sizeof on the proper string.
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | main/main.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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); } |