[nycphp-talk] xdebug / socket_accept()

Yitzchak Schaffer yitzchak.schaffer at
Sat Jan 16 19:21:51 EST 2010

Still working on my xdebug woes; I finished reading the instrux at
but the test script still fails.  The script:

$address = '';
$port = 9000;

$sock = socket_create(AF_INET, SOCK_STREAM, 0);

socket_bind($sock, $address, $port) or die('Unable to bind');

$client = socket_accept($sock);


Each of the three var_dump()'s returns "resource(2, Socket)" but 
socket_accept() errors out with " Warning: socket_accept() 
[function.socket-accept]: unable to accept incoming connection [22]: 
Invalid argument in /www/websites/emeraldview/public/test.php on line 8"

Any ideas?

Many thanks,

Yitzchak Schaffer
Systems Manager
Touro College Libraries
33 West 23rd Street
New York, NY 10010
Tel (212) 463-0400 x5230
Fax (212) 627-3197
Email yitzchak.schaffer at

Access Problems? Contact systems.library at

More information about the talk mailing list