PHP Bugs  
php.net | support | documentation | report a bug | advanced search | search howto | statistics | login

go to bug id or search bugs for  

Bug #5857 fgetss() with allow_tags error
Submitted:30 Jul 2000 5:44am UTC Modified: 30 Jul 2000 7:01am UTC
From:ccjeagle at ms6 dot hinet dot net Assigned to:rasmus
Status:Closed Category:Other
Version:4.0.1pl2 OS:FreeBSD-4.1RC
View/Vote Developer Edit Submission

[30 Jul 2000 5:44am UTC] ccjeagle at ms6 dot hinet dot net
// Begin of file.php
<font size="+1"><? echo "haha" ;?><b>HAHAH</b></font>
...........
// End of file.php

I found that the first tag after <? ?> couldn't be kept correctly. Say:
// Begin of my test script
$fp = fopen('file.php','r') ;
echo fgetss($fp,100,"<font><b>") ;
// End of my test script

The result would be <font size="+1">HAHAH</b></font>,
Seems that the first tag after <? ?>(<b> in this case) will lost.

My php.ini file is the same as php.ini-optimized.
[30 Jul 2000 6:16am UTC] rasmus@php.net
Ah crap!  Yes, that is a bug.  One of these bits of code that takes a
little while to grok.  I'll get to it soon.
[30 Jul 2000 7:01am UTC] rasmus@php.net
Found it - fixed in CVS

RSS feed | show source 

PHP Copyright © 2001-2009 The PHP Group
All rights reserved.
Last updated: Sat Nov 21 10:30:49 2009 UTC