#34863 [Fbk->Opn]: strip_tags cannot work when string include

2005-10-14 Thread backdream at gmail dot com
 ID:   34863
 User updated by:  backdream at gmail dot com
 Reported By:  backdream at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Strings related
 Operating System: Windows
-PHP Version:  4.4.0
+PHP Version:  4.3.11
 New Comment:

I tested with 4.3.11, It also have the bug.

--
http://www.joelonsoftware.com/uibook/chapters/fog63.html\";
target=\"_blank\">Designing for People Who Have Better Things To DoWith
Their Lives, Part Two http://86.0.190.20/test/ipb21/skin_acp/IPB2_Standard/images/users.png\";
border=\"0\" align=\"absmiddle\"
alt=\"Á´½ÓͼƬ\"onload=\"if(screen.width*0.7Adverment! Doyouneed to control a computer remotely,
even when firewalls get in theway?My company's latest product, https://www.copilot.com/\"target=\"_blank\";>Fog Creek
Copilot, is a remote control systemthatrequires no setup, no
configuration, and works even if both users arebehind firewalls.
It's designed to make remote tech support easy.Enter your email address to receive a (veryoccasional) email
whenever I write a major new article. You canunsubscribe at any time,
of course.";

$txt = strip_tags( $txt );
print $txt;

?>
---

It print "Next: Designing for People Who Have Better Things To DoWith
Their Lives, Part Two ", but not the whole html tags striped
string.


Previous Comments:


[2005-10-14 13:18:53] [EMAIL PROTECTED]

Can't reproduce.
Both your scripts work fine with any PHP version I can find (4.3.11,
4.4, 5.0.x, 5.1).


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

[2005-10-14 03:31:24] backdream at gmail dot com

Sorry, the Reproduce code would be:
---
http://www.joelonsoftware.com/uibook/chapters/fog63.html\
" target=\"_blank\">Designing for People Who Have Better Things To Do
With Their Lives, Part Two http://86.0.190.20/test/ipb21/skin_acp/IPB2_Standard/images/users.
png\" border=\"0\" align=\"absmiddle\" alt=\"Á´½ÓͼƬ\"
onload=\"if(screen.width*0.7Adverment! Do
you
need to control a computer remotely, even when firewalls get in the
way?
My company's latest product, https://www.copilot.com/\";
target=\"_blank\">Fog Creek Copilot, is a remote control system
that
requires no setup, no configuration, and works even if both users are
behind firewalls. It's designed to make remote tech support easy.
Enter your email address to receive a (very
occasional) email whenever I write a major new article. You can
unsubscribe at any time, of course.";

$txt = strip_tags( $txt );
print $txt;

?>



[2005-10-14 03:24:18] backdream at gmail dot com

Description:

strip_tags cannot work when string include http://www.joelonsoftware.com/uibook/chapters/fog63.html\";
target=\"_blank\">Designing for People Who Have Better Things To Do With
Their Lives, Part Two http://86.0.190.20/test/ipb21/skin_acp/IPB2_Standard/images/users.png\";
border=\"0\" align=\"absmiddle\" alt=\"Á´½ÓͼƬ\"
onload=\"if(screen.width*0.7Adverment! Do
you need to control a computer remotely, even when firewalls get in the
way? My company's latest product, https://www.copilot.com/\"; target=\"_blank\">Fog Creek
Copilot, is a remote control system that requires no setup, no
configuration, and works even if both users are behind firewalls.
It's designed to make remote tech support easy. Enter your email address to receive a (very occasional) email
whenever I write a major new article. You can unsubscribe at any time,
of course.";
$txt = preg_replace( "#]*>#i", "", $txt );
$txt = strip_tags( $txt );
print $txt;

?>

Expected result:

strip all the html tags

Actual result:
--
break when run over http://bugs.php.net/?id=34863&edit=1


#34863 [Opn]: strip_tags cannot work when string include

2005-10-13 Thread backdream at gmail dot com
 ID:   34863
 User updated by:  backdream at gmail dot com
 Reported By:  backdream at gmail dot com
 Status:   Open
 Bug Type: Scripting Engine problem
 Operating System: Windows
 PHP Version:  4.4.0
 New Comment:

Sorry, the Reproduce code would be:
---
http://www.joelonsoftware.com/uibook/chapters/fog63.html\
" target=\"_blank\">Designing for People Who Have Better Things To Do
With Their Lives, Part Two http://86.0.190.20/test/ipb21/skin_acp/IPB2_Standard/images/users.
png\" border=\"0\" align=\"absmiddle\" alt=\"Á´½ÓͼƬ\"
onload=\"if(screen.width*0.7Adverment! Do
you
need to control a computer remotely, even when firewalls get in the
way?
My company's latest product, https://www.copilot.com/\";
target=\"_blank\">Fog Creek Copilot, is a remote control system
that
requires no setup, no configuration, and works even if both users are
behind firewalls. It's designed to make remote tech support easy.
Enter your email address to receive a (very
occasional) email whenever I write a major new article. You can
unsubscribe at any time, of course.";

$txt = strip_tags( $txt );
print $txt;

?>


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

[2005-10-14 03:24:18] backdream at gmail dot com

Description:

strip_tags cannot work when string include http://www.joelonsoftware.com/uibook/chapters/fog63.html\";
target=\"_blank\">Designing for People Who Have Better Things To Do With
Their Lives, Part Two http://86.0.190.20/test/ipb21/skin_acp/IPB2_Standard/images/users.png\";
border=\"0\" align=\"absmiddle\" alt=\"Á´½ÓͼƬ\"
onload=\"if(screen.width*0.7Adverment! Do
you need to control a computer remotely, even when firewalls get in the
way? My company's latest product, https://www.copilot.com/\"; target=\"_blank\">Fog Creek
Copilot, is a remote control system that requires no setup, no
configuration, and works even if both users are behind firewalls.
It's designed to make remote tech support easy. Enter your email address to receive a (very occasional) email
whenever I write a major new article. You can unsubscribe at any time,
of course.";
$txt = preg_replace( "#]*>#i", "", $txt );
$txt = strip_tags( $txt );
print $txt;

?>

Expected result:

strip all the html tags

Actual result:
--
break when run over http://bugs.php.net/?id=34863&edit=1


#34863 [NEW]: strip_tags cannot work when string include

2005-10-13 Thread backdream at gmail dot com
From: backdream at gmail dot com
Operating system: Windows
PHP version:  4.4.0
PHP Bug Type: Scripting Engine problem
Bug description:  strip_tags cannot work when string include http://www.joelonsoftware.com/uibook/chapters/fog63.html\";
target=\"_blank\">Designing for People Who Have Better Things To Do With
Their Lives, Part Two http://86.0.190.20/test/ipb21/skin_acp/IPB2_Standard/images/users.png\";
border=\"0\" align=\"absmiddle\" alt=\"Á´½ÓͼƬ\"
onload=\"if(screen.width*0.7Adverment! Do you
need to control a computer remotely, even when firewalls get in the way?
My company's latest product, https://www.copilot.com/\";
target=\"_blank\">Fog Creek Copilot, is a remote control system that
requires no setup, no configuration, and works even if both users are
behind firewalls. It's designed to make remote tech support easy. Enter your email address to receive a (very occasional)
email whenever I write a major new article. You can unsubscribe at any
time, of course.";
$txt = preg_replace( "#]*>#i", "", $txt );
$txt = strip_tags( $txt );
print $txt;

?>

Expected result:

strip all the html tags

Actual result:
--
break when run over http://bugs.php.net/?id=34863&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34863&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34863&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34863&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=34863&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=34863&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=34863&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=34863&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=34863&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34863&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=34863&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=34863&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=34863&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=34863&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34863&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=34863&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=34863&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34863&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34863&r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=34863&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34863&r=mysqlcfg