cvs: php4 /sapi/cgi cgi_main.c
| From: | Sascha Schumann | Date: | Wed, 22 Nov 2000 04:24:04 +0000 |
| Subject: | cvs: php4 /sapi/cgi cgi_main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-2729@lists.php.net to get a copy of this message | ||
sas Tue Nov 21 20:24:04 2000 EDT
Modified files:
/php4/sapi/cgi cgi_main.c
Log:
Set the exit status from the return value of php_execute_script()
Index: php4/sapi/cgi/cgi_main.c
diff -u php4/sapi/cgi/cgi_main.c:1.87 php4/sapi/cgi/cgi_main.c:1.88
--- php4/sapi/cgi/cgi_main.c:1.87 Fri Nov 17 18:44:02 2000
+++ php4/sapi/cgi/cgi_main.c Tue Nov 21 20:24:04 2000
@@ -742,7 +742,7 @@
file_handle.free_filename = 0;
switch (behavior) {
case PHP_MODE_STANDARD:
- php_execute_script(&file_handle CLS_CC ELS_CC PLS_CC);
+ exit_status = php_execute_script(&file_handle CLS_CC ELS_CC PLS_CC);
break;
case PHP_MODE_LINT:
exit_status = php_lint_script(&file_handle CLS_CC ELS_CC PLS_CC);