Re: New package (sort of...) - PEAR2_Cache_SHM

From: Date: Sat, 21 Jan 2012 11:01:51 +0000
Subject: Re: New package (sort of...) - PEAR2_Cache_SHM
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-54733@lists.php.net to get a copy of this message
Le 20/01/2012 21:56, Васил Рангелов a écrit :
Hello. Previously, I wrote asking about PEAR2_Cache, but since no one said anything, I'm assuming there's nothing in the works, correct? Well, I've made an initial implementation of a shared memory package, and would highly appreciate comments on it, as I'm new to these kinds of locks and stuff, at least in terms of PHP (my experience starts and ends at C#'s lock language construct). A particular point I'm specifically looking towards... does anyone have an idea how to unit test such a package (on Windows too)? Anyway, the package is currently at https://github.com/boenrobot/Cache_SHM Regards, Vasil Rangelov
Hello Vasil I've just have a look on your source code at GitHub, and I want try to help you a little. I've learnt, with your proposal, that extension wincache exists. So to try it on Windows, you should : - visit PECL home page at http://pecl.php.net/package/WinCache - follow the link http://www.iis.net/expand/WinCacheForPhp - download either PHP 5.2 or 5.3 no-thread-safe versions by links WinCache 1.1 for PHP 5.2 - x86 WinCache 1.1 for PHP 5.3 - x86 Windows Exe are self-extracting archive : you can run it or open it with your favorite Zip Client. There are all you need : - WinCache Statistics Script "wincache.php" - DLL - docs Don't forget to test it with mod FASTCGI on IIS or Apache BTW, running PHP_CompatInfo with PHP 5.3.9 on your source code gave me fake negative. I should have to fix it especially with code that use namespaces. Another point: You should exclude NetBeans project configuration from your repository Perharps add a .gitignore file with nbproject directory https://github.com/boenrobot/Cache_SHM/tree/master/nbproject My first comments Laurent Laville

« previous php.pear.dev (#54733) next »