php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #33161 socket_create_pair : example problem
Submitted: 2005-05-27 09:52 UTC Modified: 2005-05-27 11:19 UTC
From: admin at ff dot st Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrevelant
Private report: No CVE-ID: None
 [2005-05-27 09:52 UTC] 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/function.socket-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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-27 11:19 UTC] vrana@php.net
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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Oct 08 04:00:01 2025 UTC