Your message dated Wed, 19 Apr 2023 09:15:13 +0200
with message-id <[email protected]>
and subject line xcache has been removed from Debian
has caused the Debian Bug report #864494,
regarding php5-xcache: Identical files with a static variable that has__DIR__
leads to wrong results.
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
864494: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864494
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: php5-xcache
Version: 3.2.0-1
Severity: important
Dear Maintainer,
when two php source files are identical and they use a static variable which
has __DIR__ or __FILE__ in it,
it will get cached once (which itself is not a bug), but when the files are
requested,
the othe returns __DIR__ or __FILE__ from the first accessed instance. It seems
like these specail variables
turn into static strings upon inserting into the cache. This error originally
appeared when copying composer
installations (composer uses a class that has static variable with __DIR__ in
the value).
To reproduce the error only four simple files are necessary:
testmain1.php:
<?php
require_once 'testinclude1.php';
var_dump($myfilename);
testinclude1.php:
<?php
static $myfilename=__FILE__;
testmain2.php:
<?php
require_once 'testinclude2.php';
var_dump($myfilename);
testinclude2.php:
<?php
static $myfilename=__FILE__;
After browsing to testmain1.php and then to testmain2.php
i see
string(35) "/var/www/testcache/testinclude1.php"
and
string(35) "/var/www/testcache/testinclude1.php"
while the expected results are
string(35) "/var/www/testcache/testinclude1.php"
and
string(35) "/var/www/testcache/testinclude2.php"
When the varialbes are NOT static, it gets interpretted correctly even though
the file is cached only once in the memory.
I've also reported the bug in xcache's Trac:
https://xcache.lighttpd.net/ticket/371
Regards
Jiri
--- End Message ---
--- Begin Message ---
Version: 3.2.0-1+rm
xcache was last released with Debian 8 (jessie) in April 2015
and has been removed from the Debian archive afterwards.
See https://bugs.debian.org/819945 for details on the removal.
Regular security support for jessie ended in June 2018 and LTS support
ended in June 2020. I'm closing the remaining bug reports now.
Andreas
--- End Message ---