php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17960 socket_last_error parameter
Submitted: 2002-06-25 01:17 UTC Modified: 2002-06-25 02:27 UTC
From: darvin dot andrioli at caricese dot it Assigned:
Status: Closed Package: Sockets related
PHP Version: 4.2.1 OS: Window 2000 pro
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: darvin dot andrioli at caricese dot it
New email:
PHP Version: OS:

 

 [2002-06-25 01:17 UTC] darvin dot andrioli at caricese dot it
The manual report that socket_last_error has only one optional parameter, but when I run it without parameter I get an error about the missing parameter.

Example:

echo socket_last_error();

write:
PHP Warning: socket_last_error() expects exactly 1 parameter, 0 given in f:\php\php412\test\client.php on line 14


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-25 02:26 UTC] mfischer@php.net
Actually, the documentation refers to the current implementation of the developer snapshot from http://snaps.php.net/php4-latest.tar.gz

Since the extension is marked explicitely as EXPERIMENTAL I don't see a reason to put in documentations for every function whose behaviour changed over the last PHP releases.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 17:01:33 2024 UTC