|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-03-21 10:00 UTC] ihanic at yahoo dot com
Description: ------------ All works fine in prefork apache mode, BUT cat error_log apache2: /home/ihanic/cvs/apc/pecl/apc/apc_stack.c:50: apc_stack_clear: Assertion `stack != ((void *)0)' failed apache2 -V Server version: Apache/2.0.53 Server built: Mar 21 2005 15:52:20 Server's Module Magic Number: 20020903:9 Architecture: 32-bit Server compiled with.... -D APACHE_MPM_DIR="server/mpm/worker" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT="/usr" -D SUEXEC_BIN="/usr/bin/suexec" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="/etc/apache2/conf/mime.types" -D SERVER_CONFIG_FILE="/etc/apache2/conf/apache2.conf" PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 10:00:01 2025 UTC |
i did some changes long ago. there's so much TSRM relatived to fix, so i wonder how you compiled it. i mixed my modification by my other changes, which can't be accepted. i'd like to see apc for php5 rather than TSRM support :) this is part of the modify, just for example. Index: php_apc.c =================================================================== RCS file: /repository/pecl/apc/php_apc.c,v retrieving revision 3.41 diff -u -r3.41 php_apc.c --- php_apc.c 14 Nov 2004 18:07:25 -0000 3.41 +++ php_apc.c 8 Apr 2005 17:02:42 -0000 @@ -56,16 +56,18 @@ /* {{{ ZEND_DECLARE_MODULE_GLOBALS(apc) */ -PHPAPI ZEND_DECLARE_MODULE_GLOBALS(apc) +ZEND_DECLARE_MODULE_GLOBALS(apc) +apc_cache_t* apc_cache; /* the global compiler cache */ +apc_cache_t* apc_user_cache; /* the global user content cache */ static void php_apc_init_globals(zend_apc_globals* apc_globals TSRMLS_DC) { apc_globals->filters = NULL; apc_globals->initialized = 0; - apc_globals->cache = NULL; - apc_globals->cache_stack = NULL; apc_globals->compiled_filters = NULL; apc_globals->cache_by_default = 1; + apc_globals->cache_stack = apc_stack_create(0); + apc_globals->user_cache_stack = apc_stack_create(0); apc_globals->slam_defense = 0; } @@ -81,6 +83,8 @@ apc_efree(apc_globals->filters); } + apc_stack_destroy(apc_globals->cache_stack); + apc_stack_destroy(apc_globals->user_cache_stack); /* the rest of the globals are cleaned up in apc_module_shutdown() */ } #endif @@ -92,6 +96,7 @@