httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1800429 - /httpd/test/framework/trunk/t/modules/proxy_fcgi.t
Date Fri, 30 Jun 2017 15:01:26 GMT
Author: jim
Date: Fri Jun 30 15:01:26 2017
New Revision: 1800429

URL: http://svn.apache.org/viewvc?rev=1800429&view=rev
Log:
As per my reading of RFC3875, this is what PATH_TRANSLATED
should be... also checked via PR51517 which also seems
to indicate that.

Modified:
    httpd/test/framework/trunk/t/modules/proxy_fcgi.t

Modified: httpd/test/framework/trunk/t/modules/proxy_fcgi.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/modules/proxy_fcgi.t?rev=1800429&r1=1800428&r2=1800429&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/modules/proxy_fcgi.t (original)
+++ httpd/test/framework/trunk/t/modules/proxy_fcgi.t Fri Jun 30 15:01:26 2017
@@ -13,7 +13,7 @@ my $have_php_fpm = `php-fpm -v` =~ /fpm-
 plan tests => (7 * $have_fcgisetenvif) + (2 * $have_fcgibackendtype) +
                (2 * $have_fcgibackendtype * have_module('rewrite')) +
                (7 * have_module('rewrite')) + (7 * have_module('actions')) +
-               (4 * $have_php_fpm * have_module('actions')) + 2,
+               (5 * $have_php_fpm * have_module('actions')) + 2,
      need (
         'mod_proxy_fcgi',
         'FCGI',
@@ -245,9 +245,15 @@ if (have_module('actions')) {
             exit;
         }
         $envs = run_fcgi_envvar_request(-1, "/php/fpm/action/sub2/test.php/foo/bar?query",
"PHP-FPM");
-        ok t_cmp($envs->{'SCRIPT_NAME'}, '/php/fpm/action/sub2/test.php', "PHP-FPM sets
correct SCRIPT_NAME");
-        ok t_cmp($envs->{'PATH_INFO'}, '/foo/bar', "PHP-FPM sets correct PATH_INFO");
-        ok t_cmp($envs->{'QUERY_STRING'}, 'query', "PHP-FPM sets correct QUERY_STRING");
+        ok t_cmp($envs->{'SCRIPT_NAME'}, '/php/fpm/action/sub2/test.php',
+                "PHP-FPM sets correct SCRIPT_NAME");
+        ok t_cmp($envs->{'PATH_INFO'}, '/foo/bar',
+                "PHP-FPM sets correct PATH_INFO");
+        ok t_cmp($envs->{'QUERY_STRING'}, 'query',
+                "PHP-FPM sets correct QUERY_STRING");
+        ok t_cmp($envs->{'PATH_TRANSLATED'}, $docroot . '/foo/bar',
+                "PHP-FPM sets correct PATH_TRANSLATED");
+
 
         # TODO: Add more tests here
 



Mime
View raw message