diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index eb1cc68656e..6831ae31af1 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -304,7 +304,7 @@ ZEND_API char *zend_strndup(const char *s, uint length) } -ZEND_API int set_memory_limit(unsigned int memory_limit) +ZEND_API int zend_set_memory_limit(unsigned int memory_limit) { #if MEMORY_LIMIT ALS_FETCH(); diff --git a/Zend/zend_alloc.h b/Zend/zend_alloc.h index 9fe4d74320f..85492a2c43b 100644 --- a/Zend/zend_alloc.h +++ b/Zend/zend_alloc.h @@ -92,7 +92,7 @@ ZEND_API void _persist_alloc(void *ptr); #define safe_estrdup(ptr) ((ptr)?(estrdup(ptr)):(empty_string)) #define safe_estrndup(ptr,len) ((ptr)?(estrndup((ptr),(len))):(empty_string)) -ZEND_API int set_memory_limit(unsigned int memory_limit); +ZEND_API int zend_set_memory_limit(unsigned int memory_limit); ZEND_API void start_memory_manager(void); ZEND_API void shutdown_memory_manager(int silent, int clean_cache);