@@ -1407,6 +1407,9 @@ PHP_METHOD(SplFileInfo, __debugInfo)
1407
1407
/* {{{ */
1408
1408
PHP_METHOD (SplFileInfo , _bad_state_ex )
1409
1409
{
1410
+ if (zend_parse_parameters_none () == FAILURE ) {
1411
+ RETURN_THROWS ();
1412
+ }
1410
1413
zend_throw_error (NULL , "The parent constructor was not called: the object is in an invalid state" );
1411
1414
}
1412
1415
/* }}} */
@@ -2478,6 +2481,10 @@ PHP_METHOD(SplFileObject, getCsvControl)
2478
2481
spl_filesystem_object * intern = Z_SPLFILESYSTEM_P (ZEND_THIS );
2479
2482
char delimiter [2 ], enclosure [2 ], escape [2 ];
2480
2483
2484
+ if (zend_parse_parameters_none () == FAILURE ) {
2485
+ RETURN_THROWS ();
2486
+ }
2487
+
2481
2488
array_init (return_value );
2482
2489
2483
2490
delimiter [0 ] = intern -> u .file .delimiter ;
@@ -2519,6 +2526,10 @@ PHP_METHOD(SplFileObject, fflush)
2519
2526
{
2520
2527
spl_filesystem_object * intern = Z_SPLFILESYSTEM_P (ZEND_THIS );
2521
2528
2529
+ if (zend_parse_parameters_none () == FAILURE ) {
2530
+ RETURN_THROWS ();
2531
+ }
2532
+
2522
2533
CHECK_SPL_FILE_OBJECT_IS_INITIALIZED (intern );
2523
2534
2524
2535
RETURN_BOOL (!php_stream_flush (intern -> u .file .stream ));
@@ -2530,6 +2541,10 @@ PHP_METHOD(SplFileObject, ftell)
2530
2541
spl_filesystem_object * intern = Z_SPLFILESYSTEM_P (ZEND_THIS );
2531
2542
zend_long ret ;
2532
2543
2544
+ if (zend_parse_parameters_none () == FAILURE ) {
2545
+ RETURN_THROWS ();
2546
+ }
2547
+
2533
2548
CHECK_SPL_FILE_OBJECT_IS_INITIALIZED (intern );
2534
2549
2535
2550
ret = php_stream_tell (intern -> u .file .stream );
@@ -2564,6 +2579,10 @@ PHP_METHOD(SplFileObject, fgetc)
2564
2579
char buf [2 ];
2565
2580
int result ;
2566
2581
2582
+ if (zend_parse_parameters_none () == FAILURE ) {
2583
+ RETURN_THROWS ();
2584
+ }
2585
+
2567
2586
CHECK_SPL_FILE_OBJECT_IS_INITIALIZED (intern );
2568
2587
2569
2588
spl_filesystem_file_free_line (intern );
@@ -2588,6 +2607,10 @@ PHP_METHOD(SplFileObject, fpassthru)
2588
2607
{
2589
2608
spl_filesystem_object * intern = Z_SPLFILESYSTEM_P (ZEND_THIS );
2590
2609
2610
+ if (zend_parse_parameters_none () == FAILURE ) {
2611
+ RETURN_THROWS ();
2612
+ }
2613
+
2591
2614
CHECK_SPL_FILE_OBJECT_IS_INITIALIZED (intern );
2592
2615
2593
2616
RETURN_LONG (php_stream_passthru (intern -> u .file .stream ));
0 commit comments