#26486 [NEW]: socket_create Constats missing
| From: | nunoplopes at sapo dot pt | Date: | Mon, 01 Dec 2003 13:02:34 +0000 |
| Subject: | #26486 [NEW]: socket_create Constats missing | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969357138@lists.php.net to get a copy of this message | ||
From: nunoplopes at sapo dot pt
Operating system: n/a
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: socket_create Constats missing
Description:
------------
In socket_create manual entry and in table 3 (common protocls) you only
say the name of the protocols and you missed the constants.
Instead of tcp, you should write SOL_TCP.
In sockets' main page, you should alter the following line:
$socket = socket_create (AF_INET, SOCK_STREAM, 0);
to
$socket = socket_create (AF_INET, SOCK_STREAM, SOL_TCP);
--
Edit bug report at http://bugs.php.net/?id=26486&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26486&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26486&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26486&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26486&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26486&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26486&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26486&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26486&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26486&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26486&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26486&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26486&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26486&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26486&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26486&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26486&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26486&r=float