From 36dbfacbe64697d959f524e537b15b73c090d898 Mon Sep 17 00:00:00 2001 From: Stefan Esser Date: Sun, 21 Feb 2010 11:44:54 +0100 Subject: Inital commit --- tests/executor/preg_replace_error.phpt | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/executor/preg_replace_error.phpt (limited to 'tests/executor/preg_replace_error.phpt') diff --git a/tests/executor/preg_replace_error.phpt b/tests/executor/preg_replace_error.phpt new file mode 100644 index 0000000..39e0aee --- /dev/null +++ b/tests/executor/preg_replace_error.phpt @@ -0,0 +1,32 @@ +--TEST-- +Testing protection against "\0" in preg_replace() first parameter (INCL. SUHOSIN ERROR MESSAGES) +--SKIPIF-- + +--INI-- +suhosin.log.sapi=64 +--FILE-- + +--EXPECTF-- +string(49) "One little boy with 2 dogs, 3 cats and four birds" +ALERT - string termination attack on first preg_replace parameter detected (attacker 'REMOTE_ADDR not set', file '%s', line 14) +bool(false) +string(39) "The three cats play with the four birds" +ALERT - string termination attack on first preg_replace parameter detected (attacker 'REMOTE_ADDR not set', file '%s', line 16) +bool(false) -- cgit v1.3