cvs: pecl /apc apc_main.c
| From: | Rasmus Lerdorf | Date: | Sun, 19 Sep 2004 06:26:47 +0000 |
| Subject: | cvs: pecl /apc apc_main.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-1847@lists.php.net to get a copy of this message | ||
rasmus Sun Sep 19 02:26:47 2004 EDT
Modified files:
/pecl/apc apc_main.c
Log:
I have changed everything else around, my as well get rid of this
redundant function call now as well.
http://cvs.php.net/diff.php/pecl/apc/apc_main.c?r1=3.22&r2=3.23&ty=u
Index: pecl/apc/apc_main.c
diff -u pecl/apc/apc_main.c:3.22 pecl/apc/apc_main.c:3.23
--- pecl/apc/apc_main.c:3.22 Thu Sep 16 12:49:27 2004
+++ pecl/apc/apc_main.c Sun Sep 19 02:26:47 2004
@@ -14,7 +14,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: apc_main.c,v 3.22 2004/09/16 16:49:27 rasmus Exp $ */
+/* $Id: apc_main.c,v 3.23 2004/09/19 06:26:47 rasmus Exp $ */
#include "apc_php.h"
#include "apc_main.h"
@@ -227,36 +227,6 @@
}
/* }}} */
-/* {{{ my_execute */
-static void my_execute(zend_op_array* op_array TSRMLS_DC)
-{
- old_execute(op_array TSRMLS_CC);
-
-/* Delaying the pop and release here to keep the cache entries on
- * the stack in case we get interrupted before request shutdown.
- * In the case of an interruption our module shutdown function may
- * need to clean everything up, and in order for it to remove the
- * function and class entries we may have added over the course of
- * this request we need to keep all our cache entries around.
- * This should mean we don't even need to override zend_execute with
- * this function anymore, so if this works well this entire function
- * should just go away. -Rasmus
- */
-#if 0
- if (apc_stack_size(APCG(cache_stack)) > 0) {
- apc_cache_entry_t* cache_entry =
- (apc_cache_entry_t*) apc_stack_top(APCG(cache_stack));
-
- /* compare pointers to determine if op_array's are same */
- if (cache_entry->op_array->opcodes == op_array->opcodes) {
- apc_stack_pop(APCG(cache_stack));
- apc_cache_release(APCG(cache), cache_entry);
- }
- }
-#endif
-}
-/* }}} */
-
/* {{{ module init and shutdown */
int apc_module_init()
@@ -278,10 +248,6 @@
old_compile_file = zend_compile_file;
zend_compile_file = my_compile_file;
- /* override execution */
- old_execute = zend_execute;
- zend_execute = my_execute;
-
APCG(initialized) = 1;
return 0;
}