Fix #51532 (Invalid prototype for SplFileInfo::fscanf)

This commit is contained in:
Etienne Kneuss 2010-04-25 05:18:42 +00:00
parent 1c0ed3433e
commit eb88d58e6c
2 changed files with 15 additions and 2 deletions

View File

@ -2567,9 +2567,8 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_file_object_fgetss, 0, 0, 0)
ZEND_ARG_INFO(0, allowable_tags)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_file_object_fscanf, 1, 0, 1)
ZEND_BEGIN_ARG_INFO_EX(arginfo_file_object_fscanf, 0, 0, 1)
ZEND_ARG_INFO(0, format)
ZEND_ARG_INFO(1, ...)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_file_object_fwrite, 0, 0, 1)

View File

@ -0,0 +1,14 @@
--TEST--
SPL: Allow valid extension of SplFileObject::fscanf
--FILE--
<?php
class A extends SplFileObject {
public function fscanf($format) {
}
}
?>
===DONE===
--EXPECT--
===DONE===