From: Sterling Hughes Date: Tue, 20 May 2003 02:12:03 +0000 (+0000) Subject: data corruption is for sissy boys X-Git-Tag: RELEASE_1_0_2~709 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e161dafeb416351c52b417616a81ebd0e42adce;p=php data corruption is for sissy boys --- diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index 08b88462be..7159157ccb 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -363,7 +363,7 @@ php_sxe_object_new(TSRMLS_D) { php_sxe_object *intern; - intern = emalloc(sizeof(php_sxe_object)); + intern = ecalloc(1, sizeof(php_sxe_object)); intern->zo.ce = sxe_class_entry; intern->zo.in_get = 0; intern->zo.in_set = 0;