Custom Query (267 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (58 - 60 of 267)

Ticket Resolution Summary Owner Reporter
#94 fixed Garbage collector disabled when xcache.cacher set to off moo void
Description

On 1.2 and i think also head revision,

the garbage collector doesn't work when xcache.cacher is set to off (got some segfault, and i was trying to isolate the cause).

But with xcache.cacher set to off, i got problems with the garbage collector countdown staying @ maximum level. and therefore var_cache is useless if we use expiration for semi dynamical datas.

#193 fixed Hash collision when files are dynamically deleted and created again moo c960657
Description

If a file is deleted and another file is created with another name immediately after, it looks as if the new file sometimes inherits the old file's inode number.

This behaviour is illustrated by the following commands. On my system the two ls calls output identical values:

rm -f file1 file2 ; touch file1 ; ls -i file1 ; rm file1 ; touch file2 ; ls -i file2

This causes a problem with XCache that (AFAICT) uses the inode number as a cache key. Thus, if a script dynamically deletes a file, oldfile.php, and subsequently creates another, newfile.php, "include 'newfile.php';" may lead to the inclusion of the code in oldfile.php. This happens e.g. with Smarty that compiles templates to PHP file.

Here is a test case in PHP:

<?php
sleep(2);
for ($i = 0; $i < 2; $i++) {
    $file = '/tmp/file' . $i . '.php';
    file_put_contents($file, '<?php var_dump("This is ' . $file . '"); ?' . '>');
    include $file;
    $stat = stat($file);
    var_dump('Now including ' . $file . ', inode=' . $stat['ino']);
    unlink($file);
}
?>

Expected result:

string(22) "This is /tmp/file0.php"
string(43) "Now including /tmp/file0.php, inode=2277518"
string(22) "This is /tmp/file1.php"
string(43) "Now including /tmp/file1.php, inode=2277518"

Actual result:

string(22) "This is /tmp/file0.php"
string(43) "Now including /tmp/file0.php, inode=2277518"
string(22) "This is /tmp/file0.php"
string(43) "Now including /tmp/file1.php, inode=2277518"

If you remove the initial "sleep(2)" it works as expected. Without the sleep() it looks as the files are never cached (they don't show up on the XCache Administration page).

#215 invalid How Can install xcache with Zend Optimizer v3.3.3 moo alhgr@…
Description

Hello,

How Can install xcache with Zend Optimizer v3.3.3

becuse when i install it with Zend Optimizer v3.3.3 the apache not working !!

Thanks,

Note: See TracQuery for help on using queries.