Browse Source

Fix kumbiaphp correct url (#5722)

* Fix kumbiaphp correct url

* Fix dockerfile sed
Joan Miquel 5 years ago
parent
commit
d48b18b2a1

+ 5 - 5
frameworks/PHP/kumbiaphp/README.md

@@ -6,15 +6,15 @@
 
 # KumbiaPHP Benchmarking Test
 
-This is the KumbiaPHP portion of a [benchmarking test suite](../) comparing a variety of web development platforms.
+This is the [KumbiaPHP framework](https://kumbiaphp.com) portion of a [benchmarking test suite](../) comparing a variety of web development platforms.
 
 ## Infrastructure Software Versions
 The tests were run with:
 
-* [KumbiaPHP Version 1.0](https://github.com/KumbiaPHP/KumbiaPHP)
-* [PHP Version 7.3.*](http://www.php.net/) with FPM and OPCache
-* [nginx 1.15.9](http://nginx.org/)
-* [MySQL 5.7.27](https://dev.mysql.com/)
+* [KumbiaPHP Version 1.1.1](https://github.com/KumbiaPHP/KumbiaPHP)
+* [PHP Version 7.4.*](http://www.php.net/)
+* [nginx 1.17.10](http://nginx.org/)
+* [MySQL 8](https://dev.mysql.com/)
 
 ### JSON Encoding Test
 Uses the PHP standard [JSON encoder](http://www.php.net/manual/en/function.json-encode.php).

+ 1 - 1
frameworks/PHP/kumbiaphp/bench/app/controllers/index_controller.php → frameworks/PHP/kumbiaphp/bench/app/controllers/plaintext_controller.php

@@ -4,7 +4,7 @@
  * Controller por defecto si no se usa el routes
  *
  */
-class IndexController extends AppController
+class PlaintextController extends AppController
 {
 
     public function index()

+ 2 - 0
frameworks/PHP/kumbiaphp/bench/app/libs/app_controller.php

@@ -17,6 +17,8 @@ require_once CORE_PATH . 'kumbia/controller.php';
 class AppController extends Controller
 {
 
+    public $limit_params = false;
+    
     final protected function initialize()
     {
 

+ 2 - 2
frameworks/PHP/kumbiaphp/benchmark_config.json

@@ -3,7 +3,7 @@
   "tests": [
     {
       "default": {
-        "plaintext_url": "/",
+        "plaintext_url": "/plaintext",
         "json_url": "/json",
         "db_url": "/db",
         "query_url": "/db/query/",
@@ -47,7 +47,7 @@
         "versus": "php"
       },
       "workerman": {
-        "plaintext_url": "/",
+        "plaintext_url": "/plaintext",
         "json_url": "/json",
         "db_url": "/ku",
         "query_url": "/ku/query/",

+ 1 - 1
frameworks/PHP/kumbiaphp/kumbiaphp-workerman.dockerfile

@@ -20,7 +20,7 @@ WORKDIR /kumbiaphp
 RUN git clone -b dev --single-branch --depth 1 https://github.com/KumbiaPHP/KumbiaPHP.git vendor/Kumbia
 
 #RUN sed -i "s|header(|\\\Workerman\\\Protocols\\\Http::header(|g" bench/app/controllers/{index,json}_controller.php
-RUN sed -i "s|header(|\\\Workerman\\\Protocols\\\Http::header(|g" bench/app/controllers/index_controller.php
+RUN sed -i "s|header(|\\\Workerman\\\Protocols\\\Http::header(|g" bench/app/controllers/plaintext_controller.php
 RUN sed -i "s|header(|\\\Workerman\\\Protocols\\\Http::header(|g" bench/app/controllers/json_controller.php
 RUN sed -i "s|//KuRaw::init(|KuRaw::init(|g" server.php