#24556 [Opn->Fbk]: File System bug
| From: | wez@php.net | Date: | Wed, 09 Jul 2003 07:38:56 +0000 |
| Subject: | #24556 [Opn->Fbk]: File System bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-43509@lists.php.net to get a copy of this message | ||
ID: 24556
Updated by: wez@php.net
Reported By: asykakimo at yahoo dot com dot tw
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: Win2000
PHP Version: 4.3.2
New Comment:
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2003-07-09 02:24:43] asykakimo at yahoo dot com dot tw
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><meta>');
$tags=(preg_match("|</frameset>|i",$contents))?"src":"href";
$tags=(preg_match("|<meta
http-equiv=\"?refresh\"?.*url|i",$contents))?"url":$tags;
echo $tags;
------------------------------------------------------------
The $file variable is come from http://www.starwars.com/index.html
If I replace the file_get_contents with fread function, the php remain
this bug too.
Thank
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24556&edit=1