From: asykakimo at yahoo dot com dot tw
Operating system: Win2000
PHP version: 4.3.2
PHP Bug Type: Filesystem function related
Bug description: File System bug

Description:
------------
The file_get_contents will cause PHP crash in the following code:
$contents=str_replace("\n"," ",file_get_contents($file));
$contents=strip_tags($contents,'<a><frame><area><m eta>');
$tags=(preg_match("|</frameset>|i",$contents))?"src":"href";
$tags=(preg_match("|<meta
http-equiv=\"?refresh\"?.*url|i",$contents))?"url":$tag s;
echo $tags;

------------------------------------------------------------
The $file variable is come from [url]http://www.starwars.com/index.html[/url]

If I replace the file_get_contents with fread function, the php remain
this bug too.

Thank



--
Edit bug report at [url]http://bugs.php.net/?id=24556&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=24556&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=24556&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=24556&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=24556&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=24556&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=24556&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=24556&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=24556&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=24556&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=24556&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=24556&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=24556&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=24556&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=24556&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=24556&r=gnused[/url]