summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/phpdbg.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2014-12-22 00:10:46 -0500
committerXinchen Hui <laruence@php.net>2014-12-22 00:10:46 -0500
commitb5b617674e035343ce836b79c2cc8a0ce8aece64 (patch)
tree9b726f0e31d5ef5a6ef72af1c18970d16833dd48 /sapi/phpdbg/phpdbg.c
parentcc4a198d1938c59f30f899d4270242c738253053 (diff)
downloadphp-git-b5b617674e035343ce836b79c2cc8a0ce8aece64.tar.gz
Micro optimaztion (yeah, I know compiler supposed to do that)
Diffstat (limited to 'sapi/phpdbg/phpdbg.c')
-rw-r--r--sapi/phpdbg/phpdbg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c
index 70b3371341..f249f57b87 100644
--- a/sapi/phpdbg/phpdbg.c
+++ b/sapi/phpdbg/phpdbg.c
@@ -283,16 +283,16 @@ static PHP_FUNCTION(phpdbg_exec)
PHPDBG_G(exec_len) = exec->len;
if (result) {
- ZVAL_BOOL(return_value, 1);
+ ZVAL_TRUE(return_value);
}
} else {
zend_error(E_WARNING, "Failed to set execution context (%s), not a regular file or symlink", exec);
- ZVAL_BOOL(return_value, 0);
+ ZVAL_FALSE(return_value);
}
} else {
zend_error(E_WARNING, "Failed to set execution context (%s) the file does not exist", exec);
- ZVAL_BOOL(return_value, 0);
+ ZVAL_FALSE(return_value);
}
}
} /* }}} */