mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
Fix #51532 (Invalid prototype for SplFileInfo::fscanf)
This commit is contained in:
parent
1c0ed3433e
commit
eb88d58e6c
@ -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)
|
||||
|
14
ext/spl/tests/bug51532.phpt
Normal file
14
ext/spl/tests/bug51532.phpt
Normal 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===
|
Loading…
Reference in New Issue
Block a user