php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35928 file_get_contents crashes in Windows XP on special sites
Submitted: 2006-01-08 07:04 UTC Modified: 2006-01-16 01:00 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: mj_st at yahoo dot com Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.1.1 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mj_st at yahoo dot com
New email:
PHP Version: OS:

 

 [2006-01-08 07:04 UTC] mj_st at yahoo dot com
Description:
------------
Using file_get_contents("http://groups.yahoo.com/group/radio-userland/message/8198"); causes CGI/FastCGI to crash and generate the "Send Error Report" to Microsoft.  This is very site dependent.  File_get_contents will work with thousands of other sites but repeatedly crash on this one.

Using PHP 4.3.9 on fedora core 4 with this same URL works just fine.

Reproduce code:
---------------
<?php
$temp=file_get_contents("http://groups.yahoo.com/group/radio-userland/message/8198");
echo $temp;
//Crashes in Windows with PHP 5.1.1
//Works file in Fedora with PHP 4.3.9
//There is something specific about the yahoo groups site that causes the error.
//If yahoo changes the site, it may not fail any more.
?>

Expected result:
----------------
I expect to see the HTML from http://groups.yahoo.com/group/radio-userland/message/8198 echoed to the screen.

This is somewhat site specific.  I had this issue occur on a few different sites out of thousands requested.  It is very repeatable as of 1/7/06 on this particular yahoo groups page.  Again, it works fine in Fedora and crashes in Windows XP.

I used the Windows installer to instal PHP.  I've made no PHP modifications.

If this is a stupid error that I am inadvertantly causing through setup or some other way, please let me know.

Actual result:
--------------
The error information generated is shown below.

The error signiture:
AppName: php-cgi.exe
AppVer: 5.1.1.1
ModName: php5ts.dll
ModVer: 5.1.1.1
Offset: 0016a636

<?xml version="1.0" encoding="UTF-16"?>
<DATABASE>
<EXE NAME="php-cgi.exe" FILTER="GRABMI_FILTER_PRIVACY">
    <MATCHING_FILE NAME="php-cgi.exe" SIZE="53305" CHECKSUM="0x54ECD17C" BIN_FILE_VERSION="5.1.1.1" BIN_PRODUCT_VERSION="5.1.1.0" PRODUCT_VERSION="5.1.1" FILE_DESCRIPTION="CGI / FastCGI" COMPANY_NAME="The PHP Group" PRODUCT_NAME="PHP php-cgi.exe" FILE_VERSION="5.1.1.1" ORIGINAL_FILENAME="php-cgi.exe" INTERNAL_NAME="php-cgi.exe" LEGAL_COPYRIGHT="Copyright ? 1997-2005 The PHP Group" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.1.1" UPTO_BIN_PRODUCT_VERSION="5.1.1.0" LINK_DATE="11/27/2005 20:38:59" UPTO_LINK_DATE="11/27/2005 20:38:59" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="php5ts.dll" SIZE="4272184" CHECKSUM="0xA7539665" BIN_FILE_VERSION="5.1.1.1" BIN_PRODUCT_VERSION="5.1.1.0" PRODUCT_VERSION="5.1.1" FILE_DESCRIPTION="PHP Script Interpreter" COMPANY_NAME="The PHP Group" PRODUCT_NAME="PHP Script Interpreter" FILE_VERSION="5.1.1.1" ORIGINAL_FILENAME="php5ts.dll" INTERNAL_NAME="php5ts.dll" LEGAL_COPYRIGHT="Copyright ? 1997-2005 The PHP Group" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.1.1" UPTO_BIN_PRODUCT_VERSION="5.1.1.0" LINK_DATE="11/27/2005 20:37:34" UPTO_LINK_DATE="11/27/2005 20:37:34" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="BACKUP\IISConfig.exe" SIZE="28672" CHECKSUM="0xDE6E8D74" BIN_FILE_VERSION="1.0.0.0" BIN_PRODUCT_VERSION="1.0.0.0" PRODUCT_VERSION="1.00" COMPANY_NAME="Dial Solutions Ltd" PRODUCT_NAME="IISConfig" FILE_VERSION="1.00" ORIGINAL_FILENAME="IISConfig.exe" INTERNAL_NAME="IISConfig" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x11C8E" LINKER_VERSION="0x10000" UPTO_BIN_FILE_VERSION="1.0.0.0" UPTO_BIN_PRODUCT_VERSION="1.0.0.0" LINK_DATE="08/13/2004 08:43:24" UPTO_LINK_DATE="08/13/2004 08:43:24" VER_LANGUAGE="English (United States) [0x409]" />
    <MATCHING_FILE NAME="BACKUP\UNWISE.EXE" SIZE="149504" CHECKSUM="0x5EFD52E3" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x0" LINK_DATE="06/25/1999 14:55:29" UPTO_LINK_DATE="06/25/1999 14:55:29" />
</EXE>
<EXE NAME="php5ts.dll" FILTER="GRABMI_FILTER_THISFILEONLY">
    <MATCHING_FILE NAME="php5ts.dll" SIZE="4272184" CHECKSUM="0xA7539665" BIN_FILE_VERSION="5.1.1.1" BIN_PRODUCT_VERSION="5.1.1.0" PRODUCT_VERSION="5.1.1" FILE_DESCRIPTION="PHP Script Interpreter" COMPANY_NAME="The PHP Group" PRODUCT_NAME="PHP Script Interpreter" FILE_VERSION="5.1.1.1" ORIGINAL_FILENAME="php5ts.dll" INTERNAL_NAME="php5ts.dll" LEGAL_COPYRIGHT="Copyright ? 1997-2005 The PHP Group" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.1.1" UPTO_BIN_PRODUCT_VERSION="5.1.1.0" LINK_DATE="11/27/2005 20:37:34" UPTO_LINK_DATE="11/27/2005 20:37:34" VER_LANGUAGE="English (United States) [0x409]" />
</EXE>
<EXE NAME="kernel32.dll" FILTER="GRABMI_FILTER_THISFILEONLY">
    <MATCHING_FILE NAME="kernel32.dll" SIZE="983552" CHECKSUM="0x4CE79457" BIN_FILE_VERSION="5.1.2600.2180" BIN_PRODUCT_VERSION="5.1.2600.2180" PRODUCT_VERSION="5.1.2600.2180" FILE_DESCRIPTION="Windows NT BASE API Client DLL" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft? Windows? Operating System" FILE_VERSION="5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)" ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="? Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xFF848" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.2600.2180" UPTO_BIN_PRODUCT_VERSION="5.1.2600.2180" LINK_DATE="08/04/2004 07:56:36" UPTO_LINK_DATE="08/04/2004 07:56:36" VER_LANGUAGE="English (United States) [0x409]" />
</EXE>
</DATABASE>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-08 13:18 UTC] nlopess@php.net
Please try using this CVS snapshot:

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


 [2006-01-16 01:00 UTC] 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".
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 12:00:02 2026 UTC