]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Fri, 16 May 2003 06:20:24 +0000 (06:20 +0000)
committerSVN Migration <svn@php.net>
Fri, 16 May 2003 06:20:24 +0000 (06:20 +0000)
ext/standard/tests/strings/bug23650.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/strings/bug23650.phpt b/ext/standard/tests/strings/bug23650.phpt
new file mode 100644 (file)
index 0000000..cd026c3
--- /dev/null
@@ -0,0 +1,36 @@
+--TEST--
+Bug #23650 (strip_tags() removes hyphens)
+--FILE--
+<?php
+$str = <<< HERE
+1:<!-- abc -  -->
+2:<!doctype -- >
+3:
+4:<abc - def>
+5:abc - def
+6:</abc>
+
+HERE;
+
+echo strip_tags($str);
+echo strip_tags($str, '<abc>');
+?>
+--EXPECT--
+1:
+2:
+
+?>
+--EXPECT--
+1:
+2:
+3:
+4:
+5:abc - def
+6:
+1:
+2:
+3:
+4:<abc - def>
+5:abc - def
+6:</abc>
+