From 658b22ad6e9f9e8d706e7c962b86081cfacadb8e Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Sat, 22 Apr 2006 23:46:42 +0000 Subject: [PATCH] add test for #37158 --- ext/standard/tests/file/bug37158.phpt | 43 +++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 ext/standard/tests/file/bug37158.phpt diff --git a/ext/standard/tests/file/bug37158.phpt b/ext/standard/tests/file/bug37158.phpt new file mode 100644 index 0000000000..d071569e20 --- /dev/null +++ b/ext/standard/tests/file/bug37158.phpt @@ -0,0 +1,43 @@ +--TEST-- +Bug #37158 (if userspace stream is present, fread() reads in 8192 max, otherwise it works) +--FILE-- + +--EXPECT-- +string(26) "size of contents 1 = 20000" +string(26) "size of contents 2 = 40960" +Done +--UEXPECT-- +unicode(26) "size of contents 1 = 20000" +unicode(26) "size of contents 2 = 40960" +Done -- 2.50.1