]> granicus.if.org Git - php/commitdiff
Fixed bug #20423.
authorIlia Alshanetsky <iliaa@php.net>
Thu, 14 Nov 2002 16:20:23 +0000 (16:20 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 14 Nov 2002 16:20:23 +0000 (16:20 +0000)
ext/standard/link.c

index dcafb604eb13d65d25f069091efb449077854231..0d1aabfdcd97ac1826573fb758b3eb352103dbc8 100644 (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;