Author: jorton
Date: Mon Jan 17 03:44:51 2005
New Revision: 125409

URL: http://svn.apache.org/viewcvs?view=rev&rev=125409
Log:
Regression test for http://bugs.php.net/bug.php?id=31519.

Added:
   httpd/test/trunk/perl-framework/t/htdocs/php/status.php
   httpd/test/trunk/perl-framework/t/php/status.t

Added: httpd/test/trunk/perl-framework/t/htdocs/php/status.php
Url: 
http://svn.apache.org/viewcvs/httpd/test/trunk/perl-framework/t/htdocs/php/status.php?view=auto&rev=125409
==============================================================================
--- (empty file)
+++ httpd/test/trunk/perl-framework/t/htdocs/php/status.php     Mon Jan 17 
03:44:51 2005
@@ -0,0 +1,5 @@
+<?php
+$rc = $_GET['code'];
+header("HTTP/1.1 $rc Custom Status");
+flush();
+?>
\ No newline at end of file

Added: httpd/test/trunk/perl-framework/t/php/status.t
Url: 
http://svn.apache.org/viewcvs/httpd/test/trunk/perl-framework/t/php/status.t?view=auto&rev=125409
==============================================================================
--- (empty file)
+++ httpd/test/trunk/perl-framework/t/php/status.t      Mon Jan 17 03:44:51 2005
@@ -0,0 +1,15 @@
+use strict;
+use warnings FATAL => 'all';
+
+use Apache::Test;
+use Apache::TestRequest;
+use Apache::TestUtil;
+
+my @codes = (404, 599);
+
+plan tests => @codes + 0, need_php;
+
+foreach my $code (@codes) {
+    ok t_cmp(GET_RC("/php/status.php?code=$code"), $code,
+             "regression test for http://bugs.php.net/bug.php?id=31519";);
+}

Reply via email to