From 38e5a2077d30077a74a64bdc1d637a17ab0fdf9d Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Sat, 21 Jul 2001 01:15:18 +0000 Subject: [PATCH] Clarify and optimize --- ext/standard/head.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.1