cvs: php-src(PHP_5_2) /ext/spl spl_directory.c
| From: | Marcus Boerger | Date: | Tue, 20 Feb 2007 13:08:01 +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-43148@lists.php.net to get a copy of this message | ||
helly Tue Feb 20 13:08:01 2007 UTC
Modified files: (Branch: PHP_5_2)
/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.45.2.27.2.14&r2=1.45.2.27.2.15&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.14
php-src/ext/spl/spl_directory.c:1.45.2.27.2.15
--- php-src/ext/spl/spl_directory.c:1.45.2.27.2.14 Mon Feb 19 20:34:29 2007
+++ php-src/ext/spl/spl_directory.c Tue Feb 20 13:08:01 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: spl_directory.c,v 1.45.2.27.2.14 2007/02/19 20:34:29 helly Exp $ */
+/* $Id: spl_directory.c,v 1.45.2.27.2.15 2007/02/20 13:08:01 helly Exp $ */
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -679,8 +679,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_stat(intern->file_name, intern->file_name_len, func_num, return_value TSRMLS_CC); \
+ php_set_error_handling(EH_NORMAL, NULL TSRMLS_CC);\
}
/* }}} */