Apc path canonicalization patch
| From: | Gopal V | Date: | Fri, 16 Mar 2007 06:41:28 +0000 |
| Subject: | Apc path canonicalization patch | ||
| Groups: | php.apc.dev | ||
| Request: | Send a blank email to php-apc-dev+get-65@lists.php.net to get a copy of this message | ||
Hi,
It is really annoying to have to change each and every file in
all libs you use to have absolute include paths, so I've got a
quick patch to "work around" that. I've so far tried not to
cache anything differently from what Zend throws out, so
anybody care to comment on this patch ?
http://t3.dotgnu.info/code/apc-path-canonicalize.patch
It converts include ("x.php") into include("/..fullpath/x.php")
before caching the opcodes if apc.stat = 0. Put it into the
"will be checked in eventually" optimizer or just wrap it
with yet another ini check ?
Cheers,
Gopal
--
The difference between insanity and genius is measured by success