Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions UPGRADING.INTERNALS
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ PHP 8.7 INTERNALS UPGRADE NOTES
* stream_error_state
The motivation is to remove cyclic dependencies from PHP, as such it may be
possible to omit including ext/standard/file.h to access those globals.
. The flock_compat.h header has been moved from the ext/standard/ folder to
the main/ folder. The motivation for this change is to remove cyclic
dependencies from PHP.

- Removed:
. The ZEND_LOG_XOR() macro was removed.
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1654,6 +1654,7 @@ PHP_ADD_SOURCES([TSRM], m4_normalize([

PHP_ADD_SOURCES([main], m4_normalize([
explicit_bzero.c
flock_compat.c
fopen_wrappers.c
getopt.c
main.c
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/dba.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "php_dba.h"
#include "ext/standard/info.h"
#include "ext/standard/flock_compat.h" /* Compatibility for Windows */
#include "main/flock_compat.h" /* Compatibility for Windows */

#include "php_gdbm.h"
#include "php_ndbm.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/session/mod_files.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

#include "php_session.h"
#include "mod_files.h"
#include "ext/standard/flock_compat.h"
#include "main/flock_compat.h"
#include "php_open_temporary_file.h"

#define FILE_PREFIX "sess_"
Expand Down
2 changes: 1 addition & 1 deletion ext/spl/spl_directory.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "php.h"
#include "ext/standard/file.h"
#include "ext/standard/php_filestat.h"
#include "ext/standard/flock_compat.h"
#include "main/flock_compat.h"
#include "ext/standard/scanf.h"
#include "ext/standard/php_string.h" /* For php_basename() */
#include "zend_exceptions.h"
Expand Down
1 change: 0 additions & 1 deletion ext/standard/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,6 @@ PHP_NEW_EXTENSION([standard], m4_normalize([
file.c
filestat.c
filters.c
flock_compat.c
formatted_print.c
fsock.c
ftok.c
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ EXTENSION("standard", "array.c base64.c basic_functions.c browscap.c \
url_scanner_ex.c ftp_fopen_wrapper.c http_fopen_wrapper.c \
php_fopen_wrapper.c credits.c css.c var_unserializer.c ftok.c sha1.c \
user_filters.c uuencode.c filters.c proc_open.c password.c \
streamsfuncs.c http.c flock_compat.c hrtime.c",
streamsfuncs.c http.c hrtime.c",
false /* never shared */);
ADD_SOURCES("ext/standard/libavifinfo", "avifinfo.c", "standard");
PHP_STANDARD = "yes";
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/* {{{ includes */

#include "php.h"
#include "ext/standard/flock_compat.h"
#include "main/flock_compat.h"
#include "ext/standard/php_filestat.h"
#include "php_open_temporary_file.h"
#include "ext/standard/basic_functions.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/streamsfuncs.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

#include "php.h"
#include "ext/standard/flock_compat.h"
#include "main/flock_compat.h"
#include "ext/standard/file.h"
#include "ext/standard/basic_functions.h"
#include "php_ini.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/flock_compat.c → main/flock_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "php.h"
#include <errno.h>
#include "ext/standard/flock_compat.h"
#include "flock_compat.h"

#ifndef HAVE_FLOCK
PHPAPI int flock(int fd, int operation)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
#ifdef PHP_WIN32
#include <io.h>
#include "win32/php_registry.h"
#include "ext/standard/flock_compat.h"
#include "flock_compat.h"
#endif
#include "Zend/zend_builtin_functions.h"
#include "Zend/zend_exceptions.h"
Expand Down
2 changes: 1 addition & 1 deletion main/streams/plain_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "php_network.h"
#include "php_open_temporary_file.h"
#include "ext/standard/file.h"
#include "ext/standard/flock_compat.h"
#include "main/flock_compat.h"
#include "ext/standard/php_filestat.h"
#include <stddef.h>
#include <fcntl.h>
Expand Down
2 changes: 1 addition & 1 deletion main/streams/userspace.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include "php.h"
#include "php_globals.h"
#include "ext/standard/flock_compat.h"
#include "main/flock_compat.h"
#ifdef HAVE_SYS_FILE_H
#include <sys/file.h>
#endif
Expand Down
2 changes: 1 addition & 1 deletion win32/build/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ if (TARGET_ARCH == 'x64') {

ADD_FLAG("CFLAGS_BD_ZEND", "/D ZEND_ENABLE_STATIC_TSRMLS_CACHE=1");

ADD_SOURCES("main", "main.c snprintf.c spprintf.c getopt.c fopen_wrappers.c \
ADD_SOURCES("main", "main.c snprintf.c spprintf.c getopt.c flock_compat.c fopen_wrappers.c \
php_ini_builder.c php_glob.c \
php_scandir.c php_ini.c SAPI.c rfc1867.c php_content_types.c strlcpy.c \
strlcat.c reentrancy.c php_variables.c php_ticks.c network.c \
Expand Down
Loading