Welcome Guest, Not a member yet? Register   Sign In
CI + Eclipse + Xdebug
#1

[eluser]Unknown[/eluser]
Hi,

while debugging a CI application using Eclipse and Xdebug, I encountered the error "The URI you submitted has disallowed characters.", which is because of the extra query string that is used for Xdebug.

this is a little workaround (version 1.7.1), in file 'system/libraries/URI.php', line 83:

original:

Code:
// No PATH_INFO?... What about QUERY_STRING?
            $path =  (isset($_SERVER['QUERY_STRING'])) ? $_SERVER['QUERY_STRING'] : @getenv('QUERY_STRING');
            if (trim($path, '/') != '')
            {
                $this->uri_string = $path;
                return;
            }

modified:

Code:
// No PATH_INFO?... What about QUERY_STRING?
            $path =  (isset($_SERVER['QUERY_STRING'])) ? $_SERVER['QUERY_STRING'] : @getenv('QUERY_STRING');
            if (trim($path, '/') != '')
            {
                if(substr($path, 0, 14) != 'XDEBUG_SESSION')
                {
                    $this->uri_string = $path;
                    return;
                }
            }


(the other workarounds I found, worked only with 1 query parameter, Xdebug
is using 2 parameters)


maybe this is useful for somebody, debugging works really good with Eclipse/Xdebug...

regards,
Patrick




Theme © iAndrew 2016 - Forum software by © MyBB