]> granicus.if.org Git - php/commitdiff
fix build
authorAntony Dovgal <tony2001@php.net>
Wed, 9 Mar 2005 09:19:27 +0000 (09:19 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 9 Mar 2005 09:19:27 +0000 (09:19 +0000)
ext/spl/spl_directory.c

index 070d24a077b8d53a90b1ed4431b0e39f84a298cf..454e059c410161f165d5c0d8785eb86c2d636629 100755 (executable)
@@ -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 fothe 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);