1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

declare random globals as public API

This commit is contained in:
Remi Collet
2022-09-19 12:43:44 +02:00
committed by Remi Collet
parent 5a868022e7
commit 28a4d7676a
2 changed files with 3 additions and 1 deletions

View File

@@ -319,6 +319,8 @@ ZEND_BEGIN_MODULE_GLOBALS(random)
int random_fd;
ZEND_END_MODULE_GLOBALS(random)
PHPAPI ZEND_EXTERN_MODULE_GLOBALS(random)
# define RANDOM_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(random, v)
#endif /* PHP_RANDOM_H */

View File

@@ -64,7 +64,7 @@
#include "random_arginfo.h"
ZEND_DECLARE_MODULE_GLOBALS(random)
PHPAPI ZEND_DECLARE_MODULE_GLOBALS(random)
PHPAPI zend_class_entry *random_ce_Random_Engine;
PHPAPI zend_class_entry *random_ce_Random_CryptoSafeEngine;