You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2017/07/01 12:24:04 UTC

svn commit: r1800494 - /httpd/test/framework/trunk/t/modules/proxy_fcgi.t

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)