From 6b85eb58b27a60cfc4d78ad0a85afeda373132c5 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sun, 5 Jun 2011 21:57:01 +0000 Subject: [PATCH] Fixed bug #51997 (SEEK_CUR with 0 value, returns a warning). --- ext/bz2/tests/bug51997.phpt | 24 ++++++++++++++++++++++++ main/streams/streams.c | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 ext/bz2/tests/bug51997.phpt diff --git a/ext/bz2/tests/bug51997.phpt b/ext/bz2/tests/bug51997.phpt new file mode 100644 index 0000000000..fea5398947 --- /dev/null +++ b/ext/bz2/tests/bug51997.phpt @@ -0,0 +1,24 @@ +--TEST-- +Bug #51997 (SEEK_CUR with 0 value, returns a warning) +--SKIPIF-- + +--FILE-- + 0) { + if (whence == SEEK_CUR && offset >= 0) { char tmp[1024]; size_t didread; while(offset > 0) { -- 2.50.1