]> granicus.if.org Git - php/commitdiff
fix for 5_0. Statement constructor doesn't exist in 5_0
authorGeorg Richter <georg@php.net>
Sat, 7 May 2005 07:55:01 +0000 (07:55 +0000)
committerGeorg Richter <georg@php.net>
Sat, 7 May 2005 07:55:01 +0000 (07:55 +0000)
ext/mysqli/tests/064.phpt

index e6df1e450553b9edcc0dd76baea5cde9186ded98..1d6358e532eda08b22dcfef30fa4ff4c2b03f10d 100644 (file)
@@ -8,7 +8,7 @@ NULL binding
 
        $mysql = new mysqli($host, $user, $passwd);
 
-       $stmt = new mysqli_stmt($mysql, "SELECT NULL FROM DUAL");
+       $stmt = $mysql->prepare("SELECT NULL FROM DUAL");
        $stmt->execute();
        $stmt->bind_result($foo);
        $stmt->fetch();