Opened 5 years ago

Closed 2 years 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)

local_files.diff (2.8 KB) - added by thomasb 5 years ago.

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by thomasb

comment:1 Changed 2 years ago by moo

  • Milestone changed from 1.3.3 to 2.0.0
  • Status changed from new to assigned

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

comment:2 Changed 2 years 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.