php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63625 zend_compile_file wrong path file
Submitted: 2012-11-27 13:34 UTC Modified: 2012-11-27 15:31 UTC
From: germain dot pavot at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.4.9 OS: Debian Squeeze
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: germain dot pavot at gmail dot com
New email:
PHP Version: OS:

 

 [2012-11-27 13:34 UTC] germain dot pavot at gmail dot com
Description:
------------
Intialy reported on Xcache bugtracker (http://xcache.lighttpd.net/ticket/291) 
but 
after search it have a problem with php-fpm and zend function 
"zend_compile_file".

On my architecture :

- lot of virtual host with unix rights isolation. Vhost1 cannot access to Vhost2 
files.
- all virtual host files shared by Nfsv4 server
- All files is on symbolic link: /var/www/ => /home/nfs/www/ (Retro 
compatibility on architecture)
- php 5.4.9 (same bug with previous version) compiled by dotdeb
- Xcache version 3 (all versions are affected by bug).

The visual problem :

- Random 500 error with this message for exemple : 

[07-Nov-2012 12:27:38 Europe/Paris?] PHP Warning: 
include_once(/home/nfs/www/www.website1.com/httpdocs/classes/../classes/MySQL.ph
p)
: failed to open stream: Permission denied in 
/home/nfs/www/www.website2.com/httpdocs/classes/Db.php on line 17

PHP confuse a SAME file in two different folders...

So for debug I have actived trace message and I see wrong information come from 
call function zend_compile_file.

Test script:
---------------
PHP-FPM with 2 vhost with the same CMS

Expected result:
----------------
[pool pool1] child 8849 said into stderr: "xc_cacher.c:2172: xc_compile_file: 
type=0 name=/home/nfs/www/www.pool1.com/httpdocs/footer.php"

Actual result:
--------------
[pool pool1] child 8849 said into stderr: "xc_cacher.c:2172: xc_compile_file: 
type=0 name=/home/nfs/www/www.pool2.com/httpdocs/footer.php"
[pool pool1] child 8849 said into stderr: "xc_cacher.c:2188: failed to init key 
for /home/nfs/www/www.pool2.com/httpdocs/footer.php

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-11-27 14:30 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2012-11-27 14:30 UTC] pajoye@php.net
Disable xcache and try again, if the problem appears again pls post the new info 
here again.
 [2012-11-27 15:15 UTC] germain dot pavot at gmail dot com
No problem without xcache... So it's a xcache problem :/
 [2012-11-27 15:31 UTC] laruence@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Not PHP issue..
 [2012-11-27 15:31 UTC] laruence@php.net
-Status: Feedback +Status: Not a bug -Package: Scripting Engine problem +Package: *General Issues
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC