diff options
Diffstat (limited to 'tests/sql/mysqli_user_postfix.phpt')
| -rw-r--r-- | tests/sql/mysqli_user_postfix.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/sql/mysqli_user_postfix.phpt b/tests/sql/mysqli_user_postfix.phpt new file mode 100644 index 0000000..11e3fe6 --- /dev/null +++ b/tests/sql/mysqli_user_postfix.phpt | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | --TEST-- | ||
| 2 | Mysqli connect with user_postfix | ||
| 3 | --INI-- | ||
| 4 | extension=mysqli.so | ||
| 5 | suhosin.sql.user_postfix=_post | ||
| 6 | suhosin.log.stdout=32 | ||
| 7 | --SKIPIF-- | ||
| 8 | <?php | ||
| 9 | include('skipifmysqli.inc'); | ||
| 10 | include('skipif.inc'); | ||
| 11 | ?> | ||
| 12 | --FILE-- | ||
| 13 | <?php | ||
| 14 | include('connect.inc'); | ||
| 15 | $mysqli = new mysqli($host, 'invalid_username', $passwd, $db, $port, $socket); | ||
| 16 | ?> | ||
| 17 | --EXPECTREGEX-- | ||
| 18 | .*Access denied for user 'invalid_username_post'.* \ No newline at end of file | ||
