summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/072.phpt
blob: 8c85175ea2a21d08beacf460dfbb66fcc803d789 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--TEST--
mysqli warning_count, get_warnings
--SKIPIF--
<?php require_once('skipif.inc'); ?>
<?php die('skip mysqli_warning class not functional yet?'); ?>
--FILE--
<?php
	include "connect.inc";

	$mysql = new mysqli($host, $user, $passwd, "test");

	$mysql->query("DROP TABLE IF EXISTS not_exists");

	var_dump($mysql->warning_count);

	$w = $mysql->get_warnings();

	var_dump($w->errno);
	var_dump($w->message);
#	var_dump($w->sqlstate);

	$mysql->close();
?>
--EXPECT--
1
1051
Unknown table 'not_exists'