note 124502 added to function.connection-status

From: Date: Wed, 11 Dec 2019 18:07:56 +0000
Subject: note 124502 added to function.connection-status
Groups: php.notes 
Request: Send a blank email to php-notes+get-213509@lists.php.net to get a copy of this message
As mentioned, this function returns a status bitfield to which there's a set of constants available. I don't know why those constants aren't actually listed. Although they're easy to guess, I think it's still worth listing them, it is documentation after all. This function has the ability to return integers 0 through 3 so there are 4 possible states. The constants are as follows: CONNECTION_NORMAL = 0 CONNECTION_ABORTED = 1 CONNECTION_TIMEOUT = 2 As a 4th state is possible and being a bitfield, this gives rise to CONNECTION_ABORTED|CONNECTION_TIMEOUT (or integer 3) can be used to check for aborted+timeout states. ---- Server IP: 208.43.231.9 Probable Submitter: 185.85.3.195 (proxied: 81.101.131.254) ---- Manual Page -- http://php.net/manual/en/function.connection-status.php Edit -- https://master.php.net/note/edit/124502 Del: integrated -- https://master.php.net/note/delete/124502/integrated Del: useless -- https://master.php.net/note/delete/124502/useless Del: bad code -- https://master.php.net/note/delete/124502/bad+code Del: spam -- https://master.php.net/note/delete/124502/spam Del: non-english -- https://master.php.net/note/delete/124502/non-english Del: in docs -- https://master.php.net/note/delete/124502/in+docs Del: other reasons-- https://master.php.net/note/delete/124502 Reject -- https://master.php.net/note/reject/124502 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#213509) next »