summaryrefslogtreecommitdiff
path: root/cgi_main.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-05-21 19:22:17 +0000
committerZeev Suraski <zeev@php.net>1999-05-21 19:22:17 +0000
commitc57c0e9cd58da7c583b029e9709d5420f286c31e (patch)
treef0cc734ea865f3ed63f53a224aa82ac0709407c3 /cgi_main.c
parentf33c22c05548486d34bbe02d548cdfd680985f08 (diff)
downloadphp-git-c57c0e9cd58da7c583b029e9709d5420f286c31e.tar.gz
* Fix error handling startup on the thread-safe CGI version
* A failed require() is a compile-time error, consider it as one
Diffstat (limited to 'cgi_main.c')
-rw-r--r--cgi_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cgi_main.c b/cgi_main.c
index a2e37a4f03..fb053dc709 100644
--- a/cgi_main.c
+++ b/cgi_main.c
@@ -261,6 +261,9 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
executor_globals = ts_resource(executor_globals_id);
core_globals = ts_resource(core_globals_id);
sapi_globals = ts_resource(sapi_globals_id);
+ if (setjmp(EG(bailout))!=0) {
+ return -1;
+ }
#endif
init_request_info(SLS_C);