Skip to content

[random] remove unnecessary old header files #9058

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

Closed
wants to merge 2 commits into from
Closed
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
8 changes: 8 additions & 0 deletions UPGRADING.INTERNALS
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ PHP 8.2 INTERNALS UPGRADE NOTES
are deprecated (see main UPGRADING notes). To suppress the notice, e.g. to
avoid duplicates when processing the same value multiple times, pass or add
IS_CALLABLE_SUPPRESS_DEPRECATIONS to the check_flags parameter.
* php_lcg.h, php_rand.h, php_mt_rand.h and php_random.h has already removed in
ext/standard, They have been merged into a single ext/random/php_random.h
header file. If you are using them in an extension, change the headers to read as follows
#if PHP_VERSION_ID < 80200
# include "ext/standard/php_XYZ.h"
#else
# include "ext/random/php_random.h"
#endif

========================
2. Build system changes
Expand Down
1 change: 0 additions & 1 deletion ext/standard/php_lcg.h

This file was deleted.

1 change: 0 additions & 1 deletion ext/standard/php_mt_rand.h

This file was deleted.

1 change: 0 additions & 1 deletion ext/standard/php_rand.h

This file was deleted.

1 change: 0 additions & 1 deletion ext/standard/php_random.h

This file was deleted.