diff options
author | Steve Peters <steve@fisharerojo.org> | 2008-08-10 17:11:24 +0000 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2008-08-10 17:11:24 +0000 |
commit | e0ef849f913cc5b7d5997302b848daf4921ed4c8 (patch) | |
tree | 2834b1e1f221e82b727ad8c568c1c3ca1c409531 /lib/CGI | |
parent | 6dbcfe36a5da56178353ce547b0b782672c2362a (diff) | |
download | perl-e0ef849f913cc5b7d5997302b848daf4921ed4c8.tar.gz |
Upgrade to CGI.pm-3.40
p4raw-id: //depot/perl@34194
Diffstat (limited to 'lib/CGI')
-rw-r--r-- | lib/CGI/Fast.pm | 19 | ||||
-rwxr-xr-x | lib/CGI/t/request.t | 11 |
2 files changed, 15 insertions, 15 deletions
diff --git a/lib/CGI/Fast.pm b/lib/CGI/Fast.pm index d29feb41b5..594cad7501 100644 --- a/lib/CGI/Fast.pm +++ b/lib/CGI/Fast.pm @@ -82,18 +82,17 @@ CGI::Fast - CGI Interface for Fast CGI =head1 DESCRIPTION -CGI::Fast is a subclass of the CGI object created by -CGI.pm. It is specialized to work well with the Open Market -FastCGI standard, which greatly speeds up CGI scripts by -turning them into persistently running server processes. Scripts -that perform time-consuming initialization processes, such as -loading large modules or opening persistent database connections, -will see large performance improvements. +CGI::Fast is a subclass of the CGI object created by CGI.pm. It is +specialized to work well FCGI module, which greatly speeds up CGI +scripts by turning them into persistently running server processes. +Scripts that perform time-consuming initialization processes, such as +loading large modules or opening persistent database connections, will +see large performance improvements. =head1 OTHER PIECES OF THE PUZZLE -In order to use CGI::Fast you'll need a FastCGI-enabled Web -server. See http://www.fastcgi.com/ for details. +In order to use CGI::Fast you'll need the FCGI module. See +http://www.cpan.org/ for details. =head1 WRITING FASTCGI PERL SCRIPTS @@ -106,7 +105,7 @@ waiting some more. A typical FastCGI script will look like this: - #!/usr/local/bin/perl # must be a FastCGI version of perl! + #!/usr/bin/perl use CGI::Fast; &do_some_initialization(); while ($q = new CGI::Fast) { diff --git a/lib/CGI/t/request.t b/lib/CGI/t/request.t index d39619c490..959986bc6c 100755 --- a/lib/CGI/t/request.t +++ b/lib/CGI/t/request.t @@ -4,7 +4,7 @@ ######################### We start with some black magic to print on failure. use lib '.','../blib/lib','../blib/arch'; -BEGIN {$| = 1; print "1..33\n"; } +BEGIN {$| = 1; print "1..34\n"; } END {print "not ok 1\n" unless $loaded;} use CGI (); use Config; @@ -74,6 +74,7 @@ my $p = $q->Vars; test(29,$p->{bar} eq 'froz',"tied interface fetch"); $p->{bar} = join("\0",qw(foo bar baz)); test(30,join(' ',$q->param('bar')) eq 'foo bar baz','tied interface store'); +test(31,exists $p->{bar}); # test posting $q->_reset_globals; @@ -88,11 +89,11 @@ if ($Config{d_fork}) { exit 0; } # at this point, we're in a new (child) process - test(31,$q=new CGI,"CGI::new() from POST"); - test(32,$q->param('weather') eq 'nice',"CGI::param() from POST"); - test(33,$q->url_param('big_balls') eq 'basketball',"CGI::url_param()"); + test(32,$q=new CGI,"CGI::new() from POST"); + test(33,$q->param('weather') eq 'nice',"CGI::param() from POST"); + test(34,$q->url_param('big_balls') eq 'basketball',"CGI::url_param()"); } else { - print "ok 31 # Skip\n"; print "ok 32 # Skip\n"; print "ok 33 # Skip\n"; + print "ok 34 # Skip\n"; } |