Skip to content

Ext headers cleanup #14365

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 1, 2024
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
1 change: 0 additions & 1 deletion ext/bz2/bz2.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

/* PHP Includes */
#include "ext/standard/info.h"
#include "ext/standard/php_string.h"
#include "main/php_network.h"

/* for fileno() */
Expand Down
3 changes: 1 addition & 2 deletions ext/dba/dba.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@

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

#include "php_gdbm.h"
#include "php_ndbm.h"
Expand Down
3 changes: 0 additions & 3 deletions ext/fileinfo/php_libmagic.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
#ifndef PHP_LIBMAGIC_H
#define PHP_LIBMAGIC_H

#include "php_fileinfo.h"

#include "main/php_network.h"
#include "ext/standard/php_string.h"
#include "ext/pcre/php_pcre.h"

#ifdef PHP_WIN32
Expand Down
2 changes: 2 additions & 0 deletions ext/filter/filter.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#endif

#include "php_filter.h"
#include "main/php_variables.h"
#include "ext/standard/info.h"

ZEND_DECLARE_MODULE_GLOBALS(filter)

Expand Down
4 changes: 0 additions & 4 deletions ext/filter/php_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
#include "zend_API.h"
#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "ext/standard/php_string.h"
#include "ext/standard/html.h"
#include "php_variables.h"

extern zend_module_entry filter_module_entry;
#define phpext_filter_ptr &filter_module_entry
Expand Down
2 changes: 2 additions & 0 deletions ext/filter/sanitizing_filters.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

#include "php_filter.h"
#include "filter_private.h"
#include "ext/standard/php_string.h"
#include "ext/standard/html.h"
#include "zend_smart_str.h"

/* {{{ STRUCTS */
Expand Down
1 change: 0 additions & 1 deletion ext/libxml/libxml.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include "SAPI.h"

#include "zend_variables.h"
#include "ext/standard/php_string.h"
#include "ext/standard/info.h"
#include "ext/standard/file.h"

Expand Down
6 changes: 0 additions & 6 deletions ext/mbstring/mb_gpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,9 @@
#include "php_variables.h"
#include "libmbfl/mbfl/mbfilter_pass.h"
#include "mbstring.h"
#include "ext/standard/php_string.h"
#include "ext/standard/php_mail.h"
#include "ext/standard/url.h"
#include "main/php_output.h"
#include "ext/standard/info.h"

#include "php_globals.h"
#include "rfc1867.h"
#include "php_content_types.h"
#include "SAPI.h"
#include "TSRM.h"

Expand Down
13 changes: 9 additions & 4 deletions ext/mbstring/mbstring.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,24 @@
#include "ext/standard/php_string.h"
#include "ext/standard/php_mail.h"
#include "ext/standard/exec.h"
#include "ext/standard/url.h"
#include "main/php_output.h"
#include "ext/standard/info.h"
#include "ext/pcre/php_pcre.h"

#include "libmbfl/mbfl/mbfilter_8bit.h"
#include "libmbfl/mbfl/mbfilter_pass.h"
#include "libmbfl/mbfl/mbfilter_wchar.h"
#include "libmbfl/mbfl/eaw_table.h"
#include "libmbfl/filters/mbfilter_base64.h"
#include "libmbfl/filters/mbfilter_cjk.h"
#include "libmbfl/filters/mbfilter_qprint.h"
#include "libmbfl/filters/mbfilter_htmlent.h"
#include "libmbfl/filters/mbfilter_uuencode.h"
#include "libmbfl/filters/mbfilter_ucs4.h"
#include "libmbfl/filters/mbfilter_utf8.h"
#include "libmbfl/filters/mbfilter_utf16.h"
#include "libmbfl/filters/mbfilter_singlebyte.h"
#include "libmbfl/filters/translit_kana_jisx0201_jisx0208.h"
#include "libmbfl/filters/unicode_prop.h"

#include "php_variables.h"
#include "php_globals.h"
#include "rfc1867.h"
#include "php_content_types.h"
Expand All @@ -69,6 +65,15 @@

#include "rare_cp_bitvec.h"

#ifdef __SSE2__
#include <emmintrin.h>
#endif

#ifdef __SSE3__
#include <immintrin.h>
#include <pmmintrin.h>
#endif

/* }}} */

/* {{{ prototypes */
Expand Down
1 change: 0 additions & 1 deletion ext/mysqli/mysqli.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "ext/standard/php_string.h"
#include "php_mysqli.h"
#include "php_mysqli_structs.h"
#include "mysqli_priv.h"
Expand Down
3 changes: 0 additions & 3 deletions ext/odbc/php_odbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,19 @@
#include "zend_attributes.h"

#include "ext/standard/info.h"
#include "ext/standard/php_string.h"
#include "ext/standard/php_standard.h"
#include "Zend/zend_interfaces.h"
#include "zend_smart_str.h"

#include "php_odbc.h"
#include "php_odbc_includes.h"
#include "php_globals.h"

/* actually lives in main/ */
#include "php_odbc_utils.h"

#ifdef HAVE_UODBC

#include <fcntl.h>
#include "ext/standard/head.h"
#include "php_ini.h"

#define PHP_ODBC_BINMODE_PASSTHRU 0
Expand Down
3 changes: 0 additions & 3 deletions ext/pcre/php_pcre.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@

#include "php.h"
#include "php_ini.h"
#include "php_globals.h"
#include "php_pcre.h"
#include "ext/standard/info.h"
#include "ext/standard/basic_functions.h"
#include "zend_smart_str.h"
#include "SAPI.h"

#include "ext/standard/php_string.h"

#define PREG_PATTERN_ORDER 1
#define PREG_SET_ORDER 2
#define PREG_OFFSET_CAPTURE (1<<8)
Expand Down
3 changes: 1 addition & 2 deletions ext/pdo_pgsql/pgsql_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@

#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "ext/standard/php_string.h"
#include "ext/standard/php_string.h" /* For php_addcslashes_str() in _pdo_pgsql_escape_credentials() */
#include "main/php_network.h"
#include "pdo/php_pdo.h"
#include "pdo/php_pdo_driver.h"
Expand Down
1 change: 0 additions & 1 deletion ext/posix/posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "php.h"
#include <unistd.h>
#include "ext/standard/info.h"
#include "ext/standard/php_string.h"
#include "php_posix.h"

#ifdef HAVE_POSIX
Expand Down
2 changes: 0 additions & 2 deletions ext/standard/array.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,12 @@
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <stdio.h>
#include <string.h>
#ifdef PHP_WIN32
#include "win32/unistd.h"
#endif
#include "zend_globals.h"
#include "zend_interfaces.h"
#include "php_globals.h"
#include "php_array.h"
#include "basic_functions.h"
#include "php_string.h"
Expand Down
1 change: 0 additions & 1 deletion ext/standard/browscap.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "php.h"
#include "php_browscap.h"
#include "php_ini.h"
#include "php_string.h"

#include "zend_ini_scanner.h"
#include "zend_globals.h"
Expand Down
1 change: 0 additions & 1 deletion ext/standard/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "file.h"
#include "php_dir.h"
#include "php_dir_int.h"
#include "php_string.h"
#include "php_scandir.h"
#include "basic_functions.h"
#include "dir_arginfo.h"
Expand Down
2 changes: 0 additions & 2 deletions ext/standard/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@
#include "php.h"
#include <ctype.h>
#include "php_string.h"
#include "ext/standard/head.h"
#include "ext/standard/file.h"
#include "basic_functions.h"
#include "exec.h"
#include "php_globals.h"
#include "SAPI.h"

#ifdef HAVE_SYS_WAIT_H
Expand Down
10 changes: 1 addition & 9 deletions ext/standard/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
/* {{{ includes */

#include "php.h"
#include "php_globals.h"
#include "ext/standard/flock_compat.h"
#include "ext/standard/exec.h"
#include "ext/standard/php_filestat.h"
#include "php_open_temporary_file.h"
#include "ext/standard/basic_functions.h"
Expand Down Expand Up @@ -61,7 +59,6 @@
# endif
#endif

#include "ext/standard/head.h"
#include "php_string.h"
#include "file.h"

Expand All @@ -73,14 +70,9 @@
# endif
#endif

#ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
#endif

#include "fsock.h"
#include "fopen_wrappers.h"
#include "streamsfuncs.h"
#include "php_globals.h"
#include "streamsfuncs.h" /* To define constants in the arg_info */

#ifdef HAVE_SYS_FILE_H
# include <sys/file.h>
Expand Down
1 change: 0 additions & 1 deletion ext/standard/filters.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
*/

#include "php.h"
#include "php_globals.h"
#include "ext/standard/basic_functions.h"
#include "ext/standard/file.h"
#include "ext/standard/php_string.h"
Expand Down
5 changes: 1 addition & 4 deletions ext/standard/formatted_print.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,11 @@

#include <math.h> /* modf() */
#include "php.h"
#include "ext/standard/head.h"
#include "php_string.h"
#include "zend_execute.h"
#include <stdio.h>

#include <locale.h>
#ifdef ZTS
#include "ext/standard/php_string.h"
#include "ext/standard/php_string.h" /* for localeconv_r() */
#define LCONV_DECIMAL_POINT (*lconv.decimal_point)
#else
#define LCONV_DECIMAL_POINT (*lconv->decimal_point)
Expand Down
4 changes: 0 additions & 4 deletions ext/standard/html.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,8 @@
#include <php_config.h>
#endif
#include "php_standard.h"
#include "php_string.h"
#include "SAPI.h"
#include <locale.h>
#ifdef HAVE_LANGINFO_H
#include <langinfo.h>
#endif

#include <zend_hash.h>
#include "html_tables.h"
Expand Down
1 change: 0 additions & 1 deletion ext/standard/levenshtein.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/

#include "php.h"
#include "php_string.h"

/* {{{ reference_levdist
* reference implementation, only optimized for memory usage, not speed */
Expand Down
2 changes: 0 additions & 2 deletions ext/standard/link.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
*/

#include "php.h"
#include "php_filestat.h"
#include "php_globals.h"

#if defined(HAVE_SYMLINK) || defined(PHP_WIN32)

Expand Down
1 change: 0 additions & 1 deletion ext/standard/mail.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#include "php_syslog.h"
#include "php_mail.h"
#include "php_ini.h"
#include "php_string.h"
#include "exec.h"

#ifdef PHP_WIN32
Expand Down
2 changes: 0 additions & 2 deletions ext/standard/pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
#else
#include <sys/param.h>
#endif
#include "ext/standard/head.h"
#include "php_string.h"
#include "pack.h"
#ifdef HAVE_PWD_H
#ifdef PHP_WIN32
Expand Down
4 changes: 0 additions & 4 deletions ext/standard/proc_open.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,11 @@
*/

#include "php.h"
#include <stdio.h>
#include <ctype.h>
#include <signal.h>
#include "php_string.h"
#include "ext/standard/head.h"
#include "ext/standard/basic_functions.h"
#include "ext/standard/file.h"
#include "exec.h"
#include "php_globals.h"
#include "SAPI.h"
#include "main/php_network.h"
#include "zend_smart_str.h"
Expand Down
2 changes: 0 additions & 2 deletions ext/standard/soundex.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@

#include "php.h"
#include <stdlib.h>
#include <errno.h>
#include <ctype.h>
#include "php_string.h"

/* Simple soundex algorithm as described by Knuth in TAOCP, vol 3 */
/* {{{ Calculate the soundex key of a string */
Expand Down
3 changes: 0 additions & 3 deletions ext/standard/streamsfuncs.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@
*/

#include "php.h"
#include "php_globals.h"
#include "ext/standard/flock_compat.h"
#include "ext/standard/file.h"
#include "ext/standard/php_filestat.h"
#include "php_open_temporary_file.h"
#include "ext/standard/basic_functions.h"
#include "php_ini.h"
#include "streamsfuncs.h"
Expand Down
1 change: 0 additions & 1 deletion ext/standard/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include "scanf.h"
#include "zend_API.h"
#include "zend_execute.h"
#include "php_globals.h"
#include "basic_functions.h"
#include "zend_smart_str.h"
#include <Zend/zend_exceptions.h>
Expand Down
2 changes: 0 additions & 2 deletions ext/zip/zip_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
#include "fopen_wrappers.h"
#include "php_zip.h"

#include "ext/standard/url.h"

/* needed for ssize_t definition */
#include <sys/types.h>

Expand Down
Loading
Loading