summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/bug36802.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysqli/tests/bug36802.phpt')
-rw-r--r--ext/mysqli/tests/bug36802.phpt46
1 files changed, 0 insertions, 46 deletions
diff --git a/ext/mysqli/tests/bug36802.phpt b/ext/mysqli/tests/bug36802.phpt
deleted file mode 100644
index 99f8633301..0000000000
--- a/ext/mysqli/tests/bug36802.phpt
+++ /dev/null
@@ -1,46 +0,0 @@
---TEST--
-bug #36802 : crashes with mysql_init
---SKIPIF--
-<?php require_once('skipif.inc'); ?>
---FILE--
-<?php
-
- class my_mysqli extends mysqli {
- function __construct()
- {
- }
- }
-
- include "connect.inc";
-
-
- $mysql = mysqli_init();
-
- /* following operations should not work */
- if (method_exists($mysql, 'set_charset')) {
- $x[0] = @$mysql->set_charset('utf8');
- } else {
- $x[0] = NULL;
- }
- $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)
-}