mirror of
https://github.com/php/php-src.git
synced 2024-12-18 22:41:20 +08:00
Fix failures when the server is running with ANSI_QUOTES
This commit is contained in:
parent
006646df9c
commit
2caa76ae62
@ -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!
|
||||
|
@ -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!
|
||||
|
@ -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!
|
||||
|
@ -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!
|
||||
|
@ -44,7 +44,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!";
|
||||
@ -52,4 +52,4 @@ mysqli_close($link);
|
||||
--EXPECTF--
|
||||
bool(true)
|
||||
bool(true)
|
||||
done!
|
||||
done!
|
||||
|
@ -44,7 +44,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!";
|
||||
@ -52,4 +52,4 @@ mysqli_close($link);
|
||||
--EXPECTF--
|
||||
bool(true)
|
||||
bool(true)
|
||||
done!
|
||||
done!
|
||||
|
Loading…
Reference in New Issue
Block a user