[prev in list] [next in list] [prev in thread] [next in thread]
List: pecl-cvs
Subject: [PECL-CVS] cvs: pecl /apc apc_compile.c
From: "Andrei Zmievski" <andrei () php ! net>
Date: 2005-10-28 21:57:02
Message-ID: cvsandrei1130536622 () cvsserver
[Download RAW message or body]
andrei Fri Oct 28 17:57:02 2005 EDT
Modified files:
/pecl/apc apc_compile.c
Log:
Copy class entry filename as well.
http://cvs.php.net/diff.php/pecl/apc/apc_compile.c?r1=3.28&r2=3.29&ty=u
Index: pecl/apc/apc_compile.c
diff -u pecl/apc/apc_compile.c:3.28 pecl/apc/apc_compile.c:3.29
--- pecl/apc/apc_compile.c:3.28 Fri Sep 30 03:50:31 2005
+++ pecl/apc/apc_compile.c Fri Oct 28 17:56:58 2005
@@ -28,7 +28,7 @@
*/
-/* $Id: apc_compile.c,v 3.28 2005/09/30 07:50:31 rasmus Exp $ */
+/* $Id: apc_compile.c,v 3.29 2005/10/28 21:56:58 andrei Exp $ */
#include "apc_compile.h"
#include "apc_globals.h"
@@ -772,16 +772,25 @@
}
dst->builtin_functions[n].fname = NULL;
}
+
+#ifdef ZEND_ENGINE_2
+ if (src->filename) {
+ if(!(dst->filename = apc_xstrdup(src->filename, allocate))) {
+ goto cleanup;
+ }
+ }
+#endif
return dst;
cleanup:
if(dst->name) deallocate(dst->name);
-#ifndef ZEND_ENGINE_2
- if(dst->refcount) deallocate(dst->refcount);
-#else
+#ifdef ZEND_ENGINE_2
if(dst->doc_comment) deallocate(dst->doc_comment);
+ if(dst->filename) deallocate(dst->filename);
+#else
+ if(dst->refcount) deallocate(dst->refcount);
#endif
if(dst->builtin_functions) deallocate(dst->builtin_functions);
--
PECL CVS Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic