Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php-apc for windows xampp

I need to install php-apc library on windows just to be able to keep developing my app on windows as well.

I went to http://downloads.php.net/pierre/ and downloaded php_apc-3.1.10-5.3-vc9-x86.zip . The problem is know that inside the zip file, there are 2 folders that contain the php apc library, nts and ts folders!

From which should I copy the library to my c:\xampp\php\ext folder? What is the difference?

like image 322
Alex Avatar asked May 24 '12 11:05

Alex


People also ask

What is APCu PHP?

APCu is an in-memory key-value store for PHP. Keys are of type string and values can be any PHP variables. APCu only supports userland caching of variables. APCu is APC stripped of opcode caching. The first APCu codebase was versioned 4.0.


2 Answers

Run phpinfo() and check Zend Extension Build. In my case it's API220090626,NTS,VC9, so it's nts. The difference between ts and nts is explained here

like image 178
matino Avatar answered Sep 28 '22 06:09

matino


Look in phpinfo() for Thread Safety key :

IF Thread Safety==enabled -> copy from TS folder

IF Thread Safety==disabled -> copy from NTS folder

Hope this helps !

like image 27
Justin T. Avatar answered Sep 28 '22 07:09

Justin T.