2
Bug #20134 (UDP reads from invalid ports)
6
$fp = fsockopen("udp://localhost", 65534, $errno, $errstr);
8
/* UDP will never cause a connection error, as it is
9
* a connection-LESS protocol */
10
echo "ERROR: $errno - $errstr<br>\n";
13
/* Likewise, writes will always appear to succeed */
14
$x = fwrite($fp,"\n");
16
/* But reads should always fail */
17
$content = fread($fp, 40);