@@ -408,14 +408,14 @@ ZEND_COLD void zend_debug_alloc_output(char *format, ...)
408408#ifdef ZEND_WIN32
409409 OutputDebugString (output_buf );
410410#else
411- f //printf (stderr, "%s", output_buf);
411+ fprintf ( (stderr , "%s" , output_buf );
412412#endif
413413}
414414#endif
415415
416416static ZEND_COLD ZEND_NORETURN void zend_mm_panic (const char * message )
417417{
418- f //printf (stderr, "%s\n", message);
418+ fprintf ( (stderr , "%s\n" , message );
419419/* See http://support.microsoft.com/kb/190351 */
420420#ifdef ZEND_WIN32
421421 fflush (stderr );
@@ -459,10 +459,10 @@ static void stderr_last_error(char *msg)
459459 char * buf = php_win32_error_to_msg (err );
460460
461461 if (!buf [0 ]) {
462- f //printf (stderr, "\n%s: [0x%08lx]\n", msg, err);
462+ fprintf ( (stderr , "\n%s: [0x%08lx]\n" , msg , err );
463463 }
464464 else {
465- f //printf (stderr, "\n%s: [0x%08lx] %s\n", msg, err, buf);
465+ fprintf ( (stderr , "\n%s: [0x%08lx] %s\n" , msg , err , buf );
466466 }
467467
468468 php_win32_error_msg_free (buf );
@@ -504,7 +504,7 @@ static void zend_mm_munmap(void *addr, size_t size)
504504#else
505505 if (munmap (addr , size ) != 0 ) {
506506#if ZEND_MM_ERROR
507- f //printf (stderr, "\nmunmap() failed: [%d] %s\n", errno, strerror(errno));
507+ fprintf ( (stderr , "\nmunmap() failed: [%d] %s\n" , errno , strerror (errno ));
508508#endif
509509 }
510510#endif
@@ -540,7 +540,7 @@ static void *zend_mm_mmap_fixed(void *addr, size_t size)
540540
541541 if (ptr == MAP_FAILED ) {
542542#if ZEND_MM_ERROR && !defined(MAP_EXCL ) && !defined(MAP_TRYFIXED )
543- f //printf (stderr, "\nmmap() fixed failed: [%d] %s\n", errno, strerror(errno));
543+ fprintf ( (stderr , "\nmmap() fixed failed: [%d] %s\n" , errno , strerror (errno ));
544544#endif
545545 return NULL ;
546546 } else if (ptr != addr ) {
@@ -588,7 +588,7 @@ static void *zend_mm_mmap(size_t size)
588588
589589 if (ptr == MAP_FAILED ) {
590590#if ZEND_MM_ERROR
591- f //printf (stderr, "\nmmap() failed: [%d] %s\n", errno, strerror(errno));
591+ fprintf ( (stderr , "\nmmap() failed: [%d] %s\n" , errno , strerror (errno ));
592592#endif
593593 return NULL ;
594594 }
@@ -2097,7 +2097,7 @@ static zend_mm_heap *zend_mm_init(void)
20972097
20982098 if (UNEXPECTED (chunk == NULL )) {
20992099#if ZEND_MM_ERROR
2100- f //printf (stderr, "Can't initialize heap\n");
2100+ fprintf ( (stderr , "Can't initialize heap\n" );
21012101#endif
21022102 return NULL ;
21032103 }
@@ -3161,7 +3161,7 @@ ZEND_API void shutdown_memory_manager(bool silent, bool full_shutdown)
31613161
31623162static ZEND_COLD ZEND_NORETURN void zend_out_of_memory (void )
31633163{
3164- f //printf (stderr, "Out of memory\n");
3164+ fprintf ( (stderr , "Out of memory\n" );
31653165 exit (1 );
31663166}
31673167
@@ -3470,7 +3470,7 @@ ZEND_API zend_mm_heap *zend_mm_startup_ex(const zend_mm_handlers *handlers, void
34703470 chunk = (zend_mm_chunk * )handlers -> chunk_alloc (& tmp_storage , ZEND_MM_CHUNK_SIZE , ZEND_MM_CHUNK_SIZE );
34713471 if (UNEXPECTED (chunk == NULL )) {
34723472#if ZEND_MM_ERROR
3473- f //printf (stderr, "Can't initialize heap\n");
3473+ fprintf ( (stderr , "Can't initialize heap\n" );
34743474#endif
34753475 return NULL ;
34763476 }
@@ -3515,7 +3515,7 @@ ZEND_API zend_mm_heap *zend_mm_startup_ex(const zend_mm_handlers *handlers, void
35153515 if (!storage ) {
35163516 handlers -> chunk_free (& tmp_storage , chunk , ZEND_MM_CHUNK_SIZE );
35173517#if ZEND_MM_ERROR
3518- f //printf (stderr, "Can't initialize heap\n");
3518+ fprintf ( (stderr , "Can't initialize heap\n" );
35193519#endif
35203520 return NULL ;
35213521 }
0 commit comments