<?php return array(
	array(
		'message' => 'Sub-directory, no rewrite, called directory',
		'input' => '/',
		'prefix' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
		'basePath' => '/~dzuelke/_projects/agavi/trunk/samples/pub/',
		'baseHref' => 'http://localhost:81/~dzuelke/_projects/agavi/trunk/samples/pub/',
		'_ENV' => array (
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.11',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '50574',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_INFO' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/',
			'QUERY_STRING' => '',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_ACCEPT' => '*/*',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=8c71c4284bc299552c617e8fe12ed99e',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_PATH_INFO' => '',
			'ORIG_SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_TRANSLATED' => '',
			'MANPATH' => '/sw/share/man:/usr/share/man:/usr/local/php5/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man',
			'TERM_PROGRAM' => 'Apple_Terminal',
			'XDG_DATA_HOME' => '/Users/dzuelke/.local/share',
			'TERM' => 'xterm-color',
			'SHELL' => '/bin/bash',
			'PERL5LIB' => '/sw/lib/perl5:/sw/lib/perl5/darwin',
			'TERM_PROGRAM_VERSION' => '133',
			'QTDIR' => '/sw',
			'SGML_CATALOG_FILES' => '/sw/etc/sgml/catalog',
			'SVN_EDITOR' => 'joe',
			'USER' => 'root',
			'SSH_AUTH_SOCK' => '/tmp/501/SSHKeychain.socket',
			'KDEDIR' => '/sw',
			'__CF_USER_TEXT_ENCODING' => '0x0:0:3',
			'XDG_CONFIG_DIRS' => '/sw/etc/xdg',
			'FLTK_DOCDIR' => '/sw/share/doc/fltk-x11/html',
			'PATH' => '/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/dzuelke/bin:/usr/local/php5/bin:/usr/X11R6/bin',
			'XML_CATALOG_FILES' => '/sw/etc/xml/catalog',
			'PWD' => '/opt/local/bin',
			'QMAKESPEC' => '/sw/share/qt3/mkspecs/darwin-g++',
			'SHLVL' => '1',
			'HOME' => '/Users/dzuelke',
			'XDG_CONFIG_HOME' => '/Users/dzuelke/.config',
			'XDG_CACHE_HOME' => '/Users/dzuelke/.cache',
			'LOGNAME' => 'root',
			'CVS_RSH' => 'ssh',
			'XDG_DATA_DIRS' => '/sw/share',
			'INFOPATH' => '/sw/share/info:/sw/info:/usr/share/info',
			'SECURITYSESSIONID' => '58cd10',
			'_' => '/usr/bin/sudo',
			'OLDPWD' => '/var/log',
			'SUDO_COMMAND' => '/opt/local/sbin/lighttpd -D -f /opt/local/etc/lighttpd/lighttpd.conf',
			'SUDO_USER' => 'dzuelke',
			'SUDO_UID' => '501',
			'SUDO_GID' => '501',
			'PHP_FCGI_CHILDREN' => '1',
		),
		'_GET' => array (
		),
		'_SERVER' => array (
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.11',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '50574',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_INFO' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/',
			'QUERY_STRING' => '',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_ACCEPT' => '*/*',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=8c71c4284bc299552c617e8fe12ed99e',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_PATH_INFO' => '',
			'ORIG_SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_TRANSLATED' => '',
			'MANPATH' => '/sw/share/man:/usr/share/man:/usr/local/php5/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man',
			'TERM_PROGRAM' => 'Apple_Terminal',
			'XDG_DATA_HOME' => '/Users/dzuelke/.local/share',
			'TERM' => 'xterm-color',
			'SHELL' => '/bin/bash',
			'PERL5LIB' => '/sw/lib/perl5:/sw/lib/perl5/darwin',
			'TERM_PROGRAM_VERSION' => '133',
			'QTDIR' => '/sw',
			'SGML_CATALOG_FILES' => '/sw/etc/sgml/catalog',
			'SVN_EDITOR' => 'joe',
			'USER' => 'root',
			'SSH_AUTH_SOCK' => '/tmp/501/SSHKeychain.socket',
			'KDEDIR' => '/sw',
			'__CF_USER_TEXT_ENCODING' => '0x0:0:3',
			'XDG_CONFIG_DIRS' => '/sw/etc/xdg',
			'FLTK_DOCDIR' => '/sw/share/doc/fltk-x11/html',
			'PATH' => '/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/dzuelke/bin:/usr/local/php5/bin:/usr/X11R6/bin',
			'XML_CATALOG_FILES' => '/sw/etc/xml/catalog',
			'PWD' => '/opt/local/bin',
			'QMAKESPEC' => '/sw/share/qt3/mkspecs/darwin-g++',
			'SHLVL' => '1',
			'HOME' => '/Users/dzuelke',
			'XDG_CONFIG_HOME' => '/Users/dzuelke/.config',
			'XDG_CACHE_HOME' => '/Users/dzuelke/.cache',
			'LOGNAME' => 'root',
			'CVS_RSH' => 'ssh',
			'XDG_DATA_DIRS' => '/sw/share',
			'INFOPATH' => '/sw/share/info:/sw/info:/usr/share/info',
			'SECURITYSESSIONID' => '58cd10',
			'_' => '/usr/bin/sudo',
			'OLDPWD' => '/var/log',
			'SUDO_COMMAND' => '/opt/local/sbin/lighttpd -D -f /opt/local/etc/lighttpd/lighttpd.conf',
			'SUDO_USER' => 'dzuelke',
			'SUDO_UID' => '501',
			'SUDO_GID' => '501',
			'PHP_FCGI_CHILDREN' => '1',
			'PHP_SELF' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'REQUEST_TIME' => 1156985117,
			'argv' => 
			array (
			),
			'argc' => 0,
		)
	),
	array(
		'message' => 'Sub-directory, no rewrite, called index.php',
		'input' => '/',
		'prefix' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
		'basePath' => '/~dzuelke/_projects/agavi/trunk/samples/pub/',
		'baseHref' => 'http://localhost:81/~dzuelke/_projects/agavi/trunk/samples/pub/',
		'_ENV' => array (
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.11',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '50578',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_INFO' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'QUERY_STRING' => '',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_ACCEPT' => '*/*',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=8c71c4284bc299552c617e8fe12ed99e',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_PATH_INFO' => '',
			'ORIG_SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_TRANSLATED' => '',
			'MANPATH' => '/sw/share/man:/usr/share/man:/usr/local/php5/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man',
			'TERM_PROGRAM' => 'Apple_Terminal',
			'XDG_DATA_HOME' => '/Users/dzuelke/.local/share',
			'TERM' => 'xterm-color',
			'SHELL' => '/bin/bash',
			'PERL5LIB' => '/sw/lib/perl5:/sw/lib/perl5/darwin',
			'TERM_PROGRAM_VERSION' => '133',
			'QTDIR' => '/sw',
			'SGML_CATALOG_FILES' => '/sw/etc/sgml/catalog',
			'SVN_EDITOR' => 'joe',
			'USER' => 'root',
			'SSH_AUTH_SOCK' => '/tmp/501/SSHKeychain.socket',
			'KDEDIR' => '/sw',
			'__CF_USER_TEXT_ENCODING' => '0x0:0:3',
			'XDG_CONFIG_DIRS' => '/sw/etc/xdg',
			'FLTK_DOCDIR' => '/sw/share/doc/fltk-x11/html',
			'PATH' => '/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/dzuelke/bin:/usr/local/php5/bin:/usr/X11R6/bin',
			'XML_CATALOG_FILES' => '/sw/etc/xml/catalog',
			'PWD' => '/opt/local/bin',
			'QMAKESPEC' => '/sw/share/qt3/mkspecs/darwin-g++',
			'SHLVL' => '1',
			'HOME' => '/Users/dzuelke',
			'XDG_CONFIG_HOME' => '/Users/dzuelke/.config',
			'XDG_CACHE_HOME' => '/Users/dzuelke/.cache',
			'LOGNAME' => 'root',
			'CVS_RSH' => 'ssh',
			'XDG_DATA_DIRS' => '/sw/share',
			'INFOPATH' => '/sw/share/info:/sw/info:/usr/share/info',
			'SECURITYSESSIONID' => '58cd10',
			'_' => '/usr/bin/sudo',
			'OLDPWD' => '/var/log',
			'SUDO_COMMAND' => '/opt/local/sbin/lighttpd -D -f /opt/local/etc/lighttpd/lighttpd.conf',
			'SUDO_USER' => 'dzuelke',
			'SUDO_UID' => '501',
			'SUDO_GID' => '501',
			'PHP_FCGI_CHILDREN' => '1',
		),
		'_GET' => array (
		),
		'_SERVER' => array (
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.11',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '50578',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_INFO' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'QUERY_STRING' => '',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_ACCEPT' => '*/*',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=8c71c4284bc299552c617e8fe12ed99e',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_PATH_INFO' => '',
			'ORIG_SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_TRANSLATED' => '',
			'MANPATH' => '/sw/share/man:/usr/share/man:/usr/local/php5/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man',
			'TERM_PROGRAM' => 'Apple_Terminal',
			'XDG_DATA_HOME' => '/Users/dzuelke/.local/share',
			'TERM' => 'xterm-color',
			'SHELL' => '/bin/bash',
			'PERL5LIB' => '/sw/lib/perl5:/sw/lib/perl5/darwin',
			'TERM_PROGRAM_VERSION' => '133',
			'QTDIR' => '/sw',
			'SGML_CATALOG_FILES' => '/sw/etc/sgml/catalog',
			'SVN_EDITOR' => 'joe',
			'USER' => 'root',
			'SSH_AUTH_SOCK' => '/tmp/501/SSHKeychain.socket',
			'KDEDIR' => '/sw',
			'__CF_USER_TEXT_ENCODING' => '0x0:0:3',
			'XDG_CONFIG_DIRS' => '/sw/etc/xdg',
			'FLTK_DOCDIR' => '/sw/share/doc/fltk-x11/html',
			'PATH' => '/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/dzuelke/bin:/usr/local/php5/bin:/usr/X11R6/bin',
			'XML_CATALOG_FILES' => '/sw/etc/xml/catalog',
			'PWD' => '/opt/local/bin',
			'QMAKESPEC' => '/sw/share/qt3/mkspecs/darwin-g++',
			'SHLVL' => '1',
			'HOME' => '/Users/dzuelke',
			'XDG_CONFIG_HOME' => '/Users/dzuelke/.config',
			'XDG_CACHE_HOME' => '/Users/dzuelke/.cache',
			'LOGNAME' => 'root',
			'CVS_RSH' => 'ssh',
			'XDG_DATA_DIRS' => '/sw/share',
			'INFOPATH' => '/sw/share/info:/sw/info:/usr/share/info',
			'SECURITYSESSIONID' => '58cd10',
			'_' => '/usr/bin/sudo',
			'OLDPWD' => '/var/log',
			'SUDO_COMMAND' => '/opt/local/sbin/lighttpd -D -f /opt/local/etc/lighttpd/lighttpd.conf',
			'SUDO_USER' => 'dzuelke',
			'SUDO_UID' => '501',
			'SUDO_GID' => '501',
			'PHP_FCGI_CHILDREN' => '1',
			'PHP_SELF' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'REQUEST_TIME' => 1156985140,
			'argv' => 
			array (
			),
			'argc' => 0,
		)
	),
	array(
		'message' => 'Sub-directory, no rewrite, called index.php with query',
		'input' => '/',
		'prefix' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
		'basePath' => '/~dzuelke/_projects/agavi/trunk/samples/pub/',
		'baseHref' => 'http://localhost:81/~dzuelke/_projects/agavi/trunk/samples/pub/',
		'_ENV' => array (
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.11',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '50580',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_INFO' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php?foo=bar',
			'QUERY_STRING' => 'foo=bar',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_ACCEPT' => '*/*',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=8c71c4284bc299552c617e8fe12ed99e',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_PATH_INFO' => '',
			'ORIG_SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_TRANSLATED' => '',
			'MANPATH' => '/sw/share/man:/usr/share/man:/usr/local/php5/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man',
			'TERM_PROGRAM' => 'Apple_Terminal',
			'XDG_DATA_HOME' => '/Users/dzuelke/.local/share',
			'TERM' => 'xterm-color',
			'SHELL' => '/bin/bash',
			'PERL5LIB' => '/sw/lib/perl5:/sw/lib/perl5/darwin',
			'TERM_PROGRAM_VERSION' => '133',
			'QTDIR' => '/sw',
			'SGML_CATALOG_FILES' => '/sw/etc/sgml/catalog',
			'SVN_EDITOR' => 'joe',
			'USER' => 'root',
			'SSH_AUTH_SOCK' => '/tmp/501/SSHKeychain.socket',
			'KDEDIR' => '/sw',
			'__CF_USER_TEXT_ENCODING' => '0x0:0:3',
			'XDG_CONFIG_DIRS' => '/sw/etc/xdg',
			'FLTK_DOCDIR' => '/sw/share/doc/fltk-x11/html',
			'PATH' => '/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/dzuelke/bin:/usr/local/php5/bin:/usr/X11R6/bin',
			'XML_CATALOG_FILES' => '/sw/etc/xml/catalog',
			'PWD' => '/opt/local/bin',
			'QMAKESPEC' => '/sw/share/qt3/mkspecs/darwin-g++',
			'SHLVL' => '1',
			'HOME' => '/Users/dzuelke',
			'XDG_CONFIG_HOME' => '/Users/dzuelke/.config',
			'XDG_CACHE_HOME' => '/Users/dzuelke/.cache',
			'LOGNAME' => 'root',
			'CVS_RSH' => 'ssh',
			'XDG_DATA_DIRS' => '/sw/share',
			'INFOPATH' => '/sw/share/info:/sw/info:/usr/share/info',
			'SECURITYSESSIONID' => '58cd10',
			'_' => '/usr/bin/sudo',
			'OLDPWD' => '/var/log',
			'SUDO_COMMAND' => '/opt/local/sbin/lighttpd -D -f /opt/local/etc/lighttpd/lighttpd.conf',
			'SUDO_USER' => 'dzuelke',
			'SUDO_UID' => '501',
			'SUDO_GID' => '501',
			'PHP_FCGI_CHILDREN' => '1',
		),
		'_GET' => array (
			'foo' => 'bar',
		),
		'_SERVER' => array (
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.11',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '50580',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_INFO' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php?foo=bar',
			'QUERY_STRING' => 'foo=bar',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_ACCEPT' => '*/*',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=8c71c4284bc299552c617e8fe12ed99e',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_PATH_INFO' => '',
			'ORIG_SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_TRANSLATED' => '',
			'MANPATH' => '/sw/share/man:/usr/share/man:/usr/local/php5/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man',
			'TERM_PROGRAM' => 'Apple_Terminal',
			'XDG_DATA_HOME' => '/Users/dzuelke/.local/share',
			'TERM' => 'xterm-color',
			'SHELL' => '/bin/bash',
			'PERL5LIB' => '/sw/lib/perl5:/sw/lib/perl5/darwin',
			'TERM_PROGRAM_VERSION' => '133',
			'QTDIR' => '/sw',
			'SGML_CATALOG_FILES' => '/sw/etc/sgml/catalog',
			'SVN_EDITOR' => 'joe',
			'USER' => 'root',
			'SSH_AUTH_SOCK' => '/tmp/501/SSHKeychain.socket',
			'KDEDIR' => '/sw',
			'__CF_USER_TEXT_ENCODING' => '0x0:0:3',
			'XDG_CONFIG_DIRS' => '/sw/etc/xdg',
			'FLTK_DOCDIR' => '/sw/share/doc/fltk-x11/html',
			'PATH' => '/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/dzuelke/bin:/usr/local/php5/bin:/usr/X11R6/bin',
			'XML_CATALOG_FILES' => '/sw/etc/xml/catalog',
			'PWD' => '/opt/local/bin',
			'QMAKESPEC' => '/sw/share/qt3/mkspecs/darwin-g++',
			'SHLVL' => '1',
			'HOME' => '/Users/dzuelke',
			'XDG_CONFIG_HOME' => '/Users/dzuelke/.config',
			'XDG_CACHE_HOME' => '/Users/dzuelke/.cache',
			'LOGNAME' => 'root',
			'CVS_RSH' => 'ssh',
			'XDG_DATA_DIRS' => '/sw/share',
			'INFOPATH' => '/sw/share/info:/sw/info:/usr/share/info',
			'SECURITYSESSIONID' => '58cd10',
			'_' => '/usr/bin/sudo',
			'OLDPWD' => '/var/log',
			'SUDO_COMMAND' => '/opt/local/sbin/lighttpd -D -f /opt/local/etc/lighttpd/lighttpd.conf',
			'SUDO_USER' => 'dzuelke',
			'SUDO_UID' => '501',
			'SUDO_GID' => '501',
			'PHP_FCGI_CHILDREN' => '1',
			'PHP_SELF' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'REQUEST_TIME' => 1156985153,
			'argv' => 
			array (
				0 => 'foo=bar',
			),
			'argc' => 1,
		)
	),
	array(
		'message' => 'Sub-directory, no rewrite, called index.php with path info',
		'input' => '/fubar',
		'prefix' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
		'basePath' => '/~dzuelke/_projects/agavi/trunk/samples/pub/',
		'baseHref' => 'http://localhost:81/~dzuelke/_projects/agavi/trunk/samples/pub/',
		'_ENV' => array (
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.11',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '50583',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_INFO' => '',
			'PATH_TRANSLATED' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php/fubar',
			'QUERY_STRING' => '',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_ACCEPT' => '*/*',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=8c71c4284bc299552c617e8fe12ed99e',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_PATH_TRANSLATED' => '/Library/WebServer/Documents//fubar',
			'ORIG_PATH_INFO' => '/fubar',
			'ORIG_SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'MANPATH' => '/sw/share/man:/usr/share/man:/usr/local/php5/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man',
			'TERM_PROGRAM' => 'Apple_Terminal',
			'XDG_DATA_HOME' => '/Users/dzuelke/.local/share',
			'TERM' => 'xterm-color',
			'SHELL' => '/bin/bash',
			'PERL5LIB' => '/sw/lib/perl5:/sw/lib/perl5/darwin',
			'TERM_PROGRAM_VERSION' => '133',
			'QTDIR' => '/sw',
			'SGML_CATALOG_FILES' => '/sw/etc/sgml/catalog',
			'SVN_EDITOR' => 'joe',
			'USER' => 'root',
			'SSH_AUTH_SOCK' => '/tmp/501/SSHKeychain.socket',
			'KDEDIR' => '/sw',
			'__CF_USER_TEXT_ENCODING' => '0x0:0:3',
			'XDG_CONFIG_DIRS' => '/sw/etc/xdg',
			'FLTK_DOCDIR' => '/sw/share/doc/fltk-x11/html',
			'PATH' => '/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/dzuelke/bin:/usr/local/php5/bin:/usr/X11R6/bin',
			'XML_CATALOG_FILES' => '/sw/etc/xml/catalog',
			'PWD' => '/opt/local/bin',
			'QMAKESPEC' => '/sw/share/qt3/mkspecs/darwin-g++',
			'SHLVL' => '1',
			'HOME' => '/Users/dzuelke',
			'XDG_CONFIG_HOME' => '/Users/dzuelke/.config',
			'XDG_CACHE_HOME' => '/Users/dzuelke/.cache',
			'LOGNAME' => 'root',
			'CVS_RSH' => 'ssh',
			'XDG_DATA_DIRS' => '/sw/share',
			'INFOPATH' => '/sw/share/info:/sw/info:/usr/share/info',
			'SECURITYSESSIONID' => '58cd10',
			'_' => '/usr/bin/sudo',
			'OLDPWD' => '/var/log',
			'SUDO_COMMAND' => '/opt/local/sbin/lighttpd -D -f /opt/local/etc/lighttpd/lighttpd.conf',
			'SUDO_USER' => 'dzuelke',
			'SUDO_UID' => '501',
			'SUDO_GID' => '501',
			'PHP_FCGI_CHILDREN' => '1',
		),
		'_GET' => array (
		),
		'_SERVER' => array (
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.11',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '50583',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_INFO' => '',
			'PATH_TRANSLATED' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php/fubar',
			'QUERY_STRING' => '',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_ACCEPT' => '*/*',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=8c71c4284bc299552c617e8fe12ed99e',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_PATH_TRANSLATED' => '/Library/WebServer/Documents//fubar',
			'ORIG_PATH_INFO' => '/fubar',
			'ORIG_SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'MANPATH' => '/sw/share/man:/usr/share/man:/usr/local/php5/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man',
			'TERM_PROGRAM' => 'Apple_Terminal',
			'XDG_DATA_HOME' => '/Users/dzuelke/.local/share',
			'TERM' => 'xterm-color',
			'SHELL' => '/bin/bash',
			'PERL5LIB' => '/sw/lib/perl5:/sw/lib/perl5/darwin',
			'TERM_PROGRAM_VERSION' => '133',
			'QTDIR' => '/sw',
			'SGML_CATALOG_FILES' => '/sw/etc/sgml/catalog',
			'SVN_EDITOR' => 'joe',
			'USER' => 'root',
			'SSH_AUTH_SOCK' => '/tmp/501/SSHKeychain.socket',
			'KDEDIR' => '/sw',
			'__CF_USER_TEXT_ENCODING' => '0x0:0:3',
			'XDG_CONFIG_DIRS' => '/sw/etc/xdg',
			'FLTK_DOCDIR' => '/sw/share/doc/fltk-x11/html',
			'PATH' => '/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/dzuelke/bin:/usr/local/php5/bin:/usr/X11R6/bin',
			'XML_CATALOG_FILES' => '/sw/etc/xml/catalog',
			'PWD' => '/opt/local/bin',
			'QMAKESPEC' => '/sw/share/qt3/mkspecs/darwin-g++',
			'SHLVL' => '1',
			'HOME' => '/Users/dzuelke',
			'XDG_CONFIG_HOME' => '/Users/dzuelke/.config',
			'XDG_CACHE_HOME' => '/Users/dzuelke/.cache',
			'LOGNAME' => 'root',
			'CVS_RSH' => 'ssh',
			'XDG_DATA_DIRS' => '/sw/share',
			'INFOPATH' => '/sw/share/info:/sw/info:/usr/share/info',
			'SECURITYSESSIONID' => '58cd10',
			'_' => '/usr/bin/sudo',
			'OLDPWD' => '/var/log',
			'SUDO_COMMAND' => '/opt/local/sbin/lighttpd -D -f /opt/local/etc/lighttpd/lighttpd.conf',
			'SUDO_USER' => 'dzuelke',
			'SUDO_UID' => '501',
			'SUDO_GID' => '501',
			'PHP_FCGI_CHILDREN' => '1',
			'PHP_SELF' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'REQUEST_TIME' => 1156985168,
			'argv' => 
			array (
			),
			'argc' => 0,
		)
	),
	array(
		'message' => 'Sub-directory, no rewrite, called index.php with path info and query',
		'input' => '/fubar',
		'prefix' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
		'basePath' => '/~dzuelke/_projects/agavi/trunk/samples/pub/',
		'baseHref' => 'http://localhost:81/~dzuelke/_projects/agavi/trunk/samples/pub/',
		'_ENV' => array (
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.11',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '50585',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_INFO' => '',
			'PATH_TRANSLATED' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php/fubar?foo=bar',
			'QUERY_STRING' => 'foo=bar',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_ACCEPT' => '*/*',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=8c71c4284bc299552c617e8fe12ed99e',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_PATH_TRANSLATED' => '/Library/WebServer/Documents//fubar',
			'ORIG_PATH_INFO' => '/fubar',
			'ORIG_SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'MANPATH' => '/sw/share/man:/usr/share/man:/usr/local/php5/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man',
			'TERM_PROGRAM' => 'Apple_Terminal',
			'XDG_DATA_HOME' => '/Users/dzuelke/.local/share',
			'TERM' => 'xterm-color',
			'SHELL' => '/bin/bash',
			'PERL5LIB' => '/sw/lib/perl5:/sw/lib/perl5/darwin',
			'TERM_PROGRAM_VERSION' => '133',
			'QTDIR' => '/sw',
			'SGML_CATALOG_FILES' => '/sw/etc/sgml/catalog',
			'SVN_EDITOR' => 'joe',
			'USER' => 'root',
			'SSH_AUTH_SOCK' => '/tmp/501/SSHKeychain.socket',
			'KDEDIR' => '/sw',
			'__CF_USER_TEXT_ENCODING' => '0x0:0:3',
			'XDG_CONFIG_DIRS' => '/sw/etc/xdg',
			'FLTK_DOCDIR' => '/sw/share/doc/fltk-x11/html',
			'PATH' => '/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/dzuelke/bin:/usr/local/php5/bin:/usr/X11R6/bin',
			'XML_CATALOG_FILES' => '/sw/etc/xml/catalog',
			'PWD' => '/opt/local/bin',
			'QMAKESPEC' => '/sw/share/qt3/mkspecs/darwin-g++',
			'SHLVL' => '1',
			'HOME' => '/Users/dzuelke',
			'XDG_CONFIG_HOME' => '/Users/dzuelke/.config',
			'XDG_CACHE_HOME' => '/Users/dzuelke/.cache',
			'LOGNAME' => 'root',
			'CVS_RSH' => 'ssh',
			'XDG_DATA_DIRS' => '/sw/share',
			'INFOPATH' => '/sw/share/info:/sw/info:/usr/share/info',
			'SECURITYSESSIONID' => '58cd10',
			'_' => '/usr/bin/sudo',
			'OLDPWD' => '/var/log',
			'SUDO_COMMAND' => '/opt/local/sbin/lighttpd -D -f /opt/local/etc/lighttpd/lighttpd.conf',
			'SUDO_USER' => 'dzuelke',
			'SUDO_UID' => '501',
			'SUDO_GID' => '501',
			'PHP_FCGI_CHILDREN' => '1',
		),
		'_GET' => array (
			'foo' => 'bar',
		),
		'_SERVER' => array (
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.11',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '50585',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_INFO' => '',
			'PATH_TRANSLATED' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php/fubar?foo=bar',
			'QUERY_STRING' => 'foo=bar',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_ACCEPT' => '*/*',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=8c71c4284bc299552c617e8fe12ed99e',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_PATH_TRANSLATED' => '/Library/WebServer/Documents//fubar',
			'ORIG_PATH_INFO' => '/fubar',
			'ORIG_SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'MANPATH' => '/sw/share/man:/usr/share/man:/usr/local/php5/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man',
			'TERM_PROGRAM' => 'Apple_Terminal',
			'XDG_DATA_HOME' => '/Users/dzuelke/.local/share',
			'TERM' => 'xterm-color',
			'SHELL' => '/bin/bash',
			'PERL5LIB' => '/sw/lib/perl5:/sw/lib/perl5/darwin',
			'TERM_PROGRAM_VERSION' => '133',
			'QTDIR' => '/sw',
			'SGML_CATALOG_FILES' => '/sw/etc/sgml/catalog',
			'SVN_EDITOR' => 'joe',
			'USER' => 'root',
			'SSH_AUTH_SOCK' => '/tmp/501/SSHKeychain.socket',
			'KDEDIR' => '/sw',
			'__CF_USER_TEXT_ENCODING' => '0x0:0:3',
			'XDG_CONFIG_DIRS' => '/sw/etc/xdg',
			'FLTK_DOCDIR' => '/sw/share/doc/fltk-x11/html',
			'PATH' => '/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/dzuelke/bin:/usr/local/php5/bin:/usr/X11R6/bin',
			'XML_CATALOG_FILES' => '/sw/etc/xml/catalog',
			'PWD' => '/opt/local/bin',
			'QMAKESPEC' => '/sw/share/qt3/mkspecs/darwin-g++',
			'SHLVL' => '1',
			'HOME' => '/Users/dzuelke',
			'XDG_CONFIG_HOME' => '/Users/dzuelke/.config',
			'XDG_CACHE_HOME' => '/Users/dzuelke/.cache',
			'LOGNAME' => 'root',
			'CVS_RSH' => 'ssh',
			'XDG_DATA_DIRS' => '/sw/share',
			'INFOPATH' => '/sw/share/info:/sw/info:/usr/share/info',
			'SECURITYSESSIONID' => '58cd10',
			'_' => '/usr/bin/sudo',
			'OLDPWD' => '/var/log',
			'SUDO_COMMAND' => '/opt/local/sbin/lighttpd -D -f /opt/local/etc/lighttpd/lighttpd.conf',
			'SUDO_USER' => 'dzuelke',
			'SUDO_UID' => '501',
			'SUDO_GID' => '501',
			'PHP_FCGI_CHILDREN' => '1',
			'PHP_SELF' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'REQUEST_TIME' => 1156985198,
			'argv' => 
			array (
				0 => 'foo=bar',
			),
			'argc' => 1,
		)
	),
	array(
		'message' => 'Sub-directory, no rewrite, called index.php with special path info and query',
		'input' => '/fo o&ba+r',
		'prefix' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
		'basePath' => '/~dzuelke/_projects/agavi/trunk/samples/pub/',
		'baseHref' => 'http://localhost:81/~dzuelke/_projects/agavi/trunk/samples/pub/',
		'_ENV' => array (
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.11',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '56964',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_INFO' => '',
			'PATH_TRANSLATED' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php/fo%20o&ba+r?test=foo%20bar+baz',
			'QUERY_STRING' => 'test=foo%20bar+baz',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_ACCEPT' => '*/*',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=8c71c4284bc299552c617e8fe12ed99e',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_PATH_TRANSLATED' => '/Library/WebServer/Documents//fo o&ba+r',
			'ORIG_PATH_INFO' => '/fo o&ba+r',
			'ORIG_SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'MANPATH' => '/sw/share/man:/usr/share/man:/usr/local/php5/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man',
			'TERM_PROGRAM' => 'Apple_Terminal',
			'XDG_DATA_HOME' => '/Users/dzuelke/.local/share',
			'TERM' => 'xterm-color',
			'SHELL' => '/bin/bash',
			'PERL5LIB' => '/sw/lib/perl5:/sw/lib/perl5/darwin',
			'TERM_PROGRAM_VERSION' => '133',
			'QTDIR' => '/sw',
			'SGML_CATALOG_FILES' => '/sw/etc/sgml/catalog',
			'SVN_EDITOR' => 'joe',
			'USER' => 'root',
			'SSH_AUTH_SOCK' => '/tmp/501/SSHKeychain.socket',
			'KDEDIR' => '/sw',
			'__CF_USER_TEXT_ENCODING' => '0x0:0:3',
			'XDG_CONFIG_DIRS' => '/sw/etc/xdg',
			'FLTK_DOCDIR' => '/sw/share/doc/fltk-x11/html',
			'PATH' => '/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/dzuelke/bin:/usr/local/php5/bin:/usr/X11R6/bin',
			'XML_CATALOG_FILES' => '/sw/etc/xml/catalog',
			'PWD' => '/opt/local/bin',
			'QMAKESPEC' => '/sw/share/qt3/mkspecs/darwin-g++',
			'SHLVL' => '1',
			'HOME' => '/Users/dzuelke',
			'XDG_CONFIG_HOME' => '/Users/dzuelke/.config',
			'XDG_CACHE_HOME' => '/Users/dzuelke/.cache',
			'LOGNAME' => 'root',
			'CVS_RSH' => 'ssh',
			'XDG_DATA_DIRS' => '/sw/share',
			'INFOPATH' => '/sw/share/info:/sw/info:/usr/share/info',
			'SECURITYSESSIONID' => '58cd10',
			'_' => '/usr/bin/sudo',
			'OLDPWD' => '/var/log',
			'SUDO_COMMAND' => '/opt/local/sbin/lighttpd -D -f /opt/local/etc/lighttpd/lighttpd.conf',
			'SUDO_USER' => 'dzuelke',
			'SUDO_UID' => '501',
			'SUDO_GID' => '501',
			'PHP_FCGI_CHILDREN' => '1',
		),
		'_GET' => array (
			'test' => 'foo bar baz',
		),
		'_SERVER' => array (
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.11',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '56964',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_INFO' => '',
			'PATH_TRANSLATED' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php/fo%20o&ba+r?test=foo%20bar+baz',
			'QUERY_STRING' => 'test=foo%20bar+baz',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_ACCEPT' => '*/*',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=8c71c4284bc299552c617e8fe12ed99e',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_PATH_TRANSLATED' => '/Library/WebServer/Documents//fo o&ba+r',
			'ORIG_PATH_INFO' => '/fo o&ba+r',
			'ORIG_SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'MANPATH' => '/sw/share/man:/usr/share/man:/usr/local/php5/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man',
			'TERM_PROGRAM' => 'Apple_Terminal',
			'XDG_DATA_HOME' => '/Users/dzuelke/.local/share',
			'TERM' => 'xterm-color',
			'SHELL' => '/bin/bash',
			'PERL5LIB' => '/sw/lib/perl5:/sw/lib/perl5/darwin',
			'TERM_PROGRAM_VERSION' => '133',
			'QTDIR' => '/sw',
			'SGML_CATALOG_FILES' => '/sw/etc/sgml/catalog',
			'SVN_EDITOR' => 'joe',
			'USER' => 'root',
			'SSH_AUTH_SOCK' => '/tmp/501/SSHKeychain.socket',
			'KDEDIR' => '/sw',
			'__CF_USER_TEXT_ENCODING' => '0x0:0:3',
			'XDG_CONFIG_DIRS' => '/sw/etc/xdg',
			'FLTK_DOCDIR' => '/sw/share/doc/fltk-x11/html',
			'PATH' => '/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/dzuelke/bin:/usr/local/php5/bin:/usr/X11R6/bin',
			'XML_CATALOG_FILES' => '/sw/etc/xml/catalog',
			'PWD' => '/opt/local/bin',
			'QMAKESPEC' => '/sw/share/qt3/mkspecs/darwin-g++',
			'SHLVL' => '1',
			'HOME' => '/Users/dzuelke',
			'XDG_CONFIG_HOME' => '/Users/dzuelke/.config',
			'XDG_CACHE_HOME' => '/Users/dzuelke/.cache',
			'LOGNAME' => 'root',
			'CVS_RSH' => 'ssh',
			'XDG_DATA_DIRS' => '/sw/share',
			'INFOPATH' => '/sw/share/info:/sw/info:/usr/share/info',
			'SECURITYSESSIONID' => '58cd10',
			'_' => '/usr/bin/sudo',
			'OLDPWD' => '/var/log',
			'SUDO_COMMAND' => '/opt/local/sbin/lighttpd -D -f /opt/local/etc/lighttpd/lighttpd.conf',
			'SUDO_USER' => 'dzuelke',
			'SUDO_UID' => '501',
			'SUDO_GID' => '501',
			'PHP_FCGI_CHILDREN' => '1',
			'PHP_SELF' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'REQUEST_TIME' => 1157081970,
			'argv' => 
			array (
				0 => 'test=foo%20bar',
				1 => 'baz',
			),
			'argc' => 2,
		)
	),
	array(
		'message' => 'Sub-directory, rewritten, called directory',
		'input' => '/',
		'prefix' => '/~dzuelke/_projects/agavi/trunk/samples/pub',
		'basePath' => '/~dzuelke/_projects/agavi/trunk/samples/pub/',
		'baseHref' => 'http://localhost:81/~dzuelke/_projects/agavi/trunk/samples/pub/',
		'_ENV' => array (
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.11',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '50430',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_INFO' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/',
			'REDIRECT_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php?/&',
			'QUERY_STRING' => '/&',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_ACCEPT' => '*/*',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=8c71c4284bc299552c617e8fe12ed99e',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_PATH_INFO' => '',
			'ORIG_SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_TRANSLATED' => '',
			'MANPATH' => '/sw/share/man:/usr/share/man:/usr/local/php5/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man',
			'TERM_PROGRAM' => 'Apple_Terminal',
			'XDG_DATA_HOME' => '/Users/dzuelke/.local/share',
			'TERM' => 'xterm-color',
			'SHELL' => '/bin/bash',
			'PERL5LIB' => '/sw/lib/perl5:/sw/lib/perl5/darwin',
			'TERM_PROGRAM_VERSION' => '133',
			'QTDIR' => '/sw',
			'SGML_CATALOG_FILES' => '/sw/etc/sgml/catalog',
			'SVN_EDITOR' => 'joe',
			'USER' => 'root',
			'SSH_AUTH_SOCK' => '/tmp/501/SSHKeychain.socket',
			'KDEDIR' => '/sw',
			'__CF_USER_TEXT_ENCODING' => '0x0:0:3',
			'XDG_CONFIG_DIRS' => '/sw/etc/xdg',
			'FLTK_DOCDIR' => '/sw/share/doc/fltk-x11/html',
			'PATH' => '/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/dzuelke/bin:/usr/local/php5/bin:/usr/X11R6/bin',
			'XML_CATALOG_FILES' => '/sw/etc/xml/catalog',
			'PWD' => '/opt/local/bin',
			'QMAKESPEC' => '/sw/share/qt3/mkspecs/darwin-g++',
			'SHLVL' => '1',
			'HOME' => '/Users/dzuelke',
			'XDG_CONFIG_HOME' => '/Users/dzuelke/.config',
			'XDG_CACHE_HOME' => '/Users/dzuelke/.cache',
			'LOGNAME' => 'root',
			'CVS_RSH' => 'ssh',
			'XDG_DATA_DIRS' => '/sw/share',
			'INFOPATH' => '/sw/share/info:/sw/info:/usr/share/info',
			'SECURITYSESSIONID' => '58cd10',
			'_' => '/usr/bin/sudo',
			'OLDPWD' => '/var/log',
			'SUDO_COMMAND' => '/opt/local/sbin/lighttpd -D -f /opt/local/etc/lighttpd/lighttpd.conf',
			'SUDO_USER' => 'dzuelke',
			'SUDO_UID' => '501',
			'SUDO_GID' => '501',
			'PHP_FCGI_CHILDREN' => '1',
		),
		'_GET' => array (
			'/' => '',
		),
		'_SERVER' => array (
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.11',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '50430',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_INFO' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/',
			'REDIRECT_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php?/&',
			'QUERY_STRING' => '/&',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_ACCEPT' => '*/*',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=8c71c4284bc299552c617e8fe12ed99e',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_PATH_INFO' => '',
			'ORIG_SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_TRANSLATED' => '',
			'MANPATH' => '/sw/share/man:/usr/share/man:/usr/local/php5/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man',
			'TERM_PROGRAM' => 'Apple_Terminal',
			'XDG_DATA_HOME' => '/Users/dzuelke/.local/share',
			'TERM' => 'xterm-color',
			'SHELL' => '/bin/bash',
			'PERL5LIB' => '/sw/lib/perl5:/sw/lib/perl5/darwin',
			'TERM_PROGRAM_VERSION' => '133',
			'QTDIR' => '/sw',
			'SGML_CATALOG_FILES' => '/sw/etc/sgml/catalog',
			'SVN_EDITOR' => 'joe',
			'USER' => 'root',
			'SSH_AUTH_SOCK' => '/tmp/501/SSHKeychain.socket',
			'KDEDIR' => '/sw',
			'__CF_USER_TEXT_ENCODING' => '0x0:0:3',
			'XDG_CONFIG_DIRS' => '/sw/etc/xdg',
			'FLTK_DOCDIR' => '/sw/share/doc/fltk-x11/html',
			'PATH' => '/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/dzuelke/bin:/usr/local/php5/bin:/usr/X11R6/bin',
			'XML_CATALOG_FILES' => '/sw/etc/xml/catalog',
			'PWD' => '/opt/local/bin',
			'QMAKESPEC' => '/sw/share/qt3/mkspecs/darwin-g++',
			'SHLVL' => '1',
			'HOME' => '/Users/dzuelke',
			'XDG_CONFIG_HOME' => '/Users/dzuelke/.config',
			'XDG_CACHE_HOME' => '/Users/dzuelke/.cache',
			'LOGNAME' => 'root',
			'CVS_RSH' => 'ssh',
			'XDG_DATA_DIRS' => '/sw/share',
			'INFOPATH' => '/sw/share/info:/sw/info:/usr/share/info',
			'SECURITYSESSIONID' => '58cd10',
			'_' => '/usr/bin/sudo',
			'OLDPWD' => '/var/log',
			'SUDO_COMMAND' => '/opt/local/sbin/lighttpd -D -f /opt/local/etc/lighttpd/lighttpd.conf',
			'SUDO_USER' => 'dzuelke',
			'SUDO_UID' => '501',
			'SUDO_GID' => '501',
			'PHP_FCGI_CHILDREN' => '1',
			'PHP_SELF' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'REQUEST_TIME' => 1156984129,
			'argv' => 
			array (
				0 => '/&',
			),
			'argc' => 1,
		)
	),
	array(
		'message' => 'Sub-directory, rewritten, called path',
		'input' => '/fubar',
		'prefix' => '/~dzuelke/_projects/agavi/trunk/samples/pub',
		'basePath' => '/~dzuelke/_projects/agavi/trunk/samples/pub/',
		'baseHref' => 'http://localhost:81/~dzuelke/_projects/agavi/trunk/samples/pub/',
		'_ENV' => array (
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.11',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '50433',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_INFO' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/fubar',
			'REDIRECT_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php?/fubar&',
			'QUERY_STRING' => '/fubar&',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_ACCEPT' => '*/*',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=8c71c4284bc299552c617e8fe12ed99e',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_PATH_INFO' => '',
			'ORIG_SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_TRANSLATED' => '',
			'MANPATH' => '/sw/share/man:/usr/share/man:/usr/local/php5/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man',
			'TERM_PROGRAM' => 'Apple_Terminal',
			'XDG_DATA_HOME' => '/Users/dzuelke/.local/share',
			'TERM' => 'xterm-color',
			'SHELL' => '/bin/bash',
			'PERL5LIB' => '/sw/lib/perl5:/sw/lib/perl5/darwin',
			'TERM_PROGRAM_VERSION' => '133',
			'QTDIR' => '/sw',
			'SGML_CATALOG_FILES' => '/sw/etc/sgml/catalog',
			'SVN_EDITOR' => 'joe',
			'USER' => 'root',
			'SSH_AUTH_SOCK' => '/tmp/501/SSHKeychain.socket',
			'KDEDIR' => '/sw',
			'__CF_USER_TEXT_ENCODING' => '0x0:0:3',
			'XDG_CONFIG_DIRS' => '/sw/etc/xdg',
			'FLTK_DOCDIR' => '/sw/share/doc/fltk-x11/html',
			'PATH' => '/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/dzuelke/bin:/usr/local/php5/bin:/usr/X11R6/bin',
			'XML_CATALOG_FILES' => '/sw/etc/xml/catalog',
			'PWD' => '/opt/local/bin',
			'QMAKESPEC' => '/sw/share/qt3/mkspecs/darwin-g++',
			'SHLVL' => '1',
			'HOME' => '/Users/dzuelke',
			'XDG_CONFIG_HOME' => '/Users/dzuelke/.config',
			'XDG_CACHE_HOME' => '/Users/dzuelke/.cache',
			'LOGNAME' => 'root',
			'CVS_RSH' => 'ssh',
			'XDG_DATA_DIRS' => '/sw/share',
			'INFOPATH' => '/sw/share/info:/sw/info:/usr/share/info',
			'SECURITYSESSIONID' => '58cd10',
			'_' => '/usr/bin/sudo',
			'OLDPWD' => '/var/log',
			'SUDO_COMMAND' => '/opt/local/sbin/lighttpd -D -f /opt/local/etc/lighttpd/lighttpd.conf',
			'SUDO_USER' => 'dzuelke',
			'SUDO_UID' => '501',
			'SUDO_GID' => '501',
			'PHP_FCGI_CHILDREN' => '1',
		),
		'_GET' => array (
			'/fubar' => '',
		),
		'_SERVER' => array (
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.11',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '50433',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_INFO' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/fubar',
			'REDIRECT_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php?/fubar&',
			'QUERY_STRING' => '/fubar&',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_ACCEPT' => '*/*',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=8c71c4284bc299552c617e8fe12ed99e',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_PATH_INFO' => '',
			'ORIG_SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_TRANSLATED' => '',
			'MANPATH' => '/sw/share/man:/usr/share/man:/usr/local/php5/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man',
			'TERM_PROGRAM' => 'Apple_Terminal',
			'XDG_DATA_HOME' => '/Users/dzuelke/.local/share',
			'TERM' => 'xterm-color',
			'SHELL' => '/bin/bash',
			'PERL5LIB' => '/sw/lib/perl5:/sw/lib/perl5/darwin',
			'TERM_PROGRAM_VERSION' => '133',
			'QTDIR' => '/sw',
			'SGML_CATALOG_FILES' => '/sw/etc/sgml/catalog',
			'SVN_EDITOR' => 'joe',
			'USER' => 'root',
			'SSH_AUTH_SOCK' => '/tmp/501/SSHKeychain.socket',
			'KDEDIR' => '/sw',
			'__CF_USER_TEXT_ENCODING' => '0x0:0:3',
			'XDG_CONFIG_DIRS' => '/sw/etc/xdg',
			'FLTK_DOCDIR' => '/sw/share/doc/fltk-x11/html',
			'PATH' => '/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/dzuelke/bin:/usr/local/php5/bin:/usr/X11R6/bin',
			'XML_CATALOG_FILES' => '/sw/etc/xml/catalog',
			'PWD' => '/opt/local/bin',
			'QMAKESPEC' => '/sw/share/qt3/mkspecs/darwin-g++',
			'SHLVL' => '1',
			'HOME' => '/Users/dzuelke',
			'XDG_CONFIG_HOME' => '/Users/dzuelke/.config',
			'XDG_CACHE_HOME' => '/Users/dzuelke/.cache',
			'LOGNAME' => 'root',
			'CVS_RSH' => 'ssh',
			'XDG_DATA_DIRS' => '/sw/share',
			'INFOPATH' => '/sw/share/info:/sw/info:/usr/share/info',
			'SECURITYSESSIONID' => '58cd10',
			'_' => '/usr/bin/sudo',
			'OLDPWD' => '/var/log',
			'SUDO_COMMAND' => '/opt/local/sbin/lighttpd -D -f /opt/local/etc/lighttpd/lighttpd.conf',
			'SUDO_USER' => 'dzuelke',
			'SUDO_UID' => '501',
			'SUDO_GID' => '501',
			'PHP_FCGI_CHILDREN' => '1',
			'PHP_SELF' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'REQUEST_TIME' => 1156984174,
			'argv' => 
			array (
				0 => '/fubar&',
			),
			'argc' => 1,
		)
	),
	array(
		'message' => 'Sub-directory, rewritten, called path with query',
		'input' => '/fubar',
		'prefix' => '/~dzuelke/_projects/agavi/trunk/samples/pub',
		'basePath' => '/~dzuelke/_projects/agavi/trunk/samples/pub/',
		'baseHref' => 'http://localhost:81/~dzuelke/_projects/agavi/trunk/samples/pub/',
		'_ENV' => array (
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.11',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '50511',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_INFO' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/fubar?foo=bar',
			'REDIRECT_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php?/fubar&foo=bar',
			'QUERY_STRING' => '/fubar&foo=bar',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_ACCEPT' => '*/*',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=8c71c4284bc299552c617e8fe12ed99e',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_PATH_INFO' => '',
			'ORIG_SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_TRANSLATED' => '',
			'MANPATH' => '/sw/share/man:/usr/share/man:/usr/local/php5/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man',
			'TERM_PROGRAM' => 'Apple_Terminal',
			'XDG_DATA_HOME' => '/Users/dzuelke/.local/share',
			'TERM' => 'xterm-color',
			'SHELL' => '/bin/bash',
			'PERL5LIB' => '/sw/lib/perl5:/sw/lib/perl5/darwin',
			'TERM_PROGRAM_VERSION' => '133',
			'QTDIR' => '/sw',
			'SGML_CATALOG_FILES' => '/sw/etc/sgml/catalog',
			'SVN_EDITOR' => 'joe',
			'USER' => 'root',
			'SSH_AUTH_SOCK' => '/tmp/501/SSHKeychain.socket',
			'KDEDIR' => '/sw',
			'__CF_USER_TEXT_ENCODING' => '0x0:0:3',
			'XDG_CONFIG_DIRS' => '/sw/etc/xdg',
			'FLTK_DOCDIR' => '/sw/share/doc/fltk-x11/html',
			'PATH' => '/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/dzuelke/bin:/usr/local/php5/bin:/usr/X11R6/bin',
			'XML_CATALOG_FILES' => '/sw/etc/xml/catalog',
			'PWD' => '/opt/local/bin',
			'QMAKESPEC' => '/sw/share/qt3/mkspecs/darwin-g++',
			'SHLVL' => '1',
			'HOME' => '/Users/dzuelke',
			'XDG_CONFIG_HOME' => '/Users/dzuelke/.config',
			'XDG_CACHE_HOME' => '/Users/dzuelke/.cache',
			'LOGNAME' => 'root',
			'CVS_RSH' => 'ssh',
			'XDG_DATA_DIRS' => '/sw/share',
			'INFOPATH' => '/sw/share/info:/sw/info:/usr/share/info',
			'SECURITYSESSIONID' => '58cd10',
			'_' => '/usr/bin/sudo',
			'OLDPWD' => '/var/log',
			'SUDO_COMMAND' => '/opt/local/sbin/lighttpd -D -f /opt/local/etc/lighttpd/lighttpd.conf',
			'SUDO_USER' => 'dzuelke',
			'SUDO_UID' => '501',
			'SUDO_GID' => '501',
			'PHP_FCGI_CHILDREN' => '1',
		),
		'_GET' => array (
			'/fubar' => '',
			'foo' => 'bar',
		),
		'_SERVER' => array (
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.11',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '50511',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_INFO' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/fubar?foo=bar',
			'REDIRECT_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php?/fubar&foo=bar',
			'QUERY_STRING' => '/fubar&foo=bar',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_ACCEPT' => '*/*',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=8c71c4284bc299552c617e8fe12ed99e',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_PATH_INFO' => '',
			'ORIG_SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_TRANSLATED' => '',
			'MANPATH' => '/sw/share/man:/usr/share/man:/usr/local/php5/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man',
			'TERM_PROGRAM' => 'Apple_Terminal',
			'XDG_DATA_HOME' => '/Users/dzuelke/.local/share',
			'TERM' => 'xterm-color',
			'SHELL' => '/bin/bash',
			'PERL5LIB' => '/sw/lib/perl5:/sw/lib/perl5/darwin',
			'TERM_PROGRAM_VERSION' => '133',
			'QTDIR' => '/sw',
			'SGML_CATALOG_FILES' => '/sw/etc/sgml/catalog',
			'SVN_EDITOR' => 'joe',
			'USER' => 'root',
			'SSH_AUTH_SOCK' => '/tmp/501/SSHKeychain.socket',
			'KDEDIR' => '/sw',
			'__CF_USER_TEXT_ENCODING' => '0x0:0:3',
			'XDG_CONFIG_DIRS' => '/sw/etc/xdg',
			'FLTK_DOCDIR' => '/sw/share/doc/fltk-x11/html',
			'PATH' => '/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/dzuelke/bin:/usr/local/php5/bin:/usr/X11R6/bin',
			'XML_CATALOG_FILES' => '/sw/etc/xml/catalog',
			'PWD' => '/opt/local/bin',
			'QMAKESPEC' => '/sw/share/qt3/mkspecs/darwin-g++',
			'SHLVL' => '1',
			'HOME' => '/Users/dzuelke',
			'XDG_CONFIG_HOME' => '/Users/dzuelke/.config',
			'XDG_CACHE_HOME' => '/Users/dzuelke/.cache',
			'LOGNAME' => 'root',
			'CVS_RSH' => 'ssh',
			'XDG_DATA_DIRS' => '/sw/share',
			'INFOPATH' => '/sw/share/info:/sw/info:/usr/share/info',
			'SECURITYSESSIONID' => '58cd10',
			'_' => '/usr/bin/sudo',
			'OLDPWD' => '/var/log',
			'SUDO_COMMAND' => '/opt/local/sbin/lighttpd -D -f /opt/local/etc/lighttpd/lighttpd.conf',
			'SUDO_USER' => 'dzuelke',
			'SUDO_UID' => '501',
			'SUDO_GID' => '501',
			'PHP_FCGI_CHILDREN' => '1',
			'PHP_SELF' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'REQUEST_TIME' => 1156984664,
			'argv' => 
			array (
				0 => '/fubar&foo=bar',
			),
			'argc' => 1,
		)
	),
	array(
		'message' => 'Sub-directory, rewritten, called special path with query',
		'input' => '/fo o&ba+r',
		'prefix' => '/~dzuelke/_projects/agavi/trunk/samples/pub',
		'basePath' => '/~dzuelke/_projects/agavi/trunk/samples/pub/',
		'baseHref' => 'http://localhost:81/~dzuelke/_projects/agavi/trunk/samples/pub/',
		'_ENV' => array (
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.11',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '50513',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_INFO' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/fo%20o&ba+r?test=foo%20bar+baz',
			'REDIRECT_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php?/fo%20o&ba+r&test=foo%20bar+baz',
			'QUERY_STRING' => '/fo%20o&ba+r&test=foo%20bar+baz',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_ACCEPT' => '*/*',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=8c71c4284bc299552c617e8fe12ed99e',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_PATH_INFO' => '',
			'ORIG_SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_TRANSLATED' => '',
			'MANPATH' => '/sw/share/man:/usr/share/man:/usr/local/php5/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man',
			'TERM_PROGRAM' => 'Apple_Terminal',
			'XDG_DATA_HOME' => '/Users/dzuelke/.local/share',
			'TERM' => 'xterm-color',
			'SHELL' => '/bin/bash',
			'PERL5LIB' => '/sw/lib/perl5:/sw/lib/perl5/darwin',
			'TERM_PROGRAM_VERSION' => '133',
			'QTDIR' => '/sw',
			'SGML_CATALOG_FILES' => '/sw/etc/sgml/catalog',
			'SVN_EDITOR' => 'joe',
			'USER' => 'root',
			'SSH_AUTH_SOCK' => '/tmp/501/SSHKeychain.socket',
			'KDEDIR' => '/sw',
			'__CF_USER_TEXT_ENCODING' => '0x0:0:3',
			'XDG_CONFIG_DIRS' => '/sw/etc/xdg',
			'FLTK_DOCDIR' => '/sw/share/doc/fltk-x11/html',
			'PATH' => '/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/dzuelke/bin:/usr/local/php5/bin:/usr/X11R6/bin',
			'XML_CATALOG_FILES' => '/sw/etc/xml/catalog',
			'PWD' => '/opt/local/bin',
			'QMAKESPEC' => '/sw/share/qt3/mkspecs/darwin-g++',
			'SHLVL' => '1',
			'HOME' => '/Users/dzuelke',
			'XDG_CONFIG_HOME' => '/Users/dzuelke/.config',
			'XDG_CACHE_HOME' => '/Users/dzuelke/.cache',
			'LOGNAME' => 'root',
			'CVS_RSH' => 'ssh',
			'XDG_DATA_DIRS' => '/sw/share',
			'INFOPATH' => '/sw/share/info:/sw/info:/usr/share/info',
			'SECURITYSESSIONID' => '58cd10',
			'_' => '/usr/bin/sudo',
			'OLDPWD' => '/var/log',
			'SUDO_COMMAND' => '/opt/local/sbin/lighttpd -D -f /opt/local/etc/lighttpd/lighttpd.conf',
			'SUDO_USER' => 'dzuelke',
			'SUDO_UID' => '501',
			'SUDO_GID' => '501',
			'PHP_FCGI_CHILDREN' => '1',
		),
		'_GET' => array (
			'/fo_o' => '',
			'ba_r' => '',
			'test' => 'foo bar baz',
		),
		'_SERVER' => array (
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.11',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '50513',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_INFO' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/fo%20o&ba+r?test=foo%20bar+baz',
			'REDIRECT_URI' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php?/fo%20o&ba+r&test=foo%20bar+baz',
			'QUERY_STRING' => '/fo%20o&ba+r&test=foo%20bar+baz',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_ACCEPT' => '*/*',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=8c71c4284bc299552c617e8fe12ed99e',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/418.8 (KHTML, like Gecko) Safari/419.3',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_PATH_INFO' => '',
			'ORIG_SCRIPT_NAME' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/_projects/agavi/trunk/samples/pub/index.php',
			'PATH_TRANSLATED' => '',
			'MANPATH' => '/sw/share/man:/usr/share/man:/usr/local/php5/share/man:/usr/X11R6/man:/sw/lib/perl5/5.8.6/man',
			'TERM_PROGRAM' => 'Apple_Terminal',
			'XDG_DATA_HOME' => '/Users/dzuelke/.local/share',
			'TERM' => 'xterm-color',
			'SHELL' => '/bin/bash',
			'PERL5LIB' => '/sw/lib/perl5:/sw/lib/perl5/darwin',
			'TERM_PROGRAM_VERSION' => '133',
			'QTDIR' => '/sw',
			'SGML_CATALOG_FILES' => '/sw/etc/sgml/catalog',
			'SVN_EDITOR' => 'joe',
			'USER' => 'root',
			'SSH_AUTH_SOCK' => '/tmp/501/SSHKeychain.socket',
			'KDEDIR' => '/sw',
			'__CF_USER_TEXT_ENCODING' => '0x0:0:3',
			'XDG_CONFIG_DIRS' => '/sw/etc/xdg',
			'FLTK_DOCDIR' => '/sw/share/doc/fltk-x11/html',
			'PATH' => '/opt/local/bin:/opt/local/sbin:/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Users/dzuelke/bin:/usr/local/php5/bin:/usr/X11R6/bin',
			'XML_CATALOG_FILES' => '/sw/etc/xml/catalog',
			'PWD' => '/opt/local/bin',
			'QMAKESPEC' => '/sw/share/qt3/mkspecs/darwin-g++',
			'SHLVL' => '1',
			'HOME' => '/Users/dzuelke',
			'XDG_CONFIG_HOME' => '/Users/dzuelke/.config',
			'XDG_CACHE_HOME' => '/Users/dzuelke/.cache',
			'LOGNAME' => 'root',
			'CVS_RSH' => 'ssh',
			'XDG_DATA_DIRS' => '/sw/share',
			'INFOPATH' => '/sw/share/info:/sw/info:/usr/share/info',
			'SECURITYSESSIONID' => '58cd10',
			'_' => '/usr/bin/sudo',
			'OLDPWD' => '/var/log',
			'SUDO_COMMAND' => '/opt/local/sbin/lighttpd -D -f /opt/local/etc/lighttpd/lighttpd.conf',
			'SUDO_USER' => 'dzuelke',
			'SUDO_UID' => '501',
			'SUDO_GID' => '501',
			'PHP_FCGI_CHILDREN' => '1',
			'PHP_SELF' => '/~dzuelke/_projects/agavi/trunk/samples/pub/index.php',
			'REQUEST_TIME' => 1156984755,
			'argv' => 
			array (
				0 => '/fo%20o&ba',
				1 => 'r&test=foo%20bar',
				2 => 'baz',
			),
			'argc' => 3,
		)
	),
	array(
		'message' => 'Sub-directory, rewritten, called path with empty query (i.e. trailing question mark)',
		'input' => '/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342',
		'prefix' => '/~dzuelke/ag0.11sa',
		'basePath' => '/~dzuelke/ag0.11sa/',
		'baseHref' => 'http://localhost:81/~dzuelke/ag0.11sa/',
		'_ENV' => array (
		),
		'_GET' => array (
			'/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342' => '',
		),
		'_SERVER' => array (
			'PHP_FCGI_CHILDREN' => '1',
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.18',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '61528',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/ag0.11sa/index.php',
			'PATH_INFO' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Code/oss/agavi/branches/0.11/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/ag0.11sa/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342?',
			'REDIRECT_URI' => '/~dzuelke/ag0.11sa/index.php?/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342&',
			'QUERY_STRING' => '/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342&',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/523.10.3 (KHTML, like Gecko) Version/3.0.4 Safari/523.10',
			'HTTP_ACCEPT' => 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=j37int79ma06iclrriv7lls982; locale=en',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/ag0.11sa/index.php',
			'PHP_SELF' => '/~dzuelke/ag0.11sa/index.php',
			'REQUEST_TIME' => 1194881149,
		)
	),
	array(
		'message' => 'Sub-directory, rewritten, called path with query string and trailing ampersand',
		'input' => '/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342',
		'prefix' => '/~dzuelke/ag0.11sa',
		'basePath' => '/~dzuelke/ag0.11sa/',
		'baseHref' => 'http://localhost:81/~dzuelke/ag0.11sa/',
		'_ENV' => array (
		),
		'_GET' => array (
			'/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342' => '',
			'foo' => '',
		),
		'_SERVER' => array (
			'PHP_FCGI_CHILDREN' => '1',
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.18',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '61531',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/ag0.11sa/index.php',
			'PATH_INFO' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Code/oss/agavi/branches/0.11/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/ag0.11sa/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342?foo&',
			'REDIRECT_URI' => '/~dzuelke/ag0.11sa/index.php?/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342&foo&',
			'QUERY_STRING' => '/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342&foo&',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/523.10.3 (KHTML, like Gecko) Version/3.0.4 Safari/523.10',
			'HTTP_ACCEPT' => 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=j37int79ma06iclrriv7lls982; locale=en',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/ag0.11sa/index.php',
			'PHP_SELF' => '/~dzuelke/ag0.11sa/index.php',
			'REQUEST_TIME' => 1194881212,
		)
	),
	array(
		'message' => 'Sub-directory, rewritten, called path with query string that only has a trailing ampersand',
		'input' => '/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342',
		'prefix' => '/~dzuelke/ag0.11sa',
		'basePath' => '/~dzuelke/ag0.11sa/',
		'baseHref' => 'http://localhost:81/~dzuelke/ag0.11sa/',
		'_ENV' => array (
		),
		'_GET' => array (
			'/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342' => '',
		),
		'_SERVER' => array (
			'PHP_FCGI_CHILDREN' => '1',
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.18',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '61534',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/ag0.11sa/index.php',
			'PATH_INFO' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Code/oss/agavi/branches/0.11/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/ag0.11sa/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342?&',
			'REDIRECT_URI' => '/~dzuelke/ag0.11sa/index.php?/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342&&',
			'QUERY_STRING' => '/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342&&',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/523.10.3 (KHTML, like Gecko) Version/3.0.4 Safari/523.10',
			'HTTP_ACCEPT' => 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=j37int79ma06iclrriv7lls982; locale=en',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/ag0.11sa/index.php',
			'PHP_SELF' => '/~dzuelke/ag0.11sa/index.php',
			'REQUEST_TIME' => 1194881237,
		)
	),
	array(
		'message' => 'Sub-directory, rewritten, called path with trailing ampersand (no query string)',
		'input' => '/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342&',
		'prefix' => '/~dzuelke/ag0.11sa',
		'basePath' => '/~dzuelke/ag0.11sa/',
		'baseHref' => 'http://localhost:81/~dzuelke/ag0.11sa/',
		'_ENV' => array (
		),
		'_GET' => array (
			'/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342' => '',
		),
		'_SERVER' => array (
			'PHP_FCGI_CHILDREN' => '1',
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.18',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '61537',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/ag0.11sa/index.php',
			'PATH_INFO' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Code/oss/agavi/branches/0.11/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/ag0.11sa/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342&',
			'REDIRECT_URI' => '/~dzuelke/ag0.11sa/index.php?/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342&&',
			'QUERY_STRING' => '/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342&&',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/523.10.3 (KHTML, like Gecko) Version/3.0.4 Safari/523.10',
			'HTTP_ACCEPT' => 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=j37int79ma06iclrriv7lls982; locale=en',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/ag0.11sa/index.php',
			'PHP_SELF' => '/~dzuelke/ag0.11sa/index.php',
			'REQUEST_TIME' => 1194881263,
		)
	),
	array(
		'message' => 'Sub-directory, rewritten, called path with trailing ampersand and query string',
		'input' => '/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342&',
		'prefix' => '/~dzuelke/ag0.11sa',
		'basePath' => '/~dzuelke/ag0.11sa/',
		'baseHref' => 'http://localhost:81/~dzuelke/ag0.11sa/',
		'_ENV' => array (
		),
		'_GET' => array (
			'/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342' => '',
			'foo' => '',
		),
		'_SERVER' => array (
			'PHP_FCGI_CHILDREN' => '1',
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.18',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '61540',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/ag0.11sa/index.php',
			'PATH_INFO' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Code/oss/agavi/branches/0.11/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/ag0.11sa/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342&?foo',
			'REDIRECT_URI' => '/~dzuelke/ag0.11sa/index.php?/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342&&foo',
			'QUERY_STRING' => '/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342&&foo',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/523.10.3 (KHTML, like Gecko) Version/3.0.4 Safari/523.10',
			'HTTP_ACCEPT' => 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=j37int79ma06iclrriv7lls982; locale=en',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/ag0.11sa/index.php',
			'PHP_SELF' => '/~dzuelke/ag0.11sa/index.php',
			'REQUEST_TIME' => 1194881298,
		)
	),
	array(
		'message' => 'Sub-directory, rewritten, called path with trailing ampersand and empty query string',
		'input' => '/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342&',
		'prefix' => '/~dzuelke/ag0.11sa',
		'basePath' => '/~dzuelke/ag0.11sa/',
		'baseHref' => 'http://localhost:81/~dzuelke/ag0.11sa/',
		'_ENV' => array (
		),
		'_GET' => array (
			'/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342' => '',
		),
		'_SERVER' => array (
			'PHP_FCGI_CHILDREN' => '1',
			'FCGI_ROLE' => 'RESPONDER',
			'SERVER_SOFTWARE' => 'lighttpd/1.4.18',
			'SERVER_NAME' => 'localhost:81',
			'GATEWAY_INTERFACE' => 'CGI/1.1',
			'SERVER_PORT' => '81',
			'SERVER_ADDR' => '127.0.0.1',
			'REMOTE_PORT' => '61543',
			'REMOTE_ADDR' => '127.0.0.1',
			'SCRIPT_NAME' => '/~dzuelke/ag0.11sa/index.php',
			'PATH_INFO' => '',
			'SCRIPT_FILENAME' => '/Users/dzuelke/Code/oss/agavi/branches/0.11/samples/pub/index.php',
			'DOCUMENT_ROOT' => '/Library/WebServer/Documents/',
			'REQUEST_URI' => '/~dzuelke/ag0.11sa/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342&?',
			'REDIRECT_URI' => '/~dzuelke/ag0.11sa/index.php?/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342&&',
			'QUERY_STRING' => '/en/products/buy-cheap-brains-at-agavi-dot-org/4815162342&&',
			'REQUEST_METHOD' => 'GET',
			'REDIRECT_STATUS' => '200',
			'SERVER_PROTOCOL' => 'HTTP/1.1',
			'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/523.10.3 (KHTML, like Gecko) Version/3.0.4 Safari/523.10',
			'HTTP_ACCEPT' => 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5',
			'HTTP_ACCEPT_LANGUAGE' => 'de-de',
			'HTTP_ACCEPT_ENCODING' => 'gzip, deflate',
			'HTTP_COOKIE' => 'Agavi=j37int79ma06iclrriv7lls982; locale=en',
			'HTTP_CONNECTION' => 'keep-alive',
			'HTTP_HOST' => 'localhost:81',
			'ORIG_SCRIPT_FILENAME' => '/Users/dzuelke/Sites/ag0.11sa/index.php',
			'PHP_SELF' => '/~dzuelke/ag0.11sa/index.php',
			'REQUEST_TIME' => 1194881321,
		)
	),
);