summaryrefslogtreecommitdiff
path: root/ext/standard/flock_compat.c
diff options
context:
space:
mode:
authorGeorge Peter Banyard <girgias@php.net>2020-09-03 14:15:18 +0200
committerGeorge Peter Banyard <girgias@php.net>2020-09-03 14:23:18 +0200
commit430b3ac7df59aa42b52995be1c704394fa29ad3d (patch)
tree5f60a90073c29b6367ed6175ba0bdff3810b9713 /ext/standard/flock_compat.c
parent7b3ac296a5242f9ded4d2dc7cf2c6349e583caf8 (diff)
downloadphp-git-430b3ac7df59aa42b52995be1c704394fa29ad3d.tar.gz
Refactor parts of SPL Dir/SplFileObject
This fixes a way it was possible to trigger an Internel Error by disabling function (via the INI setting) when SPL was acting as a proxy to the function call. Fix flock_compat layer as it needs to used in SPL now. Use macro to check if object is initialized Closes GH-6014
Diffstat (limited to 'ext/standard/flock_compat.c')
-rw-r--r--ext/standard/flock_compat.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/ext/standard/flock_compat.c b/ext/standard/flock_compat.c
index 6751aedfc1..7b0ad2df23 100644
--- a/ext/standard/flock_compat.c
+++ b/ext/standard/flock_compat.c
@@ -18,17 +18,6 @@
#include <errno.h>
#include "ext/standard/flock_compat.h"
-#if HAVE_STRUCT_FLOCK
-#include <unistd.h>
-#include <fcntl.h>
-#include <sys/file.h>
-#endif
-
-#ifdef PHP_WIN32
-#include <io.h>
-#include "config.w32.h"
-#endif
-
#ifndef HAVE_FLOCK
PHPAPI int flock(int fd, int operation)
{