|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32184 I think it's the socket daemon script 's bug
Submitted: 2005-03-04 09:02 UTC Modified: 2005-03-12 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: huoqi29 at 163 dot com Assigned:
Status: No Feedback Package: Sockets related
PHP Version: 5.0.3 OS: Linux DevelopWeb 2.6.8-24-smp #1
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2005-03-04 09:02 UTC] huoqi29 at 163 dot com
   If you uncomment the '//echo "Bug";' and when you run this script ,you will get the expect result if you don't logout, and when you login and "ps -aux " you can find it.
   But where you "telnet 99999" you can't connect it .

Reproduce code:
if(pcntl_fork()){exit;} posix_setsid(); chdir("/"); umask(0);
socket_listen($sock); $R=array($sock);
while(1) { $T=$R; if($C=socket_select($T,$W=NULL,$E=NULL,0,0)) {
                foreach($T as $sock2) {
                        if($sock2==$sock) {
                        else{ //echo "Bug";
                        if($B==0 || chop($Buf)=="quit" || chop($Buf)=="exit") {
                        }else socket_send($sock2,"Hello".$Buf,1024,0);
                        } } } } ?>


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-04 09:09 UTC] huoqi29 at 163 dot com
telnet: connect to address Connection refused
 [2005-03-04 11:32 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

Can't reproduce.
Please explain more clearly - what do you expect and what do you get.
 [2005-03-12 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 13 04:01:31 2024 UTC