File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -2378,15 +2378,6 @@ PHP_METHOD(SplFileObject, getChildren)
2378
2378
/* return NULL */
2379
2379
} /* }}} */
2380
2380
2381
- /* {{{ FileFunction */
2382
- #define FileFunction (func_name ) \
2383
- PHP_METHOD(SplFileObject, func_name) \
2384
- { \
2385
- spl_filesystem_object *intern = Z_SPLFILESYSTEM_P(ZEND_THIS); \
2386
- FileFunctionCall(func_name, ZEND_NUM_ARGS()); \
2387
- }
2388
- /* }}} */
2389
-
2390
2381
/* {{{ Return current line as csv */
2391
2382
PHP_METHOD (SplFileObject , fgetcsv )
2392
2383
{
@@ -2567,7 +2558,11 @@ PHP_METHOD(SplFileObject, getCsvControl)
2567
2558
/* }}} */
2568
2559
2569
2560
/* {{{ Portable file locking */
2570
- FileFunction (flock )
2561
+ PHP_METHOD (SplFileObject , flock )
2562
+ {
2563
+ spl_filesystem_object * intern = Z_SPLFILESYSTEM_P (ZEND_THIS );
2564
+ FileFunctionCall (flock , ZEND_NUM_ARGS ());
2565
+ }
2571
2566
/* }}} */
2572
2567
2573
2568
/* {{{ Flush the file */
@@ -2746,7 +2741,11 @@ PHP_METHOD(SplFileObject, fread)
2746
2741
}
2747
2742
2748
2743
/* {{{ Stat() on a filehandle */
2749
- FileFunction (fstat )
2744
+ PHP_METHOD (SplFileObject , fstat )
2745
+ {
2746
+ spl_filesystem_object * intern = Z_SPLFILESYSTEM_P (ZEND_THIS );
2747
+ FileFunctionCall (fstat , ZEND_NUM_ARGS ());
2748
+ }
2750
2749
/* }}} */
2751
2750
2752
2751
/* {{{ Truncate file to 'size' length */
You can’t perform that action at this time.
0 commit comments