@@ -1851,11 +1851,7 @@ static zend_mm_heap *zend_mm_init(void)
1851
1851
1852
1852
if (UNEXPECTED (chunk == NULL )) {
1853
1853
#if ZEND_MM_ERROR
1854
- #ifdef _WIN32
1855
- stderr_last_error ("Can't initialize heap" );
1856
- #else
1857
- fprintf (stderr , "\nCan't initialize heap: [%d] %s\n" , errno , strerror (errno ));
1858
- #endif
1854
+ fprintf (stderr , "Can't initialize heap\n" );
1859
1855
#endif
1860
1856
return NULL ;
1861
1857
}
@@ -2982,11 +2978,7 @@ ZEND_API zend_mm_heap *zend_mm_startup_ex(const zend_mm_handlers *handlers, void
2982
2978
chunk = (zend_mm_chunk * )handlers -> chunk_alloc (& tmp_storage , ZEND_MM_CHUNK_SIZE , ZEND_MM_CHUNK_SIZE );
2983
2979
if (UNEXPECTED (chunk == NULL )) {
2984
2980
#if ZEND_MM_ERROR
2985
- #ifdef _WIN32
2986
- stderr_last_error ("Can't initialize heap" );
2987
- #else
2988
- fprintf (stderr , "\nCan't initialize heap: [%d] %s\n" , errno , strerror (errno ));
2989
- #endif
2981
+ fprintf (stderr , "Can't initialize heap\n" );
2990
2982
#endif
2991
2983
return NULL ;
2992
2984
}
@@ -3029,11 +3021,7 @@ ZEND_API zend_mm_heap *zend_mm_startup_ex(const zend_mm_handlers *handlers, void
3029
3021
if (!storage ) {
3030
3022
handlers -> chunk_free (& tmp_storage , chunk , ZEND_MM_CHUNK_SIZE );
3031
3023
#if ZEND_MM_ERROR
3032
- #ifdef _WIN32
3033
- stderr_last_error ("Can't initialize heap" );
3034
- #else
3035
- fprintf (stderr , "\nCan't initialize heap: [%d] %s\n" , errno , strerror (errno ));
3036
- #endif
3024
+ fprintf (stderr , "Can't initialize heap\n" );
3037
3025
#endif
3038
3026
return NULL ;
3039
3027
}
0 commit comments