summaryrefslogtreecommitdiff
path: root/ext/standard/link.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/link.c')
-rw-r--r--ext/standard/link.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/standard/link.c b/ext/standard/link.c
index 7bdb48e973..6d262d4de0 100644
--- a/ext/standard/link.c
+++ b/ext/standard/link.c
@@ -129,7 +129,7 @@ PHP_FUNCTION(symlink)
if (zend_parse_parameters(ZEND_NUM_ARGS(), "pp", &topath, &topath_len, &frompath, &frompath_len) == FAILURE) {
return;
}
-
+
if (!expand_filepath(frompath, source_p)) {
php_error_docref(NULL, E_WARNING, "No such file or directory");
RETURN_FALSE;
@@ -144,7 +144,7 @@ PHP_FUNCTION(symlink)
}
if (php_stream_locate_url_wrapper(source_p, NULL, STREAM_LOCATE_WRAPPERS_ONLY) ||
- php_stream_locate_url_wrapper(dest_p, NULL, STREAM_LOCATE_WRAPPERS_ONLY) )
+ php_stream_locate_url_wrapper(dest_p, NULL, STREAM_LOCATE_WRAPPERS_ONLY) )
{
php_error_docref(NULL, E_WARNING, "Unable to symlink to a URL");
RETURN_FALSE;
@@ -192,7 +192,7 @@ PHP_FUNCTION(link)
}
if (php_stream_locate_url_wrapper(source_p, NULL, STREAM_LOCATE_WRAPPERS_ONLY) ||
- php_stream_locate_url_wrapper(dest_p, NULL, STREAM_LOCATE_WRAPPERS_ONLY) )
+ php_stream_locate_url_wrapper(dest_p, NULL, STREAM_LOCATE_WRAPPERS_ONLY) )
{
php_error_docref(NULL, E_WARNING, "Unable to link to a URL");
RETURN_FALSE;
@@ -208,9 +208,9 @@ PHP_FUNCTION(link)
#ifndef ZTS
ret = link(topath, frompath);
-#else
- ret = link(dest_p, source_p);
-#endif
+#else
+ ret = link(dest_p, source_p);
+#endif
if (ret == -1) {
php_error_docref(NULL, E_WARNING, "%s", strerror(errno));
RETURN_FALSE;