|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-08-01 21:55 UTC] requinix@php.net
-Summary: strip_tags removes \x00
+Summary: strip_tags should not remove \x00
-Type: Bug
+Type: Feature/Change Request
-Package: Unknown/Other Function
+Package: Strings related
[2019-08-01 21:55 UTC] requinix@php.net
[2019-08-01 21:57 UTC] peehaa@php.net
-Status: Open
+Status: Not a bug
[2019-08-01 21:57 UTC] peehaa@php.net
[2019-08-01 21:58 UTC] peehaa@php.net
[2019-08-01 22:17 UTC] requinix@php.net
-Status: Not a bug
+Status: Open
[2019-08-01 22:17 UTC] requinix@php.net
[2019-08-02 00:42 UTC] bkfake-php at yahoo dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 23:00:02 2025 UTC |
Description: ------------ strip_tags strips the null character \x00 from the string this is neither documented nor desired behavior tested on v5.6.40 and 7.1.25 - 7.4.0beta1 Test script: --------------- // outputs "where'd null go?" $str = "hello\x00world"; $strAfter = strip_tags($str); if ($str == $strAfter) { echo 'all is well'; } else { echo "where'd null go?"; } Expected result: ---------------- null char should remain and output "all is well" Actual result: -------------- outputs "where'd null go?"