cvs: php-src(PHP_5_2) /ext/spl spl_directory.c
| From: | Antony Dovgal | Date: | Tue, 05 Jun 2007 12:02:46 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/spl spl_directory.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-44662@lists.php.net to get a copy of this message | ||
tony2001 Tue Jun 5 12:02:46 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/spl spl_directory.c
Log:
MFH
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/spl_directory.c?r1=1.45.2.27.2.20&r2=1.45.2.27.2.21&diff_format=u
Index: php-src/ext/spl/spl_directory.c
diff -u php-src/ext/spl/spl_directory.c:1.45.2.27.2.20
php-src/ext/spl/spl_directory.c:1.45.2.27.2.21
--- php-src/ext/spl/spl_directory.c:1.45.2.27.2.20 Mon Apr 9 15:34:55 2007
+++ php-src/ext/spl/spl_directory.c Tue Jun 5 12:02:46 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: spl_directory.c,v 1.45.2.27.2.20 2007/04/09 15:34:55 dmitry Exp $ */
+/* $Id: spl_directory.c,v 1.45.2.27.2.21 2007/06/05 12:02:46 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -829,7 +829,11 @@
php_set_error_handling(EH_THROW, spl_ce_RuntimeException TSRMLS_CC);
+#ifdef HAVE_SYMLINK
ret = readlink(intern->file_name, buff, MAXPATHLEN-1);
+#else
+ ret = -1; /* always fail if not implemented */
+#endif
if (ret == -1) {
zend_throw_exception_ex(spl_ce_RuntimeException, 0 TSRMLS_CC, "Unable to read link %s,
error: %s", intern->file_name, strerror(errno));