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?