MFH:Fix again the tests for ANSI_QUOTES

This commit is contained in:
Andrey Hristov 2009-05-28 18:00:28 +00:00
parent 804f6138a6
commit cabce152f9
6 changed files with 11 additions and 11 deletions

View File

@ -44,7 +44,7 @@ mysqli_close($link);
if ("找到以下內容\\0找到以下內容" !== ($tmp = mysqli_real_escape_string($link, "找到以下內容" . chr(0) . "找到以下內容")))
printf("[009] Expecting %s, got %s\n", "找到以下內容\\0找到以下內容", $tmp);
var_dump(mysqli_query($link, 'INSERT INTO test(id, label) VALUES (100, "§ä")'));
var_dump(mysqli_query($link, "INSERT INTO test(id, label) VALUES (100, '§ä')"));
mysqli_close($link);
print "done!";
@ -52,4 +52,4 @@ mysqli_close($link);
--EXPECTF--
bool(true)
bool(true)
done!
done!

View File

@ -43,7 +43,7 @@ mysqli_close($link);
if ("この組み合わせでは\\0この組み合わせでは" !== ($tmp = mysqli_real_escape_string($link, "この組み合わせでは" . chr(0) . "この組み合わせでは")))
printf("[009] Expecting %s, got %s\n", "この組み合わせでは\\0この組み合わせでは", $tmp);
var_dump(mysqli_query($link, 'INSERT INTO test(id, label) VALUES (100, "こ")'));
var_dump(mysqli_query($link, "INSERT INTO test(id, label) VALUES (100, 'こ')"));
mysqli_close($link);
print "done!";
@ -51,4 +51,4 @@ mysqli_close($link);
--EXPECTF--
bool(true)
bool(true)
done!
done!

View File

@ -51,4 +51,4 @@ mysqli_close($link);
--EXPECTF--
bool(true)
bool(true)
done!
done!

View File

@ -44,7 +44,7 @@ mysqli_close($link);
if ("Ê×ÏÈ\\0Ê×ÏÈ" !== ($tmp = mysqli_real_escape_string($link, "Ê×ÏÈ" . chr(0) . "Ê×ÏÈ")))
printf("[009] Expecting %s, got %s\n", "Ê×ÏÈ\\0Ê×ÏÈ", $tmp);
var_dump(mysqli_query($link, 'INSERT INTO test(id, label) VALUES (100, "Ê×")'));
var_dump(mysqli_query($link, "INSERT INTO test(id, label) VALUES (100, 'Ê×')"));
mysqli_close($link);
print "done!";
@ -52,4 +52,4 @@ mysqli_close($link);
--EXPECTF--
bool(true)
bool(true)
done!
done!

View File

@ -46,7 +46,7 @@ mysqli_close($link);
if ("<22>İ汾\\0<>İ汾" !== ($tmp = mysqli_real_escape_string($link, "<22>İ汾" . chr(0) . "<22>İ汾")))
printf("[009] Expecting %s, got %s\n", "<22>İ汾\\0<>İ汾", $tmp);
var_dump(mysqli_query($link, 'INSERT INTO test(id, label) VALUES (100, "<22><>")'));
var_dump(mysqli_query($link, "INSERT INTO test(id, label) VALUES (100, '<27><>')"));
mysqli_close($link);
print "done!";
@ -54,4 +54,4 @@ mysqli_close($link);
--EXPECTF--
bool(true)
bool(true)
done!
done!

View File

@ -45,7 +45,7 @@ mysqli_close($link);
if ("?p??\\0?p??" !== ($tmp = mysqli_real_escape_string($link, "?p??" . chr(0) . "?p??")))
printf("[009] Expecting %s, got %s\n", "?p??\\0?p??", $tmp);
var_dump(mysqli_query($link, 'INSERT INTO test(id, label) VALUES (100, "?p")'));
var_dump(mysqli_query($link, "INSERT INTO test(id, label) VALUES (100, '?p')"));
mysqli_close($link);
print "done!";
@ -53,4 +53,4 @@ mysqli_close($link);
--EXPECTF--
bool(true)
bool(true)
done!
done!