cvs: php-src /ext/spl spl_directory.c
| From: | Marcus Boerger | Date: | Tue, 20 Feb 2007 13:07:53 +0000 |
| Subject: | cvs: php-src /ext/spl spl_directory.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-43147@lists.php.net to get a copy of this message | ||
helly Tue Feb 20 13:07:53 2007 UTC
Modified files:
/php-src/ext/spl spl_directory.c
Log:
- Make stat based functions throw an exception
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/spl_directory.c?r1=1.118&r2=1.119&diff_format=u
Index: php-src/ext/spl/spl_directory.c
diff -u php-src/ext/spl/spl_directory.c:1.118 php-src/ext/spl/spl_directory.c:1.119
--- php-src/ext/spl/spl_directory.c:1.118 Mon Feb 19 20:32:39 2007
+++ php-src/ext/spl/spl_directory.c Tue Feb 20 13:07:53 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: spl_directory.c,v 1.118 2007/02/19 20:32:39 helly Exp $ */
+/* $Id: spl_directory.c,v 1.119 2007/02/20 13:07:53 helly Exp $ */
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -758,8 +758,10 @@
{ \
spl_filesystem_object *intern = (spl_filesystem_object*)zend_object_store_get_object(getThis()
TSRMLS_CC); \
\
+ php_set_error_handling(EH_THROW, spl_ce_RuntimeException TSRMLS_CC);\
spl_filesystem_object_get_file_name(intern TSRMLS_CC); \
php_u_stat(intern->file_name_type, intern->file_name, intern->file_name_len, func_num,
FG(default_context), return_value TSRMLS_CC); \
+ php_set_error_handling(EH_NORMAL, NULL TSRMLS_CC);\
}
/* }}} */