richter 02/05/27 23:59:52
Modified: . Tag: Embperl2c MANIFEST README.v2
Added: test/cmp Tag: Embperl2c exitcomp.htm exitreq.htm
test/html Tag: Embperl2c exitcomp.htm exitreq.htm
exitsub.htm
Log:
exit handling
Revision Changes Path
No revision
No revision
1.50.4.48 +5 -0 embperl/MANIFEST
Index: MANIFEST
===================================================================
RCS file: /home/cvs/embperl/MANIFEST,v
retrieving revision 1.50.4.47
retrieving revision 1.50.4.48
diff -u -r1.50.4.47 -r1.50.4.48
--- MANIFEST 28 May 2002 06:56:03 -0000 1.50.4.47
+++ MANIFEST 28 May 2002 06:59:51 -0000 1.50.4.48
@@ -225,6 +225,8 @@
test/cmp/exit.htm
test/cmp/exit2.htm
test/cmp/exit3.htm
+test/cmp/exitcomp.htm
+test/cmp/exitreq.htm
test/cmp/getbsess.htm
test/cmp/getdelsess.htm
test/cmp/getnosess.htm
@@ -420,6 +422,9 @@
test/html/exit.htm
test/html/exit2.htm
test/html/exit3.htm
+test/html/exitcomp.htm
+test/html/exitreq.htm
+test/html/exitsub.htm
test/html/getbsess.htm
test/html/getdelsess.htm
test/html/getnosess.htm
1.1.4.30 +15 -2 embperl/Attic/README.v2
Index: README.v2
===================================================================
RCS file: /home/cvs/embperl/Attic/README.v2,v
retrieving revision 1.1.4.29
retrieving revision 1.1.4.30
diff -u -r1.1.4.29 -r1.1.4.30
--- README.v2 21 Mar 2002 06:04:05 -0000 1.1.4.29
+++ README.v2 28 May 2002 06:59:51 -0000 1.1.4.30
@@ -9,7 +9,7 @@
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
-$Id: README.v2,v 1.1.4.29 2002/03/21 06:04:05 richter Exp $
+$Id: README.v2,v 1.1.4.30 2002/05/28 06:59:51 richter Exp $
### !! IMPORTANT !! IMPORTANT !! IMPORTANT !! IMPORTANT !! IMPORTANT !!
@@ -205,6 +205,7 @@
- [- exit -]
exit works not inside of [$ sub $], outside it works
+ (It also can now exit the whole request, see below)
- safe namespaces
@@ -637,8 +638,20 @@
For CGI mode still use enviroment variables.
+exit
+----
-
+B<exit> will override the normal Perl exit in every Embperl document. Calling
+exit will immediately stop any further processing of that file and send the
+already-done work to the output/browser.
+
+B<NOTE 1:> If you are inside of an Execute, Embperl will only exit this Execute,
but
+the file which called the file containing the exit with Execute will continue. If
+you want to exit the whole request, call exit with an argument e.g. exit (200)
+
+B<NOTE 2:> If you write a module which should work with Embperl under mod_perl,
+you must use Embperl::exit instead of the normal Perl exit. (In 1.3.x it was
+Apache::Exit)
Recipes
No revision
No revision
1.1.2.1 +24 -0 embperl/test/cmp/Attic/exitcomp.htm
1.1.2.1 +20 -0 embperl/test/cmp/Attic/exitreq.htm
No revision
No revision
1.1.2.1 +17 -0 embperl/test/html/Attic/exitcomp.htm
1.1.2.1 +17 -0 embperl/test/html/Attic/exitreq.htm
1.1.2.1 +27 -0 embperl/test/html/Attic/exitsub.htm
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]