ID:               24556
 Updated by:       [EMAIL PROTECTED]
-Summary:          File System bug
 Reported By:      asykakimo at yahoo dot com dot tw
-Status:           Feedback
+Status:           Verified
-Bug Type:         Filesystem function related
+Bug Type:         Strings related
 Operating System: Win2000
 PHP Version:      4.3.2
 New Comment:

This is not file_get_contents() or any other filesystem function
related:

---------------------------------------
/usr/src/web/php/php4_3/ext/standard/string.c(3530) : Block 0x0874B580
status:
Beginning:      OK (allocated on
/usr/src/web/php/php4_3/ext/standard/string.c:3339, 1024 bytes)
      End:      Overflown (magic=0x2A8FCC63 instead of 0x2A8FCC84)
                1 byte(s) overflown
---------------------------------------
href/usr/src/web/php/php4_3/ext/standard/string.c(3339) :  Freeing
0x0874B5A4 (1024 bytes), script=t.php


strip_tags() causes the crash. (leaks seem to crash winblows, not linux
:)




Previous Comments:
------------------------------------------------------------------------

[2003-07-09 02:38:55] [EMAIL PROTECTED]

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.


------------------------------------------------------------------------

[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

Reply via email to