mirror of
https://github.com/php/php-src.git
synced 2026-04-19 22:11:12 +02:00
Fixed bug #20423.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user