php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61430
Patch mh_fix_fpm_shm.diff revision 2012-03-18 21:40 UTC by michaelhood at gmail dot com

Patch mh_fix_fpm_shm.diff for FPM related Bug #61430

Patch version 2012-03-18 21:40 UTC

Return to Bug #61430 | Download this patch
Patch Revisions:

Developer: michaelhood@gmail.com

--- sapi/fpm/fpm/fpm_shm.c	2012-03-18 14:02:50.192201263 -0700
+++ sapi/fpm/fpm/fpm_shm.c	2012-03-18 14:07:47.261121355 -0700
@@ -35,7 +35,7 @@ void *fpm_shm_alloc(size_t size) /* {{{
 		return NULL;
 	}
 
-	memset(mem, size, 0);
+	memset(mem, 0, size);
 	fpm_shm_size += size;
 	return mem;
 }
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Fri Apr 18 00:01:21 2014 UTC