Fixes recursion bug in disambiguate_in().
[ohcount] / test / expected_dir / php1.php
1 html    code    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 html    code                          "http://www.w3.org/TR/html4/strict.dtd">
3 html    code    <html>
4 html    code            <head>
5 html    code                    <script type="text/javascript">
6 javascript      comment                 // javascript comment
7 javascript      code                    document.write("Hello World!")
8 html    code                    </script>
9 html    code                    <style type="text/css">
10 css     comment                 /* css comment */
11 css     code                    h1 {
12 css     code                            color: black;
13 css     code                    }
14 html    code                    </style>
15 html    code            </head>
16 html    code            <body>
17 html    code            <table cellSpacing=1 cellPadding=2 bgColor=black border=0>
18 html    code            <tr bgColor=white>
19 html    code            <td>First</td>
20 html    code            <td>Last</td>
21 html    code            <td>Email<td>
22 html    code            </tr>
23 html    code            </table>
24 html    blank   
25 html    code    <?
26 php     comment ## Comment with a hash symbol ##
27 php     code            mysql_connect("localhost", "db user", "db pass")
28 php     code            or die("DB CONNECT ERROR: " . mysql_error());
29 php     blank   
30 php     code            mysql_select_db("db name")
31 php     code            or die("DB SELECT ERROR: " . mysql_error());
32 php     blank   
33 php     code            $query = "SELECT fname, lname, email FROM table ORDER BY lname";
34 php     blank   
35 php     code            $result = mysql_query($query)
36 php     code            or die("DB SELECT ERROR: " . mysql_error());
37 php     blank   
38 php     code            while($row = mysql_fetch_array($result))
39 php     code            {
40 php     code                    $lname = $row['lname'];
41 php     code                    $fname = $row['fname'];
42 php     code                    $email = $row['email'];
43 php     blank   
44 php     comment                 // Spaghetti code starts....(slopping html code in)
45 html    code    ?>
46 html    blank   
47 html    code            <tr bgColor=white>
48 php     code            <td><?=$fname?></td>
49 php     code            <td><?=$lname?></td>
50 php     code            <td><?=$email?><td>
51 html    code            </tr>
52 html    code            </table>
53 html    blank   
54 html    code    <?
55 php     code            } // end while
56 php     comment         // Spaghetti code is both a source of praise and complaints
57 html    code    ?>
58 html    blank   
59 html    code    </body>