]> granicus.if.org Git - php/commitdiff
fixed binary arithmetic (MF5.2)
authorHartmut Holzgraefe <hholzgra@php.net>
Tue, 1 Jan 2008 18:13:14 +0000 (18:13 +0000)
committerHartmut Holzgraefe <hholzgra@php.net>
Tue, 1 Jan 2008 18:13:14 +0000 (18:13 +0000)
ext/mysqli/mysqli_api.c

index 59628226bbb9478d47647c475e8e60b95437fd62..76c10758c2b9876ab59215099fda49c63c37173c 100644 (file)
@@ -1626,7 +1626,7 @@ PHP_FUNCTION(mysqli_real_connect)
        /* remove some insecure options */
        flags &= ~CLIENT_MULTI_STATEMENTS;   /* don't allow multi_queries via connect parameter */
        if (PG(open_basedir) && PG(open_basedir)[0] != '\0') {
-               flags ^= CLIENT_LOCAL_FILES;
+               flags &= ~CLIENT_LOCAL_FILES;
        }
 
 #if !defined(HAVE_MYSQLND)