summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-10-04 17:17:01 +0000
committerMarcus Boerger <helly@php.net>2002-10-04 17:17:01 +0000
commit3d6ecdeff05817800756c51ef6bc96a7cdaba666 (patch)
tree9a40ea061d8c9634b93fbb0d3165e8348607d7a2
parent518e61de97699f74c982e72d78288f9331cacfe0 (diff)
downloadphp-git-3d6ecdeff05817800756c51ef6bc96a7cdaba666.tar.gz
return FALSE on error
-rw-r--r--ext/standard/basic_functions.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index afe4eb9dfc..2576b8e91e 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -1377,7 +1377,7 @@ PHP_FUNCTION(getopt)
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s",
&options, &options_len) == FAILURE) {
- return;
+ RETURN_FALSE;
}
/*
@@ -2031,7 +2031,7 @@ PHP_FUNCTION(highlight_file)
zend_bool i = 0;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|b", &filename, &i) == FAILURE) {
- return;
+ RETURN_FALSE;
}
convert_to_string(filename);
@@ -2072,7 +2072,7 @@ PHP_FUNCTION(highlight_string)
zend_bool i = 0;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|b", &expr, &i) == FAILURE) {
- return;
+ RETURN_FALSE;
}
convert_to_string(expr);
@@ -2170,7 +2170,7 @@ PHP_FUNCTION(ini_get_all)
zend_module_entry *module;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &extname, &extname_len) == FAILURE) {
- return;
+ RETURN_FALSE;
}
zend_ini_sort_entries(TSRMLS_C);
@@ -2274,7 +2274,7 @@ PHP_FUNCTION(print_r)
zend_bool i = 0;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|b", &var, &i) == FAILURE) {
- return;
+ RETURN_FALSE;
}
if (i) {
@@ -2409,7 +2409,7 @@ PHP_FUNCTION(getprotobyname)
if (ent == NULL) {
Z_LVAL_P(return_value) = -1;
Z_TYPE_P(return_value) = IS_LONG;
- return;
+ RETURN_FALSE;
}
RETURN_LONG(ent->p_proto);
@@ -2696,7 +2696,7 @@ PHP_FUNCTION(parse_ini_file)
fh.handle.fp = VCWD_FOPEN(Z_STRVAL_PP(filename), "r");
if (!fh.handle.fp) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot open '%s' for reading", Z_STRVAL_PP(filename));
- return;
+ RETURN_FALSE;
}
Z_TYPE(fh) = ZEND_HANDLE_FP;
fh.filename = Z_STRVAL_PP(filename);