Fixed eval code (Thanks Fil)
[jquery.git] / build / test / data / name.php
index a287fc9..a4b990e 100644 (file)
@@ -1,4 +1,5 @@
 <?php\r
+error_reporting(0);\r
 $wait = $_REQUEST['wait'];\r
 if($wait) {\r
        sleep($wait);\r
@@ -6,7 +7,7 @@ if($wait) {
 $xml = $_REQUEST['xml'];\r
 if($xml) {\r
        header("Content-type: text/xml");\r
-       eval("\$result = $xml;");\r
+       $result = ($xml == "5-2") ? "3" : "?";\r
        echo "<math><calculation>$xml</calculation><result>$result</result></math>";\r
        die();\r
 }\r
@@ -18,5 +19,11 @@ if($name == 'foo') {
        echo "pan";\r
        die();\r
 }\r
-echo "ERROR";\r
+$request = apache_request_headers();\r
+$request = $request['X-Custom-Header'];\r
+if(strlen($request) > 0) {\r
+       echo $request;\r
+       die();\r
+}\r
+echo 'ERROR <script type="text/javascript">ok( true, "name.php executed" );</script>';\r
 ?>
\ No newline at end of file