cvs: php4 /sapi/cli php_cli.c

From: Date: Sun, 26 May 2002 12:43:21 +0000
Subject: cvs: php4 /sapi/cli php_cli.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-12102@lists.php.net to get a copy of this message
edink Sun May 26 08:43:21 2002 EDT Modified files: /php4/sapi/cli php_cli.c Log: Due to the way Zend handles exit() we cannot rely on the return code of php_execute_script. Index: php4/sapi/cli/php_cli.c diff -u php4/sapi/cli/php_cli.c:1.27 php4/sapi/cli/php_cli.c:1.28 --- php4/sapi/cli/php_cli.c:1.27 Sun May 26 08:20:35 2002 +++ php4/sapi/cli/php_cli.c Sun May 26 08:43:20 2002 @@ -671,11 +671,8 @@ if (strcmp(file_handle.filename, "-")) { cli_register_file_handles(TSRMLS_C); } - if (php_execute_script(&file_handle TSRMLS_CC)) { - exit_status = EG(exit_status); - } else { - exit_status = 255; - } + php_execute_script(&file_handle TSRMLS_CC); + exit_status = EG(exit_status); break; case PHP_MODE_LINT: PG(during_request_startup) = 0;

« previous php.cvs (#12102) next »