Req #55841 [NEW]: stream_socket_accept() warnings
| From: | aco dot best at gmail dot com | Date: | Tue, 04 Oct 2011 09:33:10 +0000 |
| Subject: | Req #55841 [NEW]: stream_socket_accept() warnings | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-164072@lists.php.net to get a copy of this message | ||
From:
Operating system: *
PHP version: Irrelevant
Package: Streams related
Bug Type: Feature/Change Request
Bug description:stream_socket_accept() warnings
Description:
------------
Hello, i have websocket server written using php cli and libevent. It
has master - childs(forks) architecture. Ðll forks listening to single
port, and trying to accept incomming connection by stream_socket_accept().
But only one fork will accept single connection others will get a
warning. To suppress this warning iam using @. But unfortunately
warning still goes into set_error_handler callback. Such kind of
warning, cause performance penalty in this case.
I can see a few way how it can be solved inside php:
1. by removing this warning
2. by adding forth argument to the function call, to place error inside it
3. by creating function like stream_last_error
4. or any other appropriate way
It would be nice, if it will be solved,
Thank you.
Best, regards
Ivan Shalganov
--
Edit bug report at https://bugs.php.net/bug.php?id=55841&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55841&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55841&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55841&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55841&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55841&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55841&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55841&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55841&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55841&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55841&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55841&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55841&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55841&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55841&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55841&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55841&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55841&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55841&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55841&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55841&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55841&r=mysqlcfg