summaryrefslogtreecommitdiff
path: root/ext/standard/head.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-07-21 01:15:18 +0000
committerZeev Suraski <zeev@php.net>2001-07-21 01:15:18 +0000
commit38e5a2077d30077a74a64bdc1d637a17ab0fdf9d (patch)
tree76aaa93b57f3a86e5d9d50f46fad0ea755ec8545 /ext/standard/head.c
parentbf513871bc85bf23e2de729966f77129defc251c (diff)
downloadphp-git-38e5a2077d30077a74a64bdc1d637a17ab0fdf9d.tar.gz
Clarify and optimize
Diffstat (limited to 'ext/standard/head.c')
-rw-r--r--ext/standard/head.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/head.c b/ext/standard/head.c
index cb0bba7128..34d59454f0 100644
--- a/ext/standard/head.c
+++ b/ext/standard/head.c
@@ -132,7 +132,7 @@ PHP_FUNCTION(setcookie)
len += Z_STRLEN_PP(z_domain);
}
cookie = emalloc(len + 100);
- if (z_value && (!Z_STRVAL_PP(z_value) || (Z_STRVAL_PP(z_value) && !Z_STRVAL_PP(z_value)[0]))) {
+ if (z_value && Z_STRLEN_PP(z_value)==0) {
/*
* MSIE doesn't delete a cookie when you set it to a null value
* so in order to force cookies to be deleted, even on MSIE, we