]> granicus.if.org Git - php/commitdiff
if statement logic would never eval to false.
authorSara Golemon <pollita@php.net>
Sat, 8 May 2004 05:58:18 +0000 (05:58 +0000)
committerSara Golemon <pollita@php.net>
Sat, 8 May 2004 05:58:18 +0000 (05:58 +0000)
ext/session/session.c

index 4ebc0afc5d0343a62a15b30263f9203c5c37e0ef..71dc86f183e0e03f2866a153addce1d1e94a7562 100644 (file)
@@ -1461,7 +1461,7 @@ static void php_register_var(zval** entry TSRMLS_DC)
        } else {
                convert_to_string_ex(entry);
 
-               if ((strcmp(Z_STRVAL_PP(entry), "HTTP_SESSION_VARS") != 0) ||
+               if ((strcmp(Z_STRVAL_PP(entry), "HTTP_SESSION_VARS") != 0) &&
                   (strcmp(Z_STRVAL_PP(entry), "_SESSION") != 0)) {
                        PS_ADD_VARL(Z_STRVAL_PP(entry), Z_STRLEN_PP(entry));
                }