|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5857 fgetss() with allow_tags error
Submitted: 2000-07-30 05:44 UTC Modified: 2000-07-30 07:01 UTC
From: ccjeagle at ms6 dot hinet dot net Assigned: rasmus (profile)
Status: Closed Package: Other
PHP Version: 4.0.1pl2 OS: FreeBSD-4.1RC
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ccjeagle at ms6 dot hinet dot net
New email:
PHP Version: OS:


 [2000-07-30 05:44 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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-30 06:16 UTC]
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.
 [2000-07-30 07:01 UTC]
Found it - fixed in CVS
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 23 17:01:30 2024 UTC