Opened 4 years ago
Closed 15 months ago
#221 closed defect (fixed)
Cache local files relative to the current execution-path
| Reported by: | thomasb | Owned by: | moo |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.0.0 |
| Component: | cacher | Version: | 1.2.2 |
| Keywords: | Cc: | ||
| Application: | PHP Version: | ||
| Other Exts: | SAPI: | Irrelevant | |
| Probability: | Sometimes | Blocked By: | |
| Blocking: |
Description
When doing an include in a php-file:
/www/scripts/file.php
<?php
include('file1.php');
?>
xcache fails to cache the included file if the current folder (/www/scripts/) is not in the include-path.
The attached patch fixes the xc_stat-function to also check the current execution-path.
Attachments (1)
Change History (3)
Changed 4 years ago by thomasb
comment:1 Changed 15 months ago by moo
- Milestone changed from 1.3.3 to 2.0.0
- Status changed from new to assigned
comment:2 Changed 15 months ago by moo
- Resolution set to fixed
- Status changed from assigned to closed
this should have been fixed in trunk (which will become 2.0.0)
Note: See
TracTickets for help on using
tickets.


the patch use do_alloca wrongly, which return memory only available inside the caller scoped