From: Georg Richter Date: Tue, 9 May 2006 13:53:39 +0000 (+0000) Subject: merge from 5.2 X-Git-Tag: BEFORE_NEW_OUTPUT_API~262 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4508ae73f74c557bd739c9cc95d677053dac1326;p=php merge from 5.2 --- diff --git a/ext/mysqli/tests/bug34785.phpt b/ext/mysqli/tests/bug34785.phpt new file mode 100644 index 0000000000..a2b9f22881 --- /dev/null +++ b/ext/mysqli/tests/bug34785.phpt @@ -0,0 +1,47 @@ +--TEST-- +Bug #32405 +--SKIPIF-- + +--FILE-- +execute(); + $stmt->bind_result($var); + $stmt->fetch(); + + $stmt->close(); + var_dump($var); + + mysqli_real_query($link, "SELECT 'bar' FROM DUAL"); + $result = new my_result($link, MYSQLI_STORE_RESULT); + $row = $result->fetch_row(); + $result->close(); + + var_dump($row[0]); + + mysqli_close($link); +?> +--EXPECT-- +string(3) "foo" +string(3) "bar" diff --git a/ext/mysqli/tests/bug36745.phpt b/ext/mysqli/tests/bug36745.phpt new file mode 100644 index 0000000000..7bbfe8180c --- /dev/null +++ b/ext/mysqli/tests/bug36745.phpt @@ -0,0 +1,23 @@ +--TEST-- +bug #36745 : LOAD DATA LOCAL INFILE doesn't return correct error message +--SKIPIF-- + +--FILE-- +query("DROP TABLE IF EXISTS litest"); + $mysql->query("CREATE TABLE litest (a VARCHAR(20))"); + + $mysql->query("LOAD DATA LOCAL INFILE 'filenotfound' INTO TABLE litest"); + var_dump($mysql->error); + + $mysql->close(); + printf("Done"); +?> +--EXPECT-- +string(31) "Can't find file 'filenotfound'." +Done diff --git a/ext/mysqli/tests/bug36802.phpt b/ext/mysqli/tests/bug36802.phpt new file mode 100644 index 0000000000..69ef56bba0 --- /dev/null +++ b/ext/mysqli/tests/bug36802.phpt @@ -0,0 +1,42 @@ +--TEST-- +bug #36802 : crashes with mysql_init +--SKIPIF-- + +--FILE-- +set_charset('utf8'); + $x[1] = @$mysql->query("SELECT 'foo' FROM DUAL"); + + /* following operations should work */ + $x[2] = ($mysql->client_version > 0); + $x[3] = $mysql->errno; + $mysql->close(); + + + + var_dump($x); +?> +--EXPECT-- +array(4) { + [0]=> + NULL + [1]=> + NULL + [2]=> + bool(true) + [3]=> + int(0) +}