From ff0aa24054c166de64993ef608ccbb8486c64ba5 Mon Sep 17 00:00:00 2001 From: Anatoliy Belsky Date: Mon, 3 Sep 2012 13:37:34 +0200 Subject: forked two tests for windows * bug55544.phpt - VT vs. EXT at the start of the data block, but the data can still be decoded correctly * bug_52944.phpt works with the corrupted data and has some different out Most likely the ASM optimization under windows is responsible for this behaviour. --- ext/zlib/tests/bug55544-win.phpt | Bin 0 -> 427 bytes ext/zlib/tests/bug55544.phpt | Bin 361 -> 430 bytes ext/zlib/tests/bug_52944-win.phpt | 161 ++++++++++++++++++++++++++++++++++++++ ext/zlib/tests/bug_52944.phpt | 5 +- 4 files changed, 163 insertions(+), 3 deletions(-) create mode 100644 ext/zlib/tests/bug55544-win.phpt create mode 100644 ext/zlib/tests/bug_52944-win.phpt (limited to 'ext/zlib') diff --git a/ext/zlib/tests/bug55544-win.phpt b/ext/zlib/tests/bug55544-win.phpt new file mode 100644 index 0000000000..03fd6b1c90 Binary files /dev/null and b/ext/zlib/tests/bug55544-win.phpt differ diff --git a/ext/zlib/tests/bug55544.phpt b/ext/zlib/tests/bug55544.phpt index ca4214a46f..a0d22f4fce 100644 Binary files a/ext/zlib/tests/bug55544.phpt and b/ext/zlib/tests/bug55544.phpt differ diff --git a/ext/zlib/tests/bug_52944-win.phpt b/ext/zlib/tests/bug_52944-win.phpt new file mode 100644 index 0000000000..e3919951bc --- /dev/null +++ b/ext/zlib/tests/bug_52944-win.phpt @@ -0,0 +1,161 @@ +--TEST-- +Bug #52944 (segfault with zlib filter and corrupted data) +--SKIPIF-- + + = 1.2.7 on windows'); +if (substr(PHP_OS, 0, 3) == 'WIN') { + die("skip not for windows"); } --INI-- allow_url_fopen=1 -- cgit v1.2.1