File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -2548,10 +2548,17 @@ PHP_METHOD(SplFileObject, getCsvControl)
2548
2548
}
2549
2549
/* }}} */
2550
2550
2551
- /* {{{ Portable file locking, copy pasted from ext/standard/file.c flock() function.
2552
- * This is done to prevent this to fail if flock is disabled via disable_functions */
2551
+ /* Because apparently it doesn't want to pull them from flock_compat.h for some stupid reason */
2552
+ #define LOCK_SH 1
2553
+ #define LOCK_EX 2
2554
+ #define LOCK_NB 4
2555
+ #define LOCK_UN 8
2556
+
2557
+
2553
2558
static int flock_values [] = { LOCK_SH , LOCK_EX , LOCK_UN };
2554
2559
2560
+ /* {{{ Portable file locking, copy pasted from ext/standard/file.c flock() function.
2561
+ * This is done to prevent this to fail if flock is disabled via disable_functions */
2555
2562
PHP_METHOD (SplFileObject , flock )
2556
2563
{
2557
2564
spl_filesystem_object * intern = Z_SPLFILESYSTEM_P (ZEND_THIS );
You can’t perform that action at this time.
0 commit comments