summaryrefslogtreecommitdiff
path: root/tests/sql/mysqli_union.phpt
blob: 9af9c611218afc73774eefe7fde3a311ce531e20 (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
--TEST--
Mysqli query with UNION protection
--INI--
extension=mysqli.so
suhosin.sql.bailout_on_error=0
suhosin.sql.comment=0
suhosin.sql.opencomment=0
suhosin.sql.multiselect=0
suhosin.sql.union=1
suhosin.log.stdout=32
--SKIPIF--
<?php
include('skipifmysqli.inc');
include('skipif.inc');
?>
--FILE--
<?php
include('connect.inc');
$mysqli = connect_mysqli_oostyle();
$result = $mysqli->query("SELECT 1 UNION SELECT 2");
flush();
echo "mark.";

?>
--EXPECTREGEX--
ALERT - UNION in SQL query.*mark.