From: Nuno Lopes Date: Fri, 8 Dec 2006 12:13:23 +0000 (+0000) Subject: add tests for old bug reports X-Git-Tag: php-5.2.1RC1~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=802e12674eccee28254f1df3fd8d9fdc0f0a495b;p=php add tests for old bug reports --- diff --git a/ext/pcre/tests/bug21758.phpt b/ext/pcre/tests/bug21758.phpt new file mode 100644 index 0000000000..2479087a62 --- /dev/null +++ b/ext/pcre/tests/bug21758.phpt @@ -0,0 +1,26 @@ +--TEST-- +Bug #27011: preg_replace_callback() not working with class methods +--FILE-- + +--EXPECT-- +string(25) "preg_replace() is working" diff --git a/ext/pcre/tests/bug27011.phpt b/ext/pcre/tests/bug27011.phpt new file mode 100644 index 0000000000..9a2434f064 --- /dev/null +++ b/ext/pcre/tests/bug27011.phpt @@ -0,0 +1,13 @@ +--TEST-- +Bug #27011: segfault in preg_match_all() +--FILE-- + +--EXPECT-- +int(0) +array(0) { +} diff --git a/ext/pcre/tests/bug38600.phpt b/ext/pcre/tests/bug38600.phpt new file mode 100644 index 0000000000..8e1f78c0e3 --- /dev/null +++ b/ext/pcre/tests/bug38600.phpt @@ -0,0 +1,14 @@ +--TEST-- +Bug #38600: infinite loop in pcre with extended class +--FILE-- + +--EXPECT-- +int(0) +array(0) { +}