Skip to content

Commit 4472d05

Browse files
committed
Allow runtime setting of the memory limit
1 parent 2e9886d commit 4472d05

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Zend/zend_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ ZEND_API char *zend_strndup(const char *s, uint length)
304304
}
305305

306306

307-
ZEND_API int set_memory_limit(unsigned int memory_limit)
307+
ZEND_API int zend_set_memory_limit(unsigned int memory_limit)
308308
{
309309
#if MEMORY_LIMIT
310310
ALS_FETCH();

Zend/zend_alloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ ZEND_API void _persist_alloc(void *ptr);
9292
#define safe_estrdup(ptr) ((ptr)?(estrdup(ptr)):(empty_string))
9393
#define safe_estrndup(ptr,len) ((ptr)?(estrndup((ptr),(len))):(empty_string))
9494

95-
ZEND_API int set_memory_limit(unsigned int memory_limit);
95+
ZEND_API int zend_set_memory_limit(unsigned int memory_limit);
9696

9797
ZEND_API void start_memory_manager(void);
9898
ZEND_API void shutdown_memory_manager(int silent, int clean_cache);

0 commit comments

Comments
 (0)