1
0
mirror of https://github.com/php/php-src.git synced 2026-04-19 22:11:12 +02:00
This commit is contained in:
Ilia Alshanetsky
2002-11-14 16:20:23 +00:00
parent f986cb84f3
commit 5f7de8bf5b

View File

@@ -146,7 +146,7 @@ PHP_FUNCTION(symlink)
RETURN_FALSE;
}
ret = symlink(dest_p, source_p);
ret = symlink(Z_STRVAL_PP(topath), Z_STRVAL_PP(frompath));
if (ret == -1) {
php_error(E_WARNING, "Symlink failed (%s)", strerror(errno));
RETURN_FALSE;
@@ -197,7 +197,7 @@ PHP_FUNCTION(link)
RETURN_FALSE;
}
ret = link(dest_p, source_p);
ret = link(Z_STRVAL_PP(topath), Z_STRVAL_PP(frompath));
if (ret == -1) {
php_error(E_WARNING, "Link failed (%s)", strerror(errno));
RETURN_FALSE;