From f921ea9f7d642d78bb7236fa993a6048a90da4a2 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Thu, 14 Nov 2002 14:56:35 +0000 Subject: [PATCH] Add a test case for this "bug" # 20134. I'm not sure that this test is actually useful, so I'm not adding it to the branch. --- ext/standard/tests/network/bug20134.phpt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ext/standard/tests/network/bug20134.phpt diff --git a/ext/standard/tests/network/bug20134.phpt b/ext/standard/tests/network/bug20134.phpt new file mode 100644 index 0000000000..13b5de7227 --- /dev/null +++ b/ext/standard/tests/network/bug20134.phpt @@ -0,0 +1,24 @@ +--TEST-- +Bug #20134 UDP reads from invalid ports +--FILE-- +\n"; +} +else { + /* Likewise, writes will always appear to succeed */ + $x = fwrite($fp,"\n"); + var_dump($x); + /* But reads should always fail */ + $content = fread($fp, 40); + var_dump($content); + fclose($fp); +} +?> +--EXPECT-- +int(1) +string(0) "" -- 2.50.1