For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > May 2005 > #33161 [Opn->Csd]: socket_create_pair : example problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #33161 [Opn->Csd]: socket_create_pair : example problem
vrana@php.net

2005-05-27, 8:55 am

ID: 33161
Updated by: vrana@php.net
Reported By: admin at ff dot st
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Irrevelant
PHP Version: Irrelevant
New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.


Previous Comments:
------------------------------------------------------------------------

[2005-05-27 09:52:06] admin at ff dot st

Description:
------------
On the socket_create_pair page (English & French page, probably also on
other languages), the example 1 seems wrong:

http://fr2.php.net/manual/en/functi...create-pair.php

This part:

$uniqid = uniqid('');
if (file_exists("/tmp/$uniqid.sock")) {
die('Temporary socket already exists.');
}

Should probably not be there: $uniqid is not used, and the socket_pair
is not file-based.



------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=33161&edit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com