diff options
author | Derick Rethans <derick@php.net> | 2002-02-14 20:16:08 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2002-02-14 20:16:08 +0000 |
commit | 86fa2d39379752044287530f31f21532380eeb19 (patch) | |
tree | 6e548f359e090c21cff3472c3d0330b28894e950 /sapi/cgi/cgi_main.c | |
parent | 48f688a261e0dc1d2fcbb418090ce9b8b6de9399 (diff) | |
download | php-git-86fa2d39379752044287530f31f21532380eeb19.tar.gz |
- Let php_execute_script return 0 on failure and 1 on sucess, and change
SAPIs accordingly. (Andrei, Derick)
Diffstat (limited to 'sapi/cgi/cgi_main.c')
-rw-r--r-- | sapi/cgi/cgi_main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 71fc3289f4..41839cb4ad 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -756,7 +756,11 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine switch (behavior) { case PHP_MODE_STANDARD: - exit_status = php_execute_script(&file_handle TSRMLS_CC); + if (php_execute_script(&file_handle TSRMLS_CC)) { + exit_status = EG(exit_status); + } else { + exit_status = -1; + } break; case PHP_MODE_LINT: PG(during_request_startup) = 0; |