Fix for #4972. Dreamweaver CS4 crashes on offset module. Thanks mike.helgeson
[jquery.git] / test / data / name.php
1 <?php\r
2 error_reporting(0);\r
3 $wait = $_REQUEST['wait'];\r
4 if($wait) {\r
5         sleep($wait);\r
6 }\r
7 $xml = $_REQUEST['xml'];\r
8 if($xml) {\r
9         header("Content-type: text/xml");\r
10         $result = ($xml == "5-2") ? "3" : "?";\r
11         echo "<math><calculation>$xml</calculation><result>$result</result></math>";\r
12         die();\r
13 }\r
14 $name = $_REQUEST['name'];\r
15 if($name == 'foo') {\r
16         echo "bar";\r
17         die();\r
18 } else if($name == 'peter') {\r
19         echo "pan";\r
20         die();\r
21 }\r
22 $request = apache_request_headers();\r
23 $request = $request['X-Custom-Header'];\r
24 if(strlen($request) > 0) {\r
25         echo $request;\r
26         die();\r
27 }\r
28 echo 'ERROR <script type="text/javascript">ok( true, "name.php executed" );</script>';\r
29 ?>