[PHP-BUG] Bug #61665 [NEW]: include on stream wrapper results in wsod

2012-04-08 Thread btmash at gmail dot com
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



Bug #61665 [Com]: include on stream wrapper results in wsod

2012-04-09 Thread btmash at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=61665&edit=1

 ID: 61665
 Comment by: btmash at gmail dot com
 Reported by:btmash at gmail dot com
 Summary:include on stream wrapper results in wsod
 Status: Feedback
 Type:   Bug
 Package:Streams related
 Operating System:   Ubuntu 10.04
 PHP Version:5.3.10
 Block user comment: N
 Private report: N

 New Comment:

I've pasted a version of the class at http://paste.pocoo.org/show/578721/ since 
it is longer than 20 lines.

Please note that a large chunk of this is the drupal stream wrapper interface 
and at the bottom is the stream class that I implemented 'MyLocalStreamWrapper' 
which returns back the directory it is currently in. I perform an include to a 
info.php file which consists of:
"
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 this bug report at https://bugs.php.net/bug.php?id=61665&edit=1


Bug #61665 [Fbk->Opn]: include on stream wrapper results in wsod

2012-04-19 Thread btmash at gmail dot com
Edit report at https://bugs.php.net/bug.php?id=61665&edit=1

 ID: 61665
 User updated by:btmash at gmail dot com
 Reported by:btmash at gmail dot com
 Summary:include on stream wrapper results in wsod
-Status: Feedback
+Status: Open
 Type:   Bug
 Package:Streams related
 Operating System:   Ubuntu 10.04
 PHP Version:5.3.10
 Block user comment: N
 Private report: N

 New Comment:

I'm setting it back to open since I've provided feedback.


Previous Comments:

[2012-04-09 23:29:13] btmash at gmail dot com

I've pasted a version of the class at http://paste.pocoo.org/show/578721/ since 
it is longer than 20 lines.

Please note that a large chunk of this is the drupal stream wrapper interface 
and at the bottom is the stream class that I implemented 'MyLocalStreamWrapper' 
which returns back the directory it is currently in. I perform an include to a 
info.php file which consists of:
"
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 this bug report at https://bugs.php.net/bug.php?id=61665&edit=1


#43185 [Com]: preg_replace cause exit signal Illegal instruction

2009-07-01 Thread btmash at gmail dot com
 ID:   43185
 Comment by:   btmash at gmail dot com
 Reported By:  nicolas dot fruit+phpbug at gmail dot com
 Status:   No Feedback
 Bug Type: PCRE related
 Operating System: Mac
 PHP Version:  5.2.4
 New Comment:

I am having the same problem with PHP 5.2.9, Apache 2.2.11 and Drupal
6.12 on FreeBSD 7.1.


Previous Comments:


[2008-04-17 05:24:49] sabapamu at mizuho-sc dot com

I am having the same issue on Apache/2.2.8 (Unix) PHP/5.2.5 on RedHat
Linux 3



[2008-04-11 15:36:09] nejc at skoberne dot net

I am having the same problem with PHP 5.2.5, Apache 2.2.6 and Drupal
4.7 on FreeBSD 7.0.



[2008-03-10 00:10:31] lms at esoterica dot pt

Does not work on Darwin Kernel Version 9.2.0 and Apache/2.2.6 either
(tested under PHP 5.2.4 as well). Crashes with the same message as
reported.

The release notes for PHP 5.2.5 do not mention any fix for this
particular bug.



[2007-11-19 01:00:01] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2007-11-11 18:56:14] j...@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi





The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/43185

-- 
Edit this bug report at http://bugs.php.net/?id=43185&edit=1