From:             
Operating system: window
PHP version:      Irrelevant
Package:          *Configuration Issues
Bug Type:         Bug
Bug description:auto_prepend_file do not work sometimes

Description:
------------
[EN]
With Apache I consider css files as php.
I configure my php.ini file with auto_prepend_file = "redirection.php" and
sometimes this file was not prepend, always for the same file.

I try differents versions of PHP and Apache, and software like easyPHP and
WampServer but it persist in window. In Mac all work fine.

[FR]
Les détails techniques
    Je fait considérer grâce à Apache mes fichiers css comme étant des
fichiers php.
    Grâce à ma configuration php, je préfixe tous mes fichiers php par
un autre nommé redirection.php.
    Si un fichier css est détecté par mon fichier php l'entête http
"Content-Type:text/css" est ajouté.
    L'accès à un fichier css entraîne, si les configurations de
l'application le demande, une compression et un encodage de son contenu, et
la mise en cache du résultat avant d'envoyer le résultat au navigateur. 

Un jour j'ai remarqué, qu'une page sur trois, l'aspect visuel d'éléments
html ne respectait pas la feuille de style externe jointe bizarrement
considéré comme étant de l'html.

Observations sur le fichier css 'érroné'
    Son Content-Type est text/html au lieu d'être text/css
    Il ne reconnait pas une constante php défini dans le fichier
redirection.php, une erreur php est générée dedans.
    Aucun cache n'est généré dans tous les cas 

On remarque bien que dans une et une seule de mes pages, le fichier css est
considéré comme php mais n'est pas préfixé par mon fichier
redirection.php.

Conclusion
En passant sou Mac tout fonctionne correctement ! Sous windows avec
WampServer, j'ai essayé les versions Apache et php de mon Mac entre autre,
mais rien n'y fait... J'ai même essayé sur EasyPHP, et toujours le même
bug est apparu !!!

Pour window, j'ai tout simplement renoncé de le mettre en externe, j'ai
inclus le css dans la page html. Je n'ai jamais trouvé d'où pouvait venir
se phénomène. 

Test script:
---------------
<link rel="stylesheet" type="text/css" href="/path/to/css/file/">

Expected result:
----------------
My css file must be prepended by my php file redirection.php.


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

Reply via email to