ID:               27021
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mderk at yandex dot ru
-Status:           Open
+Status:           Analyzed
 Bug Type:         Documentation problem
-Operating System: FreeBSD
+Operating System: Irrelevant
-PHP Version:      4.3.4
+PHP Version:      4.3.0
-Assigned To:      
+Assigned To:      nlopess
 New Comment:

I've checked the sources and the behaviour changed in PHP 4.3.0. I'll
update the docs.


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

[2004-01-26 13:43:56] [EMAIL PROTECTED]

Can somebody check when strip_tags() changed its behaviour, please?
I couldn't find this in CVS logs...

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

[2004-01-26 07:25:58] [EMAIL PROTECTED]

Okay, I had missed that report and now noticed it was 
recognised wrongly. Anyway, I agree with you that 
strip_tags() is not well documented and it's the right 
time to add an extensive description because too many 
users rely on this magical function. Reclassifying this 
as a documentation problem.


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

[2004-01-26 02:57:51] mderk at yandex dot ru

I found an old script that had relied on the old behavior (which was
"strip everything between < and >",  e.g.
http://bugs.php.net/bug.php?id=15160) and broken under PHP 4.3.4. 
I would think of it at least as a documentation problem, not bogus.
Don't you think that every php developer in the World would read this
message to answer your question, even if he gets in trouble with the
new behavior? The things that break BC should at least be documented.
But there's no a word even in the Changes file.

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

[2004-01-23 17:11:09] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Who the heck gets in trouble with the new behaviour?


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

[2004-01-23 10:43:10] mderk at yandex dot ru

Description:
------------
<?php
$str = '<!--b>here!</b-->';
print strip_tags($str);
?>
in PHP 4.2.2 it outputs 'here!'.
in PHP 4.3.4 it outputs nothing.
Maybe it should be treated as the right behavior, but it is definitely
a BC violation.




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


-- 
Edit this bug report at http://bugs.php.net/?id=27021&edit=1

Reply via email to