stas 2004/03/03 15:33:53
Modified: src/docs/2.0/api/ModPerl Registry.pod
src/docs/2.0/user/coding coding.pod
src/docs/2.0/user/install install.pod
src/docs/2.0/user/porting compat.pod
Log:
$ENV{GATEWAY_INTERFACE} is no longer special
Revision Changes Path
1.4 +0 -2 modperl-docs/src/docs/2.0/api/ModPerl/Registry.pod
Index: Registry.pod
===================================================================
RCS file: /home/cvs/modperl-docs/src/docs/2.0/api/ModPerl/Registry.pod,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -u -r1.3 -r1.4
--- Registry.pod 6 Jun 2003 03:11:55 -0000 1.3
+++ Registry.pod 3 Mar 2004 23:33:52 -0000 1.4
@@ -71,8 +71,6 @@
The Apache function `exit' overrides the Perl core built-in function.
-The environment variable B<GATEWAY_INTERFACE> is set to C<CGI-Perl/1.1>.
-
=head1 Commandline Switches In First Line
Normally when a Perl script is run from the command line or under CGI,
1.31 +2 -6 modperl-docs/src/docs/2.0/user/coding/coding.pod
Index: coding.pod
===================================================================
RCS file: /home/cvs/modperl-docs/src/docs/2.0/user/coding/coding.pod,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -u -r1.30 -r1.31
--- coding.pod 2 Mar 2004 21:05:32 -0000 1.30
+++ coding.pod 3 Mar 2004 23:33:52 -0000 1.31
@@ -72,12 +72,6 @@
use constant MP2 => ($mod_perl::VERSION >= 1.99);
# die "I want mod_perl 2.0!" unless MP2;
-=item *
-
-C<$ENV{GATEWAY_INTERFACE}> - is set to C<CGI-Perl/1.1> for
-compatibility with mod_perl 1.0. This variable is deprecated in
-mod_perl 2.0. Use C<$ENV{MOD_PERL}> instead.
-
=back
mod_perl passes (exports) the following shell environment variables
@@ -290,6 +284,8 @@
C<L<$r-E<gt>assbackwards|docs::2.0::api::Apache::RequestRec/C_assbackwards_>>
method. Notice that registry handlers will do that for you if the
script's name start with the C<nph-> prefix.
+
+
=head3 Forcing HTTP Response Headers Out
1.52 +0 -15 modperl-docs/src/docs/2.0/user/install/install.pod
Index: install.pod
===================================================================
RCS file: /home/cvs/modperl-docs/src/docs/2.0/user/install/install.pod,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -u -r1.51 -r1.52
--- install.pod 19 Jan 2004 20:04:32 -0000 1.51
+++ install.pod 3 Mar 2004 23:33:53 -0000 1.52
@@ -410,21 +410,6 @@
=item *
-Environment variable C<GATEWAY_INTERFACE> will be enabled only if
-C<PerlOptions +SetupEnv> is enabled and its value would be the
-default:
-
- CGI/1.1
-
-and not:
-
- CGI-Perl/1.1
-
-The use of C<$ENV{GATEWAY_INTERFACE}> is deprecated and the existance
-of C<$ENV{MOD_PERL}> should be checked instead.
-
-=item *
-
Deprecated special variable, C<$Apache::__T> won't be available. Use
C<${^TAINT}> instead.
1.43 +12 -6 modperl-docs/src/docs/2.0/user/porting/compat.pod
Index: compat.pod
===================================================================
RCS file: /home/cvs/modperl-docs/src/docs/2.0/user/porting/compat.pod,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -u -r1.42 -r1.43
--- compat.pod 24 Feb 2004 02:22:28 -0000 1.42
+++ compat.pod 3 Mar 2004 23:33:53 -0000 1.43
@@ -401,15 +401,21 @@
=head2 C<$ENV{GATEWAY_INTERFACE}>
-The environment variable C<$ENV{GATEWAY_INTERFACE}> is deprecated in
-mod_perl 2.0 (See:
-C<L<MP_COMPAT_1X=0|docs::2.0::user::install::install/MP_COMPAT_1X>>). Instead
-use C<$ENV{MOD_PERL}> (available in both mod_perl generations), which
-is set to something like this:
+The environment variable C<$ENV{GATEWAY_INTERFACE}> is not special in
+mod_perl 2.0, but the same as any other CGI environment variables.
+
+Instead use C<$ENV{MOD_PERL}> (available in both mod_perl
+generations), which is set to the mod_perl version, like so:
mod_perl/1.99_03-dev
-However to check the version it's better to use C<$mod_perl::VERSION>:
+Therefore in order to check whether you are running under mod_perl,
+you'd say:
+
+ if ($ENV{MOD_PERL}) { ... }
+
+To check for a specific version it's better to use
+C<$mod_perl::VERSION>:
use mod_perl;
use constant MP2 => ($mod_perl::VERSION >= 1.99);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]