Skip to content

Commit d88701e

Browse files
author
Jason Greene
committed
Add news entries representing the sockets rework.
#I had a hard time with the style due to the number of entries #Feel free to make any changes
1 parent 87e1cd3 commit d88701e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

NEWS

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
PHP 4 NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? 2002, Version 4.2.0
4+
- Introduced major modifications to the Sockets Extension and its API (Jason):
5+
. Fixed numerous bugs.
6+
. Added automatic host lookup capability to all functions that take addr's
7+
. ex. socket_connect($sock, 'www.yahoo.com', 80);
8+
. Corrected and standardized host lookup errors
9+
. Modified socket_recv() behavior. [$r=socket_recv($sock, $buf, $len, $flags)]
10+
. Added socket_set_block() which changes a socket into blocking IO mode
11+
. Modified socket_last_error() to not clear the last error
12+
. Added socket_clear_error() which clears the last error on a socket
13+
. Removed all code pertaining to fd_sets (socket_fd_*)
14+
. Modfied/Improved socket_select() to take resource arrays instead of fd_sets
15+
ex. <?php $wfds=$rfds=array($sock1, $sock2, $sock3, $sock7);
16+
$r=socket_select($rfds, $wfds, NULL, 1);
17+
print "Ready to read:\n"; var_dump($rfds); ?>
418
- Returned iconv support to FreeBSD (kalowsky)
519
- Added CLI (command line intrerface) sapi based on a cut-down version
620
of the CGI sapi which is more suited for writing shell scripts. Some of

0 commit comments

Comments
 (0)