@@ -1399,6 +1399,9 @@ PHP_METHOD(SplFileInfo, __debugInfo)
13991399/* {{{ */
14001400PHP_METHOD (SplFileInfo , _bad_state_ex )
14011401{
1402+ if (zend_parse_parameters_none () == FAILURE ) {
1403+ RETURN_THROWS ();
1404+ }
14021405 zend_throw_error (NULL , "The parent constructor was not called: the object is in an invalid state" );
14031406}
14041407/* }}} */
@@ -2476,6 +2479,10 @@ PHP_METHOD(SplFileObject, getCsvControl)
24762479 spl_filesystem_object * intern = Z_SPLFILESYSTEM_P (ZEND_THIS );
24772480 char delimiter [2 ], enclosure [2 ], escape [2 ];
24782481
2482+ if (zend_parse_parameters_none () == FAILURE ) {
2483+ RETURN_THROWS ();
2484+ }
2485+
24792486 array_init (return_value );
24802487
24812488 delimiter [0 ] = intern -> u .file .delimiter ;
@@ -2517,6 +2524,10 @@ PHP_METHOD(SplFileObject, fflush)
25172524{
25182525 spl_filesystem_object * intern = Z_SPLFILESYSTEM_P (ZEND_THIS );
25192526
2527+ if (zend_parse_parameters_none () == FAILURE ) {
2528+ RETURN_THROWS ();
2529+ }
2530+
25202531 CHECK_SPL_FILE_OBJECT_IS_INITIALIZED (intern );
25212532
25222533 RETURN_BOOL (!php_stream_flush (intern -> u .file .stream ));
@@ -2528,6 +2539,10 @@ PHP_METHOD(SplFileObject, ftell)
25282539 spl_filesystem_object * intern = Z_SPLFILESYSTEM_P (ZEND_THIS );
25292540 zend_long ret ;
25302541
2542+ if (zend_parse_parameters_none () == FAILURE ) {
2543+ RETURN_THROWS ();
2544+ }
2545+
25312546 CHECK_SPL_FILE_OBJECT_IS_INITIALIZED (intern );
25322547
25332548 ret = php_stream_tell (intern -> u .file .stream );
@@ -2562,6 +2577,10 @@ PHP_METHOD(SplFileObject, fgetc)
25622577 char buf [2 ];
25632578 int result ;
25642579
2580+ if (zend_parse_parameters_none () == FAILURE ) {
2581+ RETURN_THROWS ();
2582+ }
2583+
25652584 CHECK_SPL_FILE_OBJECT_IS_INITIALIZED (intern );
25662585
25672586 spl_filesystem_file_free_line (intern );
@@ -2585,6 +2604,10 @@ PHP_METHOD(SplFileObject, fpassthru)
25852604{
25862605 spl_filesystem_object * intern = Z_SPLFILESYSTEM_P (ZEND_THIS );
25872606
2607+ if (zend_parse_parameters_none () == FAILURE ) {
2608+ RETURN_THROWS ();
2609+ }
2610+
25882611 CHECK_SPL_FILE_OBJECT_IS_INITIALIZED (intern );
25892612
25902613 RETURN_LONG (php_stream_passthru (intern -> u .file .stream ));
0 commit comments