[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pecl-cvs
Subject:    [PECL-CVS] cvs: pecl /apc apc_main.c
From:       "Pierre-Alain Joye" <pajoye () php ! net>
Date:       2009-05-27 17:51:55
Message-ID: cvspajoye1243446715 () cvsserver
[Download RAW message or body]

pajoye		Wed May 27 17:51:55 2009 UTC

  Modified files:              
    /pecl/apc	apc_main.c 
  Log:
  - fix TS build
  
http://cvs.php.net/viewvc.cgi/pecl/apc/apc_main.c?r1=3.148&r2=3.149&diff_format=u
Index: pecl/apc/apc_main.c
diff -u pecl/apc/apc_main.c:3.148 pecl/apc/apc_main.c:3.149
--- pecl/apc/apc_main.c:3.148	Mon Mar 16 14:36:18 2009
+++ pecl/apc/apc_main.c	Wed May 27 17:51:55 2009
@@ -28,7 +28,7 @@
 
  */
 
-/* $Id: apc_main.c,v 3.148 2009/03/16 14:36:18 jani Exp $ */
+/* $Id: apc_main.c,v 3.149 2009/05/27 17:51:55 pajoye Exp $ */
 
 #include "apc_php.h"
 #include "apc_main.h"
@@ -101,6 +101,7 @@
     apc_function_t *fn;
     int status = FAILURE;
     apc_context_t ctxt = {0,};
+    TSRMLS_FETCH();
 
     ctxt.pool = apc_pool_create(APC_UNPOOL, apc_php_malloc, apc_php_free, \
apc_sma_protect, apc_sma_unprotect);  ctxt.copy = APC_COPY_OUT_OPCODE;
@@ -225,8 +226,9 @@
 
     apc_class_t *cl;
     apc_context_t ctxt = {0,};
+    TSRMLS_FETCH();
 
-    if(zend_is_compiling(TSRMLS_CC)) { return FAILURE; }
+    if(zend_is_compiling(TSRMLS_C)) { return FAILURE; }
 
     if(zend_hash_quick_find(APCG(lazy_class_table), name, len, hash, (void**)&cl) == \
FAILURE) {  return FAILURE;
@@ -235,7 +237,7 @@
     ctxt.pool = apc_pool_create(APC_UNPOOL, apc_php_malloc, apc_php_free, \
apc_sma_protect, apc_sma_unprotect);  ctxt.copy = APC_COPY_OUT_OPCODE;
 
-    if(install_class(*cl, &ctxt, 0) == FAILURE) {
+    if(install_class(*cl, &ctxt, 0 TSRMLS_CC) == FAILURE) {
         apc_wprint("apc_lookup_class_hook: could not install %s", name);
         return FAILURE;
     }
@@ -306,6 +308,7 @@
 
 /* {{{ apc_defined_function_hook */
 int apc_defined_function_hook(zval *internal, zval *user) {
+    TSRMLS_FETCH();
   zend_hash_apply_with_arguments(APCG(lazy_function_table), (apply_func_args_t) \
copy_function_name, 2, internal, user);  return 1;
 }
@@ -313,6 +316,7 @@
 
 /* {{{ apc_declared_class_hook */
 int apc_declared_class_hook(zval *classes, zend_uint mask, zend_uint comply) {
+    TSRMLS_FETCH();
   zend_hash_apply_with_arguments(APCG(lazy_class_table), (apply_func_args_t) \
copy_class_or_interface_name, 3, classes, mask, comply);  return 1;
 }



-- 
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