Re: Bug #17022: enhance socket_strerror(errno) to make errno optional
| From: | Markus Fischer | Date: | Sun, 05 May 2002 21:33:28 +0000 |
| Subject: | Re: Bug #17022: enhance socket_strerror(errno) to make errno optional | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-83730@lists.php.net to get a copy of this message | ||
Hi,
technically this isn't a problem at all. I'm just pondering
.. socket_strerror() is nothing better then a call to
strerror().
If we one day decide to introduce a generic strerror()
function to PHP it can't automagically fetch the last socket
error of course ... that's the only fear/ojections I have.
- Markus
On Sun, May 05, 2002 at 09:23:23PM -0000, trobinson@gksystems.com wrote :
> From: trobinson@gksystems.com
> Operating system: any
> PHP version: 4.2.0
> PHP Bug Type: Sockets related
> Bug description: enhance socket_strerror(errno) to make errno optional
>
> socket_last_error(socket) was recently enhanced to make the socket
> optional.
>
> How about doing the same for the error number argument to
> socket_strerror() ?
>
> So instead of writing:
> die (socket_strerror(socket_last_error())
> I can just write:
> die (socket_strerror())
>
> ...Tom Robinson
>
>
> --
> Edit bug report at http://bugs.php.net/?id=17022&edit=1
> --
> Fixed in CVS:
> http://bugs.php.net/fix.php?id=17022&r=fixedcvs
> Fixed in release:
> http://bugs.php.net/fix.php?id=17022&r=alreadyfixed
> Need backtrace:
> http://bugs.php.net/fix.php?id=17022&r=needtrace
> Try newer version:
> http://bugs.php.net/fix.php?id=17022&r=oldversion
> Not developer issue:
> http://bugs.php.net/fix.php?id=17022&r=support
> Expected behavior:
> http://bugs.php.net/fix.php?id=17022&r=notwrong
> Not enough info:
> http://bugs.php.net/fix.php?id=17022&r=notenoughinfo
> Submitted twice:
> http://bugs.php.net/fix.php?id=17022&r=submittedtwice
> register_globals:
> http://bugs.php.net/fix.php?id=17022&r=globals
--
Please always Cc to me when replying to me on the lists.
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
"I'm not stupid, you know? :)" - Jani Taskinen