cvs: pecl /apc INSTALL php_apc.c

From: Date: Sat, 28 Jun 2003 18:17:20 +0000
Subject: cvs: pecl /apc INSTALL php_apc.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-345@lists.php.net to get a copy of this message
gschlossnagle Sat Jun 28 14:17:20 2003 EDT Modified files: /pecl/apc php_apc.c INSTALL Log: removed zend_extension stuff (it's not really a zend extension anyway, and this may enable compatibility with zend optimizer). Fixed readme to reflect above change, as well as the standardization of fcntl() locks. Index: pecl/apc/php_apc.c diff -u pecl/apc/php_apc.c:3.23 pecl/apc/php_apc.c:3.24 --- pecl/apc/php_apc.c:3.23 Fri Jun 20 14:40:14 2003 +++ pecl/apc/php_apc.c Sat Jun 28 14:17:20 2003 @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_apc.c,v 3.23 2003/06/20 18:40:14 rasmus Exp $ */ +/* $Id: php_apc.c,v 3.24 2003/06/28 18:17:20 gschlossnagle Exp $ */ #include "php_apc.h" #include "apc_cache.h" @@ -96,7 +96,7 @@ #else php_info_print_table_row(2, "MMAP Support", "Disabled"); #endif - php_info_print_table_row(2, "Revision", "$Revision: 3.23 $"); + php_info_print_table_row(2, "Revision", "$Revision: 3.24 $"); php_info_print_table_row(2, "Build Date", __DATE__ " " __TIME__); DISPLAY_INI_ENTRIES(); php_info_print_table_end(); @@ -289,46 +289,6 @@ #ifdef COMPILE_DL_APC ZEND_GET_MODULE(apc) #endif - -/* }}} */ - -/* {{{ zend extension definitions */ - -ZEND_DLEXPORT int apc_zend_startup(zend_extension* e) -{ - return zend_startup_module(&apc_module_entry); -} - -ZEND_DLEXPORT void apc_zend_shutdown(zend_extension* e) -{ - /* Do nothing */ -} - -#ifndef ZEND_EXT_API -#define ZEND_EXT_API ZEND_DLEXPORT -#endif - -ZEND_EXTENSION(); - -ZEND_DLEXPORT zend_extension zend_extension_entry = { - "APC", - "2.0b", - "Daniel Cowgill <dcowgill@communityconnect.com>", - "http://apc.communityconnect.com/", - "Copyright (c) 2001-2003 by Community Connect Inc.", - apc_zend_startup, - apc_zend_shutdown, - NULL, /* activate_func_t */ - apc_deactivate, /* deactivate_func_t */ - NULL, /* message_handler_func_t */ - NULL, /* op_array_handler_func_t */ - NULL, /* statement_handler_func_t */ - NULL, /* fcall_begin_handler_func_t */ - NULL, /* fcall_end_handler_func_t */ - NULL, /* op_array_ctor_func_t */ - NULL, /* op_array_dtor_func_t */ - STANDARD_ZEND_EXTENSION_PROPERTIES -}; /* }}} */ Index: pecl/apc/INSTALL diff -u pecl/apc/INSTALL:3.30 pecl/apc/INSTALL:3.31 --- pecl/apc/INSTALL:3.30 Fri Jun 27 12:30:40 2003 +++ pecl/apc/INSTALL Sat Jun 28 14:17:20 2003 @@ -13,6 +13,7 @@ o 4.2.2 o 4.2.3 o 4.3.0 + o 4.3.2 Versions prior to 4.2.2 have been officially deprecated by the PHP group, and therefore aren't supported by APC either. @@ -26,7 +27,7 @@ $ gunzip -c apc_x.y.tar.gz | tar xf - $ cd apc_x.y $ /usr/local/php/bin/phpize -$ ./configure --with-php-config=/usr/local/bin/php-config +$ ./configure --enable-apc $ make $ make install @@ -39,7 +40,7 @@ Next you must edit your php.ini file, which is normally located in /usr/local/php/lib/php.ini, and add the following line: - zend_extension="/path/to/php/extensions/apc.so" + extension="apc.so" Replace "/path/to/php/extensions" with whatever path was displayed when you ran make install above. @@ -121,7 +122,7 @@ phpize creates a configure script. The only option you need to specify is the location of your php-config script: - ./configure --with-php-config=/usr/local/bin/php-config + ./configure --with-enable-apc php-config should be located in the same directory as phpize. @@ -129,10 +130,10 @@ add --enable-mmap to your configure line. If you don't understand the difference between the two, stick with the default. - If you prefer to use fcntl() locks over sysv IPC semaphores, add - --enable-fcntl to your configure line. If you don't have a problem + If you prefer to use sysv IPC semaphores over the safer fcntl() locks, add + --enable-sem to your configure line. If you don't have a problem with your server segaulting, or any other unnatural accumulation of - semaphores on your system, stick with the default. + semaphores on your system, the semaphore based locking is slightly faster. 4. Compile and install the files. Simply type: make install @@ -150,7 +151,7 @@ Copy the path /path/to/extension/ and add the following line to your php.ini file (normally located in /usr/local/php/lib/php.ini): - zend_extension="/path/to/extension/apc.so" + extension="apc.so" If you don't have a php.ini file in that location, you can create it now. @@ -240,10 +241,11 @@ apc.mmap_file_mask If compiled with MMAP support by using --enable-mmap this is the mktemp-style file_mask to pass to the - mmap module for determing whether your mmap'ed memory - region is going to be file-backed or shared memory - backed. To use POSIX-style shm_open/mmap put a ".shm" - somewhere in your mask. eg. "/apc.shm.XXXXXX" - You can also set it to "/dev/zero" to use your kernel's - dev/zero interface to anonymous mmap'ed memory. Leaving - it undefined will force an anonymous mmap. + mmap module for determing whether your mmap'ed memory + region is going to be file-backed or shared memory + backed. To use POSIX-style shm_open/mmap put a ".shm" + somewhere in your mask. eg. "/apc.shm.XXXXXX" + You can also set it to "/dev/zero" to use your + kernel's /dev/zero interface to anonymous mmap'ed + memory. Leaving it undefined will force an + anonymous mmap.

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