From: Moriyoshi Koizumi Date: Thu, 23 Jan 2003 18:22:55 +0000 (+0000) Subject: Added test case for bug #21732 X-Git-Tag: PHP_5_0_dev_before_13561_fix~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24ae3090377d216094429750bc0b76f546f44318;p=php Added test case for bug #21732 --- diff --git a/ext/pcre/tests/bug21732.phpt b/ext/pcre/tests/bug21732.phpt new file mode 100644 index 0000000000..5a5da59e9e --- /dev/null +++ b/ext/pcre/tests/bug21732.phpt @@ -0,0 +1,33 @@ +--TEST-- +Bug #21732 (preg_replace() segfaults with invalid parameters) +--SKIPIF-- + +--INI-- +error_reporting=0 +--FILE-- + +--EXPECT-- +bool(false) +array(4) { + [0]=> + string(5) "abcde" + [1]=> + string(2) "ab" + [2]=> + string(2) "cd" + [3]=> + string(1) "e" +} +string(4) "yes!"