cvs: pecl /apc apc_compile.c

From: Date: Fri, 03 Sep 2004 18:02:22 +0000
Subject: cvs: pecl /apc apc_compile.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-1776@lists.php.net to get a copy of this message
rasmus Fri Sep 3 14:02:22 2004 EDT Modified files: /pecl/apc apc_compile.c Log: Oops, that was a bit too fast. Let's not mess up the types here. http://cvs.php.net/diff.php/pecl/apc/apc_compile.c?r1=3.9&r2=3.10&ty=u Index: pecl/apc/apc_compile.c diff -u pecl/apc/apc_compile.c:3.9 pecl/apc/apc_compile.c:3.10 --- pecl/apc/apc_compile.c:3.9 Fri Sep 3 13:44:52 2004 +++ pecl/apc/apc_compile.c Fri Sep 3 14:02:22 2004 @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: apc_compile.c,v 3.9 2004/09/03 17:44:52 rasmus Exp $ */ +/* $Id: apc_compile.c,v 3.10 2004/09/03 18:02:22 rasmus Exp $ */ #include "apc_compile.h" #include "apc_globals.h" @@ -184,7 +184,8 @@ if(local_dst_alloc) deallocate(dst); return NULL; } - return my_copy_zval(*dst, *src, allocate, deallocate); + if(!my_copy_zval(*dst, *src, allocate, deallocate)) return NULL; + return dst; } /* }}} */ @@ -261,7 +262,7 @@ dst ->op_type == IS_UNUSED); if (src->op_type == IS_CONST) { - dst = my_copy_zval(&dst->u.constant, &src->u.constant, allocate, deallocate); + if(!my_copy_zval(&dst->u.constant, &src->u.constant, allocate, deallocate)) return NULL; } return dst;

« previous php.pecl.cvs (#1776) next »