httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1800494 - /httpd/test/framework/trunk/t/modules/proxy_fcgi.t
Date Sat, 01 Jul 2017 12:24:04 GMT
Author: jim
Date: Sat Jul  1 12:24:04 2017
New Revision: 1800494

URL: http://svn.apache.org/viewvc?rev=1800494&view=rev
Log:
Check that if PATH_INFO is undef/empty, PATH_TRANSLATED is undef

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=1800494&r1=1800493&r2=1800494&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/modules/proxy_fcgi.t (original)
+++ httpd/test/framework/trunk/t/modules/proxy_fcgi.t Sat Jul  1 12:24:04 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')) +
-               (12 * $have_php_fpm * have_module('actions')) + 2,
+               (15 * $have_php_fpm * have_module('actions')) + 2,
      need (
         'mod_proxy_fcgi',
         'FCGI',
@@ -268,6 +268,12 @@ if (have_module('actions')) {
         ok t_cmp($envs->{'FCGI_ROLE'}, 'RESPONDER',
                 "ProxyPass PHP-FPM sets correct FCGI_ROLE");
 
+        $envs = run_fcgi_envvar_request(-1, "/php-fpm-pp/php/fpm/pp/sub1/test.php", "PHP-FPM");
+        ok t_cmp($envs->{'PATH_INFO'}, undef,
+                "ProxyPass PHP-FPM sets correct empty PATH_INFO");
+        ok t_cmp($envs->{'PATH_TRANSLATED'}, undef,
+                "ProxyPass PHP-FPM does not set PATH_TRANSLATED w/ empty PATH_INFO");
+
         # TODO: Add more tests here
 
         # Clean up php-fpm process(es)



Mime
View raw message