summaryrefslogtreecommitdiff
path: root/ext/spl
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-03-09 03:07:42 +0000
committerMarcus Boerger <helly@php.net>2005-03-09 03:07:42 +0000
commitf0a3e5be17a231419c055cfd43b2e085863d3b4c (patch)
tree0fae6a3a75dbff16c52085dd17a798919aa54f24 /ext/spl
parentb79e8759fc1c306a6b20d317a056f2afb32860d0 (diff)
downloadphp-git-f0a3e5be17a231419c055cfd43b2e085863d3b4c.tar.gz
More line count fixes
Diffstat (limited to 'ext/spl')
-rwxr-xr-xext/spl/spl_directory.c10
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])