Re: Re: APC-3.0.10 issue

From: Date: Wed, 24 May 2006 09:00:49 +0000
Subject: Re: Re: APC-3.0.10 issue
References: 1 2 3 4 5 6 7  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-3805@lists.php.net to get a copy of this message
Well, i have found another interesting issue. This problem does not appear to happen on my linux box and seems related to solaris only. Here is the simplified test case. If anyone out there has a solaris box, and has the time/energy to run this test, i would be very grateful. It is rather involved takes about 20-30minutes... --- Start build instructions ---- mkdir phpd_build cd phpd_build mkdir local setenv PHPDPREFIX pwd/local setenv CFLAGS "-g" # downlaod cgi-fcgi libs wget http://www.fastcgi.com/dist/fcgi.tar.gz tar -xvzf fcgi-2.4.0.tar.gz cd fcgi-2.4.0 ./configure --prefix=$PHPDPREFIX make make install # make sure cgi-fcgi got built ls ../local/bin cd .. # setup build env setenv CFLAGS "-g -I$PHPDPREFIX/include -L$PHPDPREFIX/lib" tar -xvzf php-4.4.2.tar.gz cd php-4.4.2/ # you may want to add additional flags here, i just wanted bare bones php for testing ./configure --prefix=$PHPDPREFIX --disable-cli --enable-fastcgi make make install cp php.ini-dist ../local/lib/php/phpd.ini # you will need to add the extension_dir="$PHPDPREFIX/lib/" and extension "apc.so" # to the phpd.ini file. vi ../local/lib/php/phpd.ini cd .. # make sure our files are installed ls local/bin # should see cgi-fcgi* php* php-config* phpize* #download apc lynx http://pecl.php.net/get/APC tar -xvzf APC-3.0.10.tgz cd APC-3.0.10 $PHPDPREFIX/bin/phpize ./configure --prefix=$PHPDPREFIX --enable-apc make # NOTE: when building on SunOS 5.8 I needed to modify php_apc.c changing # STD_PHP_INI_BOOLEAN("apc.slam_defense") from OnUpdateInt to OnUpdateBool # as it was causing a bus error durring ini phase of startup. I did not need # to do this on linux. cp modules/apc.so ../local/lib/php/
                                                           cd $PHPDPREFIX/bin
# start php up as a daemon... ./php -b 127.0.0.1:9968 -c ../lib/php/phpd.ini # in a new terminal cd $PHPDPREFIX/bin # of course that env will not be set. setenv SCRIPT_FILENAME /full/path/to/test.php ./cgi-fcgi -bind -connect 127.0.0.1:9968 # on linux you should be able to reliably run the command above over and over # however on solaris it runs fine the first time and cores on the second hit. === file test.php === <?php # hello world seems to also work $cache = apc_cache_info(); var_dump($cache); ?> === end file test.php === --- end build instructions --- James M. Luedke wrote: --- deleted ---

« previous php.pecl.dev (#3805) next »