summaryrefslogtreecommitdiff
path: root/ext/standard/link.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-08-11 17:03:37 +0000
committerZeev Suraski <zeev@php.net>2001-08-11 17:03:37 +0000
commitc0404f46311e5b519dc51697e181bb39ca8d09d2 (patch)
tree291959f75d7b2a3f3e171830ed6eea76b5d98b4d /ext/standard/link.c
parentf6f6c4d7e63d2eaf4ece7aee66f46a013b29bffa (diff)
downloadphp-git-c0404f46311e5b519dc51697e181bb39ca8d09d2.tar.gz
Whitespace
Diffstat (limited to 'ext/standard/link.c')
-rw-r--r--ext/standard/link.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/link.c b/ext/standard/link.c
index e002018fc8..69b28ba9c6 100644
--- a/ext/standard/link.c
+++ b/ext/standard/link.c
@@ -70,7 +70,7 @@ PHP_FUNCTION(readlink)
}
/* Append NULL to the end of the string */
buff[ret] = '\0';
- RETURN_STRING(buff,1);
+ RETURN_STRING(buff, 1);
}
/* }}} */
@@ -112,7 +112,7 @@ PHP_FUNCTION(symlink)
if (PG(safe_mode) && !php_checkuid((*topath)->value.str.val, NULL, CHECKUID_CHECK_FILE_AND_DIR)) {
RETURN_FALSE;
}
- if (!strncasecmp((*topath)->value.str.val,"http://",7) || !strncasecmp((*topath)->value.str.val,"ftp://",6)) {
+ if (!strncasecmp((*topath)->value.str.val, "http://", 7) || !strncasecmp((*topath)->value.str.val, "ftp://", 6)) {
php_error(E_WARNING, "Unable to symlink to a URL");
RETURN_FALSE;
}
@@ -142,7 +142,7 @@ PHP_FUNCTION(link)
if (PG(safe_mode) && !php_checkuid((*topath)->value.str.val, NULL, CHECKUID_CHECK_FILE_AND_DIR)) {
RETURN_FALSE;
}
- if (!strncasecmp((*topath)->value.str.val,"http://",7) || !strncasecmp((*topath)->value.str.val,"ftp://",6)) {
+ if (!strncasecmp((*topath)->value.str.val, "http://", 7) || !strncasecmp((*topath)->value.str.val, "ftp://", 6)) {
php_error(E_WARNING, "Unable to link to a URL");
RETURN_FALSE;
}