Hi, dmdmitry, don't know, if you're still using the tracker as the last bug report is from 2004, but I'll try here first before using the NuSphere forums.
My webserver is Apache/2.2.0 with a stock OpenSuSE PHP 5.1.2 running on an OpenSuSE Linux 10.1 kernel 2.6.16.27-0.6-smp
I'm trying to remote debug with a win 2000 client.
I tested this with a self compiled DBG 2.15.1 as well as with a premade 2.13.1 extension. I even compiled 2.15.1 --with-dbg-trace and added some trace messages of my own to find out a little more about this problem (as I'm not really good with C, that's all I was able to do about it).
Problem is: DBG always assumes "localhost" as address of the listening client.
When using an URL in the form of http://www/dbgtest/debug.php?DBGSESSID=1@clienthost:10001 I always get an error "failed to establish connection to client host on localhost:10001", although I'm not connecting from localhost but another host on the network. DBG is working as intended, whenever I replace "clienthost" with the IP address or name of the debugging client.
DBG recognises the clienthost option in the request in dbg_cmd create_debugger_socket(...) and enters get_redirected_address(...) as it should.
When DBG tries to get the HTTP_SERVER_VARS with
rv = zend_hash_find(&EG(symbol_table), "HTTP_SERVER_VARS", sizeof("HTTP_SERVER_VARS"), (void **) &httpvars);
if (rv != FAILURE && ((*httpvars)->type==IS_ARRAY)) {
...
it fails and get_redirected_address returns NULL. create_debugger_socket sets DBG(client_address) to "localhost" as a consequence.
Now the strange thing is, when I check the the Apache Environment with phpinfo() there's no problem: REMOTE_ADDR is set to the address of my debugging client.
I don't really know if this problem is DBG or Zend related or if another extension might be the problem (although I tested it without loading other extensions at some time). It might be related to http://support.nusphere.com/viewtopic.php?t=2336
I'll attach a phpinfo() I created from my debugging host connecting to the server. Please contact me if you need more information or if you have any hints regarding a solution to this problem.
phpinfo() of server with pro