connection to XDEBUG hangs

Problems with the Windows version of XAMPP, questions, comments, and anything related.

connection to XDEBUG hangs

Postby developer » 28. August 2009 22:52

I'm running Vista with the latest XAMPP 2.5.8 (PHP version 5.3.0). I uncommented...
zend_extension = "C:\XAMPP\php\ext\php_xdebug.dll"

When browsing http://localhost, phpinfo() shows xdebug using port 9000 which is the default. I try the following php to test my connection to XDEBUG and it hangs when trying "socket_accept", and just sits there displaying "Transferring data from localhost..." on the browser status bar.

Here's the test code...

Code: Select all
<?php
$address = '127.0.0.1';
$port = 9000;
echo "try socket_create... ";
flush();
$sock = socket_create(AF_INET, SOCK_STREAM, 0);
echo "try socket_bind... ";
flush();
socket_bind($sock, $address, $port) or die('Unable to bind');
echo "try socket_listen... ";
flush();
socket_listen($sock);
echo "try socket_accept... ";
flush();
$client = socket_accept($sock);
echo "connection established: $client";
flush();
socket_close($client);
socket_close($sock);
?>


Any ideas?
developer
 
Posts: 1
Joined: 28. August 2009 22:00

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 124 guests