cvs: php4 /ext/standard link.c

From: Date: Thu, 14 Nov 2002 16:20:23 +0000
Subject: cvs: php4 /ext/standard link.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-16158@lists.php.net to get a copy of this message
iliaa Thu Nov 14 11:20:23 2002 EDT Modified files: /php4/ext/standard link.c Log: Fixed bug #20423. Index: php4/ext/standard/link.c diff -u php4/ext/standard/link.c:1.42 php4/ext/standard/link.c:1.43 --- php4/ext/standard/link.c:1.42 Mon Nov 4 18:24:15 2002 +++ php4/ext/standard/link.c Thu Nov 14 11:20:23 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: link.c,v 1.42 2002/11/04 23:24:15 iliaa Exp $ */ +/* $Id: link.c,v 1.43 2002/11/14 16:20:23 iliaa Exp $ */ #include "php.h" #include "php_filestat.h" @@ -146,7 +146,7 @@ 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 @@ 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;

« previous php.cvs (#16158) next »