Skip to content

Commit eceb70b

Browse files
committed
export micro_get_sfxsize_limit to php
1 parent d7577da commit eceb70b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

php_micro.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,9 @@ ZEND_END_ARG_INFO()
355355
ZEND_BEGIN_ARG_INFO(arginfo_micro_get_sfxsize, 0)
356356
ZEND_END_ARG_INFO()
357357

358+
ZEND_BEGIN_ARG_INFO(arginfo_micro_get_sfxsize_limit, 0)
359+
ZEND_END_ARG_INFO()
360+
358361
ZEND_BEGIN_ARG_INFO(arginfo_micro_get_self_filename, 0)
359362
ZEND_END_ARG_INFO()
360363

@@ -364,7 +367,7 @@ ZEND_END_ARG_INFO()
364367
ZEND_BEGIN_ARG_INFO(arginfo_micro_open_self, 0)
365368
ZEND_END_ARG_INFO()
366369

367-
// clang-format off
370+
// clang-format off
368371

369372
#ifdef PHP_WIN32
370373
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_realloc_console, 0, 0, _IS_BOOL, 0)
@@ -387,6 +390,7 @@ static const zend_function_entry additional_functions[] = {
387390
// micro sapi functions
388391
PHP_FE(micro_get_sfx_filesize, arginfo_micro_get_sfx_filesize)
389392
PHP_FE(micro_get_sfxsize, arginfo_micro_get_sfxsize)
393+
PHP_FE(micro_get_sfxsize_limit, arginfo_micro_get_sfxsize_limit)
390394
PHP_FE(micro_get_self_filename, arginfo_micro_get_self_filename)
391395
PHP_FE(micro_version, arginfo_micro_version)
392396
PHP_FE(micro_open_self, arginfo_micro_open_self)

php_micro_fileinfo.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ PHPAPI PHP_FUNCTION(micro_get_sfx_filesize);
9292
*/
9393
PHPAPI PHP_FUNCTION(micro_get_sfxsize);
9494

95+
/*
96+
* zif_micro_get_sfxsize_limit
97+
* micro_get_sfxsize_limit() -> int
98+
* get sfx size in bytes
99+
*/
100+
PHPAPI PHP_FUNCTION(micro_get_sfxsize_limit);
101+
95102
/*
96103
* zif_micro_get_self_filename
97104
* micro_get_self_filename() -> string

0 commit comments

Comments
 (0)