Skip to content

Remove unused includes of php_random.h #13131

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
Jan 12, 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/dom/php_dom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 0 additions & 3 deletions ext/standard/basic_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion ext/standard/crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down
1 change: 0 additions & 1 deletion main/internal_functions_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion main/reentrancy.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#endif

#include "php_reentrancy.h"
#include "ext/random/php_random.h" /* for PHP_RAND_MAX */

enum {
LOCALTIME_R,
Expand Down