1
0
Fork 0
apache2/debian/perl-framework/t/php/pathinfo.t
Daniel Baumann f56986e2d9
Adding debian version 2.4.63-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 11:01:27 +02:00

22 lines
668 B
Perl

use strict;
use warnings FATAL => 'all';
use Apache::Test;
use Apache::TestRequest;
use Apache::TestUtil;
plan tests => 5, sub { need_php() && need_min_apache_version('2.0.0'); };
my $r;
$r = GET("/apache/acceptpathinfo/on/info.php/fish/food");
ok t_cmp($r->code, 200, "PATH_INFO accepted by default");
ok t_cmp($r->content, "_/fish/food_", "PATH_INFO parsed OK");
$r = GET("/apache/acceptpathinfo/off/info.php/fish/food");
ok t_cmp($r->code, 404, "PATH_INFO rejected if disabled");
$r = GET("/apache/acceptpathinfo/on/info.php/fish/food");
ok t_cmp($r->code, 200, "PATH_INFO accepted if enabled");
ok t_cmp($r->content, "_/fish/food_", "PATH_INFO parsed OK");