From:             
Operating system: Ubuntu 10.04
PHP version:      5.3.10
Package:          Streams related
Bug Type:         Bug
Bug description:include on stream wrapper results in wsod

Description:
------------
Hi,

I am currently running a drupal website using a module
(http://drupal.org/project/configuration) that provided its own contributed
stream wrapper to find the local configuration directory (so it was in the
format 'config://path/to/file' - the implementation can be seen at
http://drupalcode.org/project/configuration.git/blob/refs/heads/7.x-1.x:/configuration_stream.inc).
On my local environment of running the site with the module (which runs php
5.3.6), the configuration would be able to scan on files with the protocol
without any issues. 

However, once I moved to my staging environment which runs php 5.3.10, I
would end up with a wsod. The strange part was that the page returned a
code 200 and nothing in the error log. I made sure that allow_url_fopen was
enabled and the protocols actually registered so it should have worked
correctly. Moreover, using file_exists and is_file work to ensure the file
exists so that meant the file was being found the first time around.

For now, my workaround has been to use drupal's functions to get the stream
converted correctly (see http://drupal.org/files/config-stream.patch as my
workaround for the module to work) but problem seems to stem from PHP which
is why I am filing my issue here. Any help that can be provided would be
greatly appreciated.

Test script:
---------------
Implement a simple stream wrapper to a file in local (lets call it local).

Create a php file to include from somewhere (called test_include.inc).

Have the line 'include local://path/to/test_include.inc'.

Expected result:
----------------
It should result in a code 200 but also a wsod.

Actual result:
--------------
The script should be correctly included.

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

Reply via email to