diff options
Diffstat (limited to 'ext')
-rwxr-xr-x | ext/spl/spl_directory.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c index a2aa532c42..070d24a077 100755 --- a/ext/spl/spl_directory.c +++ b/ext/spl/spl_directory.c @@ -1298,6 +1298,7 @@ SPL_METHOD(File, fgetss) FileFunctionCall(fgetss, arg2); zval_ptr_dtor(&arg2); + intern->current_line_num++; } /* }}} */ /* {{{ proto int File::fpassthru() @@ -1311,7 +1312,14 @@ SPL_METHOD(File, fpassthru) /* {{{ proto bool File::fscanf(string format [, string ...]) Implements a mostly ANSI compatible fscanf() */ -FileFunction(fscanf) +SPL_METHOD(File, fscanf) +{ + spl_file_object *intern = (spl_file_object*)zend_object_store_get_object(getThis() TSRMLS_CC); + + FileFunctionCall(fscanf, arg2); + + intern->current_line_num++; +} /* }}} */ /* {{{ proto mixed File::fwrite(string str [, int length]) |