summaryrefslogtreecommitdiff
path: root/sapi/cli/php_cli.c
diff options
context:
space:
mode:
authorAnthony Ferrara <ircmaxell@gmail.com>2012-09-04 10:29:22 -0400
committerAnthony Ferrara <ircmaxell@gmail.com>2012-09-04 10:29:22 -0400
commit824f1f45818096eff0e022ba2a1cbc2071343c9a (patch)
tree821b106513b7835d8e7fad8960446167142028f9 /sapi/cli/php_cli.c
parente05413ca594ff10fd93d40429cb598c2e109edf4 (diff)
parent4b206126aca2ad9181abe65d70367680a4bc4c03 (diff)
downloadphp-git-824f1f45818096eff0e022ba2a1cbc2071343c9a.tar.gz
Merge remote branch 'upstream/master' into hash_password
* upstream/master: (393 commits) forked two tests for windows Fixed bug #50997 (SOAP Error when trying to submit 2nd Element of a choice) Fixed bug #50997 (SOAP Error when trying to submit 2nd Element of a choice). Fixed bug #50997 (SOAP Error when trying to submit 2nd Element of a choice). Fixed bug #50997 (SOAP Error when trying to submit 2nd Element of a choice) Fixed bug #50997 (SOAP Error when trying to submit 2nd Element of a choice) Bug #49510: Boolean validation fails with FILTER_NULL_ON_FAILURE with empty string or false Implemented ReflectionFunction::isGenerator() Allow null as a default value for length in mb_substr() and mb_strcut() Allow null as a default value for length in mb_substr() and mb_strcut() folder Initializing optional argument description in assert() Initializing optional argument description in assert() Fix test failed due to new Token T_YIELD fix NEWS Fix leak when yielding array as key Drop obsolete test Remove extra blank in notice message, should act as same as vm Fixed bug #62987 (Assigning to ArrayObject[null][something] overrides all undefined variables) assert() user message ...
Diffstat (limited to 'sapi/cli/php_cli.c')
-rw-r--r--sapi/cli/php_cli.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index 2cdd1aac6d..f9bf3ee60b 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -1167,15 +1167,15 @@ static int do_cli(int argc, char **argv TSRMLS_DC) /* {{{ */
} zend_end_try();
out:
- if (exit_status == 0) {
- exit_status = EG(exit_status);
- }
if (request_started) {
php_request_shutdown((void *) 0);
}
if (translated_path) {
free(translated_path);
}
+ if (exit_status == 0) {
+ exit_status = EG(exit_status);
+ }
return exit_status;
err:
sapi_deactivate(TSRMLS_C);