Skip to content

Commit d2e90f2

Browse files
committed
ext/opcache/zend_file_cache: export zend_file_cache_script_store_fd()
1 parent 277b24d commit d2e90f2

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

ext/opcache/zend_file_cache.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,12 +1047,7 @@ static bool zend_file_cache_script_write(int fd, const zend_persistent_script *s
10471047
#endif
10481048
}
10491049

1050-
/**
1051-
* Helper function for zend_file_cache_script_store().
1052-
*
1053-
* @return true on success, false on error
1054-
*/
1055-
static bool zend_file_cache_script_store_fd(const int fd, zend_persistent_script *script, const bool in_shm)
1050+
bool zend_file_cache_script_store_fd(const int fd, zend_persistent_script *script, const bool in_shm)
10561051
{
10571052
zend_file_cache_metainfo info;
10581053
void *mem, *buf;

ext/opcache/zend_file_cache.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ typedef struct _zend_file_cache_metainfo {
3535

3636
BEGIN_EXTERN_C()
3737

38+
/**
39+
* Helper function for zend_file_cache_script_store().
40+
*
41+
* @return true on success, false on error
42+
*/
43+
bool zend_file_cache_script_store_fd(const int fd, zend_persistent_script *script, const bool in_shm);
44+
3845
void zend_file_cache_unserialize(zend_persistent_script *script,
3946
void *buf);
4047

0 commit comments

Comments
 (0)