]> granicus.if.org Git - php/commit
Refactor parts of SPL Dir/SplFileObject
authorGeorge Peter Banyard <girgias@php.net>
Thu, 3 Sep 2020 12:15:18 +0000 (14:15 +0200)
committerGeorge Peter Banyard <girgias@php.net>
Thu, 3 Sep 2020 12:23:18 +0000 (14:23 +0200)
commit430b3ac7df59aa42b52995be1c704394fa29ad3d
tree5f60a90073c29b6367ed6175ba0bdff3810b9713
parent7b3ac296a5242f9ded4d2dc7cf2c6349e583caf8
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
ext/spl/config.m4
ext/spl/spl_directory.c
ext/spl/tests/SplFileObject_fstat_with_basic_fstat_disabled.phpt [new file with mode: 0644]
ext/standard/file.c
ext/standard/file.h
ext/standard/flock_compat.c
ext/standard/flock_compat.h