PHP_FE(rawurlencode, NULL)
PHP_FE(rawurldecode, NULL)
+#ifdef HAVE_SYMLINK
PHP_FE(readlink, NULL)
PHP_FE(linkinfo, NULL)
PHP_FE(symlink, NULL)
PHP_FE(link, NULL)
PHP_FE(unlink, NULL)
+#else
+ PHP_FALIAS(readlink, warn_not_available, NULL)
+ PHP_FALIAS(linkinfo, warn_not_available, NULL)
+ PHP_FALIAS(symlink, warn_not_available, NULL)
+ PHP_FALIAS(link, warn_not_available, NULL)
+ PHP_FALIAS(unlink, warn_not_available, NULL)
+#endif
PHP_FE(exec, second_and_third_args_force_ref)
PHP_FE(system, second_arg_force_ref)
#include "php_filestat.h"
#include "php_globals.h"
+#ifdef HAVE_SYMLINK
+
#include <stdlib.h>
#if HAVE_UNISTD_H
#include <unistd.h>
Return the target of a symbolic link */
PHP_FUNCTION(readlink)
{
-#if HAVE_SYMLINK
pval **filename;
char buff[256];
int ret;
/* Append NULL to the end of the string */
buff[ret] = '\0';
RETURN_STRING(buff,1);
-#endif
}
/* }}} */
Returns the st_dev field of the UNIX C stat structure describing the link */
PHP_FUNCTION(linkinfo)
{
-#if HAVE_SYMLINK
pval **filename;
struct stat sb;
int ret;
RETURN_LONG(-1L);
}
RETURN_LONG((long) sb.st_dev);
-#endif
}
/* }}} */
Create a symbolic link */
PHP_FUNCTION(symlink)
{
-#if HAVE_SYMLINK
pval **topath, **frompath;
int ret;
PLS_FETCH();
RETURN_FALSE;
}
RETURN_TRUE;
-#endif
}
/* }}} */
Create a hard link */
PHP_FUNCTION(link)
{
-#if HAVE_LINK
pval **topath, **frompath;
int ret;
PLS_FETCH();
RETURN_FALSE;
}
RETURN_TRUE;
-#endif
}
/* }}} */
}
/* }}} */
+#endif
+
/*
* Local variables: