com php-src: Fixed NULL pointer def: ext/standard/head.c

From: Date: Mon, 03 Mar 2014 10:12:13 +0000
Subject: com php-src: Fixed NULL pointer def: ext/standard/head.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77848@lists.php.net to get a copy of this message
Commit: ebfa9e04156dbace382489bd27c7fb170ac43149 Author: Xinchen Hui <laruence@gmail.com> Mon, 3 Mar 2014 18:12:13 +0800 Parents: 1aecda4c4386f7acc11e35560ec8bcb3f520fb4c Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ebfa9e04156dbace382489bd27c7fb170ac43149 Log: Fixed NULL pointer def Changed paths: M ext/standard/head.c Diff: diff --git a/ext/standard/head.c b/ext/standard/head.c index 2fa5e1f..04a3c89 100644 --- a/ext/standard/head.c +++ b/ext/standard/head.c @@ -95,11 +95,12 @@ PHPAPI int php_setcookie(char *name, int name_len, char *value, int value_len, t len += name_len; if (value && url_encode) { encoded_value = php_url_encode(value, value_len); + len += encoded_value->len; } else if (value) { encoded_value = STR_INIT(value, value_len, 0); + len += encoded_value->len; } - len += encoded_value->len; if (path) { len += path_len; }

« previous php.cvs (#77848) next »