diff options
| author | Marcus Boerger <helly@php.net> | 2007-02-20 13:08:01 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2007-02-20 13:08:01 +0000 |
| commit | f44b63c57f4c9dff4224e719ead60136506bdfcf (patch) | |
| tree | 609f4742563d05936c856622211efdf7765eb957 /ext/spl | |
| parent | 6ba2491d37af204d0ca27b6c5a85d54866d85646 (diff) | |
| download | php-git-f44b63c57f4c9dff4224e719ead60136506bdfcf.tar.gz | |
- Make stat based functions throw an exception
Diffstat (limited to 'ext/spl')
| -rwxr-xr-x | ext/spl/spl_directory.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c index 0cd440c758..4847f65edb 100755 --- a/ext/spl/spl_directory.c +++ b/ext/spl/spl_directory.c @@ -679,8 +679,10 @@ SPL_METHOD(SplFileInfo, func_name) \ { \ 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);\ } /* }}} */ |
