Re: fix inode/device usage for win32, take #1

From: Date: Sat, 17 Oct 2009 20:11:28 +0000
Subject: Re: fix inode/device usage for win32, take #1
References: 1  Groups: php.apc.dev 
Request: Send a blank email to php-apc-dev+get-232@lists.php.net to get a copy of this message
Could you please give me the compiled extension? I would also like to test it. Jaroslav Hanslik Pierre Joye napsal(a):
hi, This is a first attempt (draft) to fix the pecl bug #16860 (http://pecl.php.net/bugs/bug.php?id=16860). Here are the changes I made so far: - add apc_ino_t and apc_dev_t - native ino_t/dev_t on non windows platform - unsigned int64 on windows - use string for the inode and device key (cache info and iterator) - device uses now the volume serial number (part of the file information) - inode uses now the file id (part of the file information) - add zend_file_handle support to apc_cache_make_file_key to avoid (no need to open/stat a file already opened) - to do: have to add fstat on unix - getfileinfofromhandle (stat-like) is used on windows I have tested it using fcgi and apache 2.2 on windows and everything seems to work as it should. However I like to test it further and fix any side effects before to apply it. Thomas Peterson also tested it using apache and CLI with the test cases provided in the report. Comments and suggestions welcome :) Cheers,


« previous php.apc.dev (#232) next »