summaryrefslogtreecommitdiff
path: root/tests/sql/mysqli_user_match_error.phpt
diff options
context:
space:
mode:
authorBen Fuhrmannek2014-07-09 12:47:03 +0200
committerBen Fuhrmannek2014-07-09 12:47:03 +0200
commit63de1053dfda1faca22a84afb82d6b1315b8db6e (patch)
treebd8cb94aad6977de6410b4dbf251672ac016532c /tests/sql/mysqli_user_match_error.phpt
parent93721fdd94f90d48b290749398a26cef277ad129 (diff)
added sql.user_match + username character check
Diffstat (limited to 'tests/sql/mysqli_user_match_error.phpt')
-rw-r--r--tests/sql/mysqli_user_match_error.phpt18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/sql/mysqli_user_match_error.phpt b/tests/sql/mysqli_user_match_error.phpt
new file mode 100644
index 0000000..69db081
--- /dev/null
+++ b/tests/sql/mysqli_user_match_error.phpt
@@ -0,0 +1,18 @@
1--TEST--
2Mysqli connect with user_match not matching username
3--INI--
4extension=mysqli.so
5suhosin.sql.user_match=complicated_userprefix*
6suhosin.log.stdout=32
7--SKIPIF--
8<?php
9include('skipifmysqli.inc');
10include('skipif.inc');
11?>
12--FILE--
13<?php
14include('connect.inc');
15$mysqli = new mysqli($host, 'invalid_username', $passwd, $db, $port, $socket);
16?>
17--EXPECTREGEX--
18ALERT - SQL username .* does not match.* \ No newline at end of file