Skip to content

Clean-up some more headers #14416

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 1 commit into from
Jun 8, 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
2 changes: 0 additions & 2 deletions ext/ctype/ctype.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@
#endif

#include "php.h"
#include "php_ini.h"
#include "php_ctype.h"
#include "ctype_arginfo.h"
#include "SAPI.h"
#include "ext/standard/info.h"

#include <ctype.h>
Expand Down
3 changes: 0 additions & 3 deletions ext/date/php_date.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,10 @@
*/

#include "php.h"
#include "php_streams.h"
#include "php_main.h"
#include "php_globals.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "ext/standard/php_versioning.h"
#include "ext/standard/php_math.h"
#include "php_date.h"
#include "zend_interfaces.h"
#include "zend_exceptions.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/exif/exif.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include "exif_arginfo.h"
#include <math.h>
#include "php_ini.h"
#include "ext/standard/php_string.h"
#include "ext/standard/php_string.h" /* for php_basename() */
#include "ext/standard/php_image.h"
#include "ext/standard/info.h"

Expand Down
2 changes: 0 additions & 2 deletions ext/filter/php_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
#ifndef PHP_FILTER_H
#define PHP_FILTER_H

#include "SAPI.h"
#include "zend_API.h"
#include "php.h"
#include "php_ini.h"

extern zend_module_entry filter_module_entry;
#define phpext_filter_ptr &filter_module_entry
Expand Down
1 change: 0 additions & 1 deletion ext/gmp/gmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#endif

#include "php.h"
#include "php_ini.h"
#include "php_gmp.h"
#include "php_gmp_int.h"
#include "ext/standard/info.h"
Expand Down
1 change: 0 additions & 1 deletion ext/iconv/iconv.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#endif

#include "php.h"
#include "php_globals.h"
#include "ext/standard/info.h"
#include "main/php_output.h"
#include "SAPI.h"
Expand Down
2 changes: 0 additions & 2 deletions ext/intl/idn/idn.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@

#include <unicode/uidna.h>
#include <unicode/ustring.h>
#include "ext/standard/php_string.h"

#include "idn.h"
#include "intl_error.h"
#include "intl_convert.h"
/* }}} */

enum {
Expand Down
2 changes: 0 additions & 2 deletions ext/json/json.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
#endif

#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "ext/standard/html.h"
#include "zend_smart_str.h"
#include "php_json.h"
#include "php_json_encoder.h"
Expand Down
3 changes: 1 addition & 2 deletions ext/json/json_encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@
#endif

#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "ext/standard/html.h"
#include "zend_smart_str.h"
#include "php_json.h"
#include "php_json_encoder.h"
#include "zend_portability.h"
#include <zend_exceptions.h>
#include "zend_enum.h"

Expand Down
2 changes: 0 additions & 2 deletions ext/mbstring/mb_gpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@

/* {{{ includes */
#include "php.h"
#include "php_ini.h"
#include "php_variables.h"
#include "libmbfl/mbfl/mbfilter_pass.h"
#include "mbstring.h"
#include "ext/standard/url.h"

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

#include "mb_gpc.h"
Expand Down
3 changes: 0 additions & 3 deletions ext/mysqli/mysqli_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
#include <signal.h>

#include "php.h"
#include "php_ini.h"
#include "php_globals.h"
#include "ext/standard/info.h"
#include "zend_smart_str.h"
#include "php_mysqli_structs.h"
#include "mysqli_priv.h"
Expand Down
2 changes: 0 additions & 2 deletions ext/mysqli/mysqli_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
#include <signal.h>

#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "php_mysqli_structs.h"
#include "zend_exceptions.h"

Expand Down
2 changes: 0 additions & 2 deletions ext/mysqli/mysqli_exception.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
#include <signal.h>

#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "php_mysqli_structs.h"
#include "mysqli_priv.h"
#include "zend_exceptions.h"
Expand Down
2 changes: 0 additions & 2 deletions ext/mysqli/mysqli_nonapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
#include <signal.h>

#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "zend_smart_str.h"
#include "php_mysqli_structs.h"
#include "mysqli_priv.h"
Expand Down
2 changes: 0 additions & 2 deletions ext/mysqli/mysqli_prop.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
#include <signal.h>

#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "php_mysqli_structs.h"
#include "mysqli_priv.h"

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

#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "php_mysqli_structs.h"

extern void php_mysqli_throw_sql_exception(char *sqlstate, int errorno, char *format, ...);
Expand Down
1 change: 0 additions & 1 deletion ext/mysqli/mysqli_result_iterator.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <signal.h>

#include "php.h"
#include "php_ini.h"
#include "php_mysqli_structs.h"
#include "mysqli_priv.h"
#include "zend_interfaces.h"
Expand Down
2 changes: 0 additions & 2 deletions ext/mysqli/mysqli_warning.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
#include <signal.h>

#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "php_mysqli_structs.h"
#include "mysqli_priv.h"

Expand Down
1 change: 0 additions & 1 deletion ext/odbc/php_odbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "zend_attributes.h"

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

Expand Down
2 changes: 1 addition & 1 deletion ext/openssl/openssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "ext/standard/file.h"
#include "ext/standard/info.h"
#include "ext/standard/php_fopen_wrappers.h"
#include "ext/standard/md5.h"
#include "ext/standard/md5.h" /* For make_digest_ex() */
#include "ext/standard/base64.h"
#ifdef PHP_WIN32
# include "win32/winutil.h"
Expand Down
1 change: 0 additions & 1 deletion ext/pcntl/pcntl.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#endif

#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "php_pcntl.h"
#include "php_signal.h"
Expand Down
2 changes: 1 addition & 1 deletion ext/pgsql/pgsql.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "php.h"
#include "php_ini.h"
#include "ext/standard/php_standard.h"
#include "ext/standard/info.h"
#include "zend_smart_str.h"
#include "ext/pcre/php_pcre.h"
#ifdef PHP_WIN32
Expand Down
9 changes: 1 addition & 8 deletions ext/readline/readline_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,13 @@
#define rl_completion_matches completion_matches
#endif

#include "php_globals.h"
#include "php_variables.h"
#include "zend_hash.h"
#include "zend_modules.h"

#include "SAPI.h"
#include <locale.h>
#include "zend.h"
#include "zend_extensions.h"
#include "php_ini.h"
#include "php_globals.h"
#include "php_main.h"
#include "fopen_wrappers.h"
#include "ext/standard/php_standard.h"
#include "ext/standard/info.h"
#include "zend_smart_str.h"

#ifdef __riscos__
Expand Down
1 change: 0 additions & 1 deletion ext/session/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include <fcntl.h>

#include "php_ini.h"
#include "SAPI.h"
#include "rfc1867.h"
#include "php_variables.h"
#include "php_session.h"
Expand Down
1 change: 0 additions & 1 deletion ext/shmop/shmop.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#endif

#include "php.h"
#include "php_ini.h"
#include "php_shmop.h"
#include "shmop_arginfo.h"

Expand Down
3 changes: 1 addition & 2 deletions ext/simplexml/simplexml.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@
#include "php.h"
#if defined(HAVE_LIBXML) && defined(HAVE_SIMPLEXML)

#include "php_ini.h"
#include "ext/standard/info.h"
#include "ext/standard/php_string.h"
#include "ext/standard/php_string.h" /* For php_trim() */
#include "php_simplexml.h"
#include "php_simplexml_exports.h"
#include "simplexml_arginfo.h"
Expand Down
5 changes: 1 addition & 4 deletions ext/soap/php_http.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
*/

#include "php_soap.h"
#include "ext/standard/base64.h"
#include "ext/standard/md5.h"
#include "ext/random/php_random_csprng.h"
#include "ext/hash/php_hash.h"
#include "ext/hash/php_hash.h" /* For php_hash_bin2hex() */

static char *get_http_header_value_nodup(char *headers, char *type, size_t *len);
static char *get_http_header_value(char *headers, char *type);
Expand Down
1 change: 0 additions & 1 deletion ext/soap/php_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include "ext/libxml/php_libxml.h"
#include "libxml/uri.h"

#include "ext/standard/md5.h"
#include "zend_virtual_cwd.h"
#include "main/php_open_temporary_file.h"

Expand Down
2 changes: 0 additions & 2 deletions ext/soap/php_soap.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#define PHP_SOAP_H

#include "php.h"
#include "php_globals.h"
#include "ext/standard/info.h"
#include "ext/standard/php_standard.h"
#if defined(HAVE_PHP_SESSION) && !defined(COMPILE_DL_SESSION)
#include "ext/session/php_session.h"
Expand Down
1 change: 0 additions & 1 deletion ext/sodium/libsodium.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#endif

#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "php_libsodium.h"
#include "zend_attributes.h"
Expand Down
1 change: 0 additions & 1 deletion ext/spl/php_spl.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#endif

#include "php.h"
#include "php_ini.h"
#include "php_main.h"
#include "ext/standard/info.h"
#include "php_spl.h"
Expand Down
1 change: 0 additions & 1 deletion ext/spl/php_spl.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#define PHP_SPL_H

#include "php.h"
#include <stdarg.h>

#define PHP_SPL_VERSION PHP_VERSION

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

#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "ext/standard/php_var.h"
#include "zend_smart_str.h"
#include "zend_interfaces.h"
Expand Down
1 change: 0 additions & 1 deletion ext/spl/spl_directory.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#endif

#include "php.h"
#include "php_ini.h"
#include "ext/standard/file.h"
#include "ext/standard/php_filestat.h"
#include "ext/standard/flock_compat.h"
Expand Down
1 change: 0 additions & 1 deletion ext/spl/spl_dllist.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include "zend_hash.h"

#include "php_spl.h"
#include "ext/standard/info.h"
#include "ext/standard/php_var.h"
#include "zend_smart_str.h"
#include "spl_functions.h"
Expand Down
4 changes: 0 additions & 4 deletions ext/spl/spl_exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,11 @@
#endif

#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "zend_interfaces.h"
#include "zend_exceptions.h"
#include "spl_exceptions_arginfo.h"

#include "php_spl.h"
#include "spl_functions.h"
#include "spl_engine.h"
#include "spl_exceptions.h"

PHPAPI zend_class_entry *spl_ce_LogicException;
Expand Down
2 changes: 0 additions & 2 deletions ext/spl/spl_fixedarray.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#endif

#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "zend_exceptions.h"

#include "php_spl.h"
Expand Down
2 changes: 0 additions & 2 deletions ext/spl/spl_iterators.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#endif

#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "zend_exceptions.h"
#include "zend_interfaces.h"
#include "ext/pcre/php_pcre.h"
Expand Down
2 changes: 0 additions & 2 deletions ext/spl/spl_observer.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
#endif

#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "ext/standard/php_array.h"
#include "ext/standard/php_var.h"
#include "zend_smart_str.h"
Expand Down
Loading
Loading