@@ -1399,6 +1399,9 @@ PHP_METHOD(SplFileInfo, __debugInfo)
1399
1399
/* {{{ */
1400
1400
PHP_METHOD (SplFileInfo , _bad_state_ex )
1401
1401
{
1402
+ if (zend_parse_parameters_none () == FAILURE ) {
1403
+ RETURN_THROWS ();
1404
+ }
1402
1405
zend_throw_error (NULL , "The parent constructor was not called: the object is in an invalid state" );
1403
1406
}
1404
1407
/* }}} */
@@ -2476,6 +2479,10 @@ PHP_METHOD(SplFileObject, getCsvControl)
2476
2479
spl_filesystem_object * intern = Z_SPLFILESYSTEM_P (ZEND_THIS );
2477
2480
char delimiter [2 ], enclosure [2 ], escape [2 ];
2478
2481
2482
+ if (zend_parse_parameters_none () == FAILURE ) {
2483
+ RETURN_THROWS ();
2484
+ }
2485
+
2479
2486
array_init (return_value );
2480
2487
2481
2488
delimiter [0 ] = intern -> u .file .delimiter ;
@@ -2517,6 +2524,10 @@ PHP_METHOD(SplFileObject, fflush)
2517
2524
{
2518
2525
spl_filesystem_object * intern = Z_SPLFILESYSTEM_P (ZEND_THIS );
2519
2526
2527
+ if (zend_parse_parameters_none () == FAILURE ) {
2528
+ RETURN_THROWS ();
2529
+ }
2530
+
2520
2531
CHECK_SPL_FILE_OBJECT_IS_INITIALIZED (intern );
2521
2532
2522
2533
RETURN_BOOL (!php_stream_flush (intern -> u .file .stream ));
@@ -2528,6 +2539,10 @@ PHP_METHOD(SplFileObject, ftell)
2528
2539
spl_filesystem_object * intern = Z_SPLFILESYSTEM_P (ZEND_THIS );
2529
2540
zend_long ret ;
2530
2541
2542
+ if (zend_parse_parameters_none () == FAILURE ) {
2543
+ RETURN_THROWS ();
2544
+ }
2545
+
2531
2546
CHECK_SPL_FILE_OBJECT_IS_INITIALIZED (intern );
2532
2547
2533
2548
ret = php_stream_tell (intern -> u .file .stream );
@@ -2562,6 +2577,10 @@ PHP_METHOD(SplFileObject, fgetc)
2562
2577
char buf [2 ];
2563
2578
int result ;
2564
2579
2580
+ if (zend_parse_parameters_none () == FAILURE ) {
2581
+ RETURN_THROWS ();
2582
+ }
2583
+
2565
2584
CHECK_SPL_FILE_OBJECT_IS_INITIALIZED (intern );
2566
2585
2567
2586
spl_filesystem_file_free_line (intern );
@@ -2585,6 +2604,10 @@ PHP_METHOD(SplFileObject, fpassthru)
2585
2604
{
2586
2605
spl_filesystem_object * intern = Z_SPLFILESYSTEM_P (ZEND_THIS );
2587
2606
2607
+ if (zend_parse_parameters_none () == FAILURE ) {
2608
+ RETURN_THROWS ();
2609
+ }
2610
+
2588
2611
CHECK_SPL_FILE_OBJECT_IS_INITIALIZED (intern );
2589
2612
2590
2613
RETURN_LONG (php_stream_passthru (intern -> u .file .stream ));
0 commit comments