Remove unused includes of php_random.h (#13131)

Before this change php_random.h was listed in 146 different *.dep files for a

    env CC=clang ./configure --without-sqlite3 --without-pdo-sqlite

build, after this change it's only listed in 110 of them, preventing uselessly
recompiling those files when working on ext/random, mostly caused by the include
in ext/standard/basic_functions.h.
This commit is contained in:
Tim Düsterhus 2024-01-12 18:35:18 +01:00 committed by GitHub
parent e31bf3ad4d
commit 2b30f18708
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 0 additions and 7 deletions

View File

@ -22,7 +22,6 @@
#include "php.h"
#if defined(HAVE_LIBXML) && defined(HAVE_DOM)
#include "ext/random/php_random.h"
#include "php_dom.h"
#include "php_dom_arginfo.h"
#include "dom_properties.h"

View File

@ -27,9 +27,6 @@
#include "url_scanner_ex.h"
/* for MT_N */
#include "ext/random/php_random.h"
#if defined(_WIN32) && !defined(__clang__)
#include <intrin.h>
#endif

View File

@ -43,7 +43,6 @@
#endif
#include "php_crypt.h"
#include "ext/random/php_random.h"
/* Used to check DES salts to ensure that they contain only valid characters */
#define IS_VALID_SALT_CHARACTER(c) (((c) >= '.' && (c) <= '9') || ((c) >= 'A' && (c) <= 'Z') || ((c) >= 'a' && (c) <= 'z'))

View File

@ -39,7 +39,6 @@
#include "ext/standard/php_array.h"
#include "ext/standard/php_assert.h"
#include "ext/reflection/php_reflection.h"
#include "ext/random/php_random.h"
#if HAVE_BCMATH
#include "ext/bcmath/php_bcmath.h"
#endif

View File

@ -22,7 +22,6 @@
#endif
#include "php_reentrancy.h"
#include "ext/random/php_random.h" /* for PHP_RAND_MAX */
enum {
LOCALTIME_R,