From:             germain dot pavot at gmail dot com
Operating system: Debian Squeeze
PHP version:      5.4.9
Package:          Scripting Engine problem
Bug Type:         Bug
Bug description:zend_compile_file wrong path file

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

-- 
Edit bug report at https://bugs.php.net/bug.php?id=63625&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=63625&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=63625&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=63625&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=63625&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=63625&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=63625&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=63625&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=63625&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=63625&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=63625&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=63625&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=63625&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=63625&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63625&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=63625&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=63625&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=63625&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63625&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=63625&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=63625&r=mysqlcfg

Reply via email to