#27211 [Com]: stream_socket_accept() returns Invalid argument

From: Date: Fri, 30 Apr 2004 11:53:40 +0000
Subject: #27211 [Com]: stream_socket_accept() returns Invalid argument
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969360353@lists.php.net to get a copy of this message
ID: 27211 Comment by: i_kobayashi at rnk dot co dot jp Reported By: glox at glox dot be Status: Assigned Bug Type: Documentation problem Operating System: * PHP Version: 5CVS-2004-02-12 Assigned To: nlopess New Comment: In communication by udp, it is not accept() but recvfrom(). However, since there is no means to acquire an address and a port from stream_socket_recvfrom(), a reply cannot be returned. Are there any of other means? Previous Comments: ------------------------------------------------------------------------ [2004-03-15 10:27:04] nlopess@php.net Shame on me, but I've lost the e-mails I've exchanged with Wez (my ISP fault). I don't remeber very well how to reproduce the crash :( Wez sent me some examples to fix the ones that are currently in the docs, but I've lost them... :-( ------------------------------------------------------------------------ [2004-03-15 10:20:55] sniper@php.net Assigning to Nuno. (Please report the possible crash in different report if you haven't done it already) ------------------------------------------------------------------------ [2004-02-16 05:16:36] wez@php.net *_accept() doesn't make sense for UDP (which is a connection*less* protocol). I had a conversation about this example with Nuno this weekend; he will fix the docs. He also found a segfault, but I don't have time to fix it right now. ------------------------------------------------------------------------ [2004-02-12 14:27:50] glox at glox dot be Well the server script is copy pasted from the manual page. So, or the example is wrong, or there is a bug with those functions. ------------------------------------------------------------------------ [2004-02-11 15:43:55] sniper@php.net I'm not sure if it's actually a bug..(just read the manual page for these funcs, never used them myself before :) stream_socket_accept() also crashes, if you happen to use the 3rd parameter too.. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/27211 -- Edit this bug report at http://bugs.php.net/?id=27211&edit=1

« previous php.doc (#969360353) next »