Browse Source

verify Fixed php-silex' json test

Mike Smith 11 years ago
parent
commit
fcd00c7e8e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      php-silex/web/index.php
  2. 1 1
      php-silex/web/index_raw.php

+ 1 - 1
php-silex/web/index.php

@@ -20,7 +20,7 @@ $app->register(new Silex\Provider\DoctrineServiceProvider(), array(
 ));
 
 $app->get('/json', function() {
-    return new JsonResponse(array("message" => "Hello World!"));
+    return new JsonResponse(array("message" => "Hello, World!"));
 });
 
 $app->get('/db', function(Request $request) use ($app) {

+ 1 - 1
php-silex/web/index_raw.php

@@ -14,7 +14,7 @@ $app->get('/json', function() {
     //
     // But JsonResponse does some checks that are unneeded for this benchmark
     // and therefore, a plain Response object is faster.
-    return new Response(json_encode(array('message' => 'Hello World!')), 200, array('Content-Type' => 'application/json'));
+    return new Response(json_encode(array('message' => 'Hello, World!')), 200, array('Content-Type' => 'application/json'));
 });
 
 // Test 2: Single database query