]> granicus.if.org Git - php/commitdiff
Fix the fix
authorMarcus Boerger <helly@php.net>
Wed, 9 Mar 2005 10:29:27 +0000 (10:29 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 9 Mar 2005 10:29:27 +0000 (10:29 +0000)
ext/spl/spl_directory.c

index 454e059c410161f165d5c0d8785eb86c2d636629..3fc5013952d3c1390d79091d1e7f5a52c3767088 100755 (executable)
@@ -1315,11 +1315,8 @@ 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);
+       FileFunctionCall(fscanf, NULL);
 
        intern->current_line_num++;
 }