summaryrefslogtreecommitdiff
path: root/ext/standard/link.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-12-05 20:59:49 +0000
committerMarcus Boerger <helly@php.net>2002-12-05 20:59:49 +0000
commit49a99a98f4ce898c891cfa6fa313570de58a40db (patch)
tree3bfeac68dd836842177840e3c7b67e8e1235e0dc /ext/standard/link.c
parent3cf581b1b3dbd992669ae3c8f80f71db576a2a9d (diff)
downloadphp-git-49a99a98f4ce898c891cfa6fa313570de58a40db.tar.gz
-php_error -> php_error_docref
-removed some cases where emalloc result was tested
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 0730c4f9b6..07388f892c 100644
--- a/ext/standard/link.c
+++ b/ext/standard/link.c
@@ -68,7 +68,7 @@ PHP_FUNCTION(readlink)
ret = readlink(Z_STRVAL_PP(filename), buff, MAXPATHLEN-1);
if (ret == -1) {
- php_error(E_WARNING, "readlink failed (%s)", strerror(errno));
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", strerror(errno));
RETURN_FALSE;
}
/* Append NULL to the end of the string */
@@ -97,7 +97,7 @@ PHP_FUNCTION(linkinfo)
ret = VCWD_LSTAT(Z_STRVAL_PP(filename), &sb);
if (ret == -1) {
- php_error(E_WARNING, "Linkinfo failed (%s)", strerror(errno));
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", strerror(errno));
RETURN_LONG(-1L);
}
@@ -126,7 +126,7 @@ PHP_FUNCTION(symlink)
if (php_stream_locate_url_wrapper(source_p, NULL, STREAM_LOCATE_WRAPPERS_ONLY TSRMLS_CC) ||
php_stream_locate_url_wrapper(dest_p, NULL, STREAM_LOCATE_WRAPPERS_ONLY TSRMLS_CC) )
{
- php_error(E_WARNING, "Unable to symlink to a URL");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to symlink to a URL");
RETURN_FALSE;
}
@@ -152,7 +152,7 @@ PHP_FUNCTION(symlink)
ret = symlink(dest_p, source_p);
#endif
if (ret == -1) {
- php_error(E_WARNING, "Symlink failed (%s)", strerror(errno));
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", strerror(errno));
RETURN_FALSE;
}
@@ -181,7 +181,7 @@ PHP_FUNCTION(link)
if (php_stream_locate_url_wrapper(source_p, NULL, STREAM_LOCATE_WRAPPERS_ONLY TSRMLS_CC) ||
php_stream_locate_url_wrapper(dest_p, NULL, STREAM_LOCATE_WRAPPERS_ONLY TSRMLS_CC) )
{
- php_error(E_WARNING, "Unable to link to a URL");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to link to a URL");
RETURN_FALSE;
}
@@ -207,7 +207,7 @@ PHP_FUNCTION(link)
ret = link(dest_p, source_p);
#endif
if (ret == -1) {
- php_error(E_WARNING, "Link failed (%s)", strerror(errno));
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", strerror(errno));
RETURN_FALSE;
}