]> granicus.if.org Git - php/commitdiff
pcre_quote? No such thing. How did this ever pass?
authorRasmus Lerdorf <rasmus@php.net>
Fri, 2 Aug 2013 20:12:21 +0000 (16:12 -0400)
committerRasmus Lerdorf <rasmus@php.net>
Fri, 2 Aug 2013 20:12:21 +0000 (16:12 -0400)
ext/pdo_mysql/tests/pdo_mysql_phpinfo.phpt

index 9674e85f5e151317a19c145aed63966258814ff8..74b4a7358447b8c02fc3ebd8e123ec59a000c5cd 100644 (file)
@@ -18,7 +18,7 @@ $db = MySQLPDOTest::factory();
        ob_end_clean();
 
        /*      PDO Driver for MySQL, client library version => 6.0.3-alpha     */
-       $reg = 'Client API version.*' . pcre_quote($db->getAttribute(PDO::ATTR_CLIENT_VERSION), '/');
+       $reg = 'Client API version.*' . preg_quote($db->getAttribute(PDO::ATTR_CLIENT_VERSION), '/');
 
        if (!preg_match("/$reg/", $tmp)) {
                printf("[001] Cannot find MySQL PDO driver line in phpinfo() output\n");