Skip to content

Commit c398694

Browse files
committed
Merge branch 'PHP-8.2'
* PHP-8.2: declare random globals as public API
2 parents 8f3c194 + 28a4d76 commit c398694

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ext/random/php_random.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,8 @@ ZEND_BEGIN_MODULE_GLOBALS(random)
319319
int random_fd;
320320
ZEND_END_MODULE_GLOBALS(random)
321321

322+
PHPAPI ZEND_EXTERN_MODULE_GLOBALS(random)
323+
322324
# define RANDOM_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(random, v)
323325

324326
#endif /* PHP_RANDOM_H */

ext/random/random.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
#include "random_arginfo.h"
6666

67-
ZEND_DECLARE_MODULE_GLOBALS(random)
67+
PHPAPI ZEND_DECLARE_MODULE_GLOBALS(random)
6868

6969
PHPAPI zend_class_entry *random_ce_Random_Engine;
7070
PHPAPI zend_class_entry *random_ce_Random_CryptoSafeEngine;

0 commit comments

Comments
 (0)