summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2005-03-09 09:19:27 +0000
committerAntony Dovgal <tony2001@php.net>2005-03-09 09:19:27 +0000
commita2413c32ce1845319a3cfef47f0a046e11084edc (patch)
tree23ae50c33f2020a775bdde15da0c5bc206b500b9
parent95b67c97630fc00c0ed2593660b9a05933369a61 (diff)
downloadphp-git-a2413c32ce1845319a3cfef47f0a046e11084edc.tar.gz
fix build
-rwxr-xr-xext/spl/spl_directory.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/spl/spl_directory.c b/ext/spl/spl_directory.c
index 070d24a077..454e059c41 100755
--- a/ext/spl/spl_directory.c
+++ b/ext/spl/spl_directory.c
@@ -535,7 +535,7 @@ SPL_METHOD(RecursiveDirectoryIterator, hasChildren)
/* }}} */
/* {{{ proto RecursiveDirectoryIterator DirectoryIterator::getChildren()
- Returns an iterator fo rthe current entry if it is a directory */
+ Returns an iterator for the current entry if it is a directory */
SPL_METHOD(RecursiveDirectoryIterator, getChildren)
{
zval *object = getThis(), zpath;
@@ -1315,6 +1315,9 @@ SPL_METHOD(File, fpassthru)
SPL_METHOD(File, fscanf)
{
spl_file_object *intern = (spl_file_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
+ zval *arg2 = NULL;
+ MAKE_STD_ZVAL(arg2);
+ ZVAL_LONG(arg2, intern->max_line_len);
FileFunctionCall(fscanf, arg2);