#35928 [NEW]: file_get_contents crashes in Windows XP on special sites

From: Date: Sun, 08 Jan 2006 06:04:53 +0000
Subject: #35928 [NEW]: file_get_contents crashes in Windows XP on special sites
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-91651@lists.php.net to get a copy of this message
From: mj_st at yahoo dot com Operating system: Windows XP PHP version: 5.1.1 PHP Bug Type: Reproducible crash Bug description: file_get_contents crashes in Windows XP on special sites 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> -- Edit bug report at http://bugs.php.net/?id=35928&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35928&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35928&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35928&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35928&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35928&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35928&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35928&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35928&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35928&r=support Expected behavior: http://bugs.php.net/fix.php?id=35928&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35928&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35928&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35928&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35928&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35928&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35928&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35928&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35928&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35928&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35928&r=mysqlcfg

« previous php.bugs (#91651) next »