val Thu Oct 14 08:59:06 2004 EDT
Modified files:
/pecl/bcompiler bcompiler.c
Log:
fix crash on function calls in bytecode
http://cvs.php.net/diff.php/pecl/bcompiler/bcompiler.c?r1=1.58&r2=1.59&ty=u
Index: pecl/bcompiler/bcompiler.c
diff -u pecl/bcompiler/bcompiler.c:1.58 pecl/bcompiler/bcompiler.c:1.59
--- pecl/bcompiler/bcompiler.c:1.58 Mon Oct 11 08:42:37 2004
+++ pecl/bcompiler/bcompiler.c Thu Oct 14 08:59:05 2004
@@ -19,7 +19,7 @@
| Mike Bretz <mike@xxxxxxxxxxxxxxxx> |
+----------------------------------------------------------------------+
*/
-/* $Id: bcompiler.c,v 1.58 2004/10/11 12:42:37 val Exp $ */
+/* $Id: bcompiler.c,v 1.59 2004/10/14 12:59:05 val Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -3187,6 +3187,7 @@
void apc_create_zend_function(zend_function** zf TSRMLS_DC)
{
*zf = (zend_function*) emalloc(sizeof(zend_function));
+ memset(*zf, 0, sizeof(zend_function)); /* ensure it's empty */
apc_deserialize_zend_function(*zf TSRMLS_CC);
}
|