~ubuntu-branches/ubuntu/hardy/php5/hardy-updates

« back to all changes in this revision

Viewing changes to ext/standard/tests/strings/bug22008.phpt

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-10-09 03:14:32 UTC
  • Revision ID: james.westby@ubuntu.com-20051009031432-kspik3lobxstafv9
Tags: upstream-5.0.5
ImportĀ upstreamĀ versionĀ 5.0.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
Bug #22008 (strip_tags() eliminates too much)
 
3
--FILE--
 
4
<?php
 
5
$html = <<< HERE
 
6
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
7
<html>
 
8
<head>
 
9
<title>test</title>
 
10
</head>
 
11
<body>
 
12
<b>PHP!</b>
 
13
</body>
 
14
</html>
 
15
 
 
16
HERE;
 
17
 
 
18
echo trim(strip_tags($html, '<b>'))."\n";
 
19
?>
 
20
--EXPECT--
 
21
test
 
22
 
 
23
 
 
24
<b>PHP!</b>