Ticket #238 (new defect)

Opened 1 year ago

Last modified 11 months ago

problem with permission

Reported by: jiri.reischig@ecn.cz Assigned to: somebody
Priority: minor Milestone:
Component: eAccelerator Version: 0.9.5
Keywords: Cc:

Description

When php file was cached the permission is not checked.

for example: I include file test1.php from file test.php. I run test.php first time, so files test.php and test1.php are in EA cache now. I change permission on file test1.php (#chmod -r test1.php) and after this change I run test.php and it includes test1.php file - this is wrong beacuse test.php don't have read permission for test1.php file!

If EA cache was empty and test.php have not read permission for test1.php file it's working OK.

I test it on latest svn version 0.9.6-svn301-dev.

Change History

08/19/07 19:01:21 changed by bart

  • priority changed from critical to minor.

When a file is cached eAccelerator will only do a statcall and only if mtime_only isn't set. You don't need read permissions to do a statcall on a file. Trying to get the permissions correct would be very costly because we could have to try to open a file. An other solution would be to interpret the information in returned from the statcall.