summaryrefslogtreecommitdiff
path: root/ext/standard/ftok.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-08-16 11:37:14 +0200
committerAnatol Belski <ab@php.net>2014-08-16 11:37:14 +0200
commitcb25136f4ef1042295650475b2c20ace81e2b9b7 (patch)
tree9d6a509c80f2ac1e094cd9d42772654781a79715 /ext/standard/ftok.c
parentf790043e30513c56f108289ec44ea6eb493f7773 (diff)
downloadphp-git-cb25136f4ef1042295650475b2c20ace81e2b9b7.tar.gz
fix macros in the 5 basic extensions
Diffstat (limited to 'ext/standard/ftok.c')
-rw-r--r--ext/standard/ftok.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/ftok.c b/ext/standard/ftok.c
index 4833bddc01..709d90840b 100644
--- a/ext/standard/ftok.c
+++ b/ext/standard/ftok.c
@@ -41,16 +41,16 @@ PHP_FUNCTION(ftok)
if (pathname_len == 0){
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Pathname is invalid");
- RETURN_LONG(-1);
+ RETURN_INT(-1);
}
if (proj_len != 1){
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Project identifier is invalid");
- RETURN_LONG(-1);
+ RETURN_INT(-1);
}
if (php_check_open_basedir(pathname TSRMLS_CC)) {
- RETURN_LONG(-1);
+ RETURN_INT(-1);
}
k = ftok(pathname, proj[0]);
@@ -58,7 +58,7 @@ PHP_FUNCTION(ftok)
php_error_docref(NULL TSRMLS_CC, E_WARNING, "ftok() failed - %s", strerror(errno));
}
- RETURN_LONG(k);
+ RETURN_INT(k);
}
/* }}} */
#endif