]> granicus.if.org Git - php/commitdiff
return FALSE if driver doesn't support quoting and returns 0
authorAntony Dovgal <tony2001@php.net>
Thu, 23 Mar 2006 19:03:30 +0000 (19:03 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 23 Mar 2006 19:03:30 +0000 (19:03 +0000)
also fixes PECL bug #6365

ext/pdo/pdo_dbh.c

index 8a16bf573ddf0ea5f2db69ec1b404d1d0884aad4..f4d5d48c8e373b9f2d29ec20091dda6d9e8420f1 100755 (executable)
@@ -1076,6 +1076,7 @@ static PHP_METHOD(PDO, quote)
                RETURN_STRINGL(qstr, qlen, 0);
        }
        PDO_HANDLE_DBH_ERR();
+       RETURN_FALSE;
 }
 /* }}} */