|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-02-13 19:44 UTC] sniper@php.net
[2003-02-20 07:59 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 08:00:01 2025 UTC |
In php4.3.0RC2: When a new socket is created, the current error code for that socket is not initialized to 0. I recommend that it should be. The following code outputs: error: 1313166380: Unknown error: 1313166380 The value changes from time to time. <?php if ($listener_sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) { if ($error_code = socket_last_error($listener_sock)) { echo "error: $error_code: " . socket_strerror ($error_code)."\n"; } } ?>