Browse Source

Php update to v7.1.4 stable (#2722)

* Update php to v 7.1.4 stable
Small tests were OK
Hoping that pass the travis test when send the PR

* Update Phalcon to v3.1.2
for work with php 7.1.4

* Commented redis.so
from php.ini too
No fw use it

* Fix Laravel

* Fixed Laravel
The laravel v4.2 is not supported anymore

* Another fix for laravel

* Updated Readme files
Joan Miquel 8 years ago
parent
commit
c29261f509

+ 1 - 1
frameworks/PHP/laravel/app/config/app.php

@@ -1,5 +1,5 @@
 <?php
-
+error_reporting(E_ALL ^ E_DEPRECATED);
 return array(
 
 	/*

+ 127 - 127
frameworks/PHP/laravel/benchmark_config.json

@@ -1,128 +1,128 @@
 {
-  "framework": "laravel",
-  "tests": [{
-    "default": {
-      "setup_file": "setup",
-      "json_url": "/json",
-      "plaintext_url": "/plaintext",
-      "port": 8080,
-      "approach": "Realistic",
-      "classification": "Fullstack",
-      "database": "None",
-      "framework": "laravel",
-      "language": "PHP",
-      "flavor": "PHP7",
-      "orm": "Raw",
-      "platform": "None",
-      "webserver": "nginx",
-      "os": "Linux",
-      "database_os": "Linux",
-      "display_name": "laravel",
-      "notes": "",
-      "versus": "php7"
-    },
-    "raw": {
-      "setup_file": "setup-mysql",
-      "db_url": "/db",
-      "query_url": "/query?queries=",
-      "fortune_url": "/fortunes",
-      "port": 8080,
-      "approach": "Realistic",
-      "classification": "Fullstack",
-      "database": "MySQL",
-      "framework": "laravel",
-      "language": "PHP",
-      "flavor": "PHP7",
-      "orm": "Raw",
-      "platform": "None",
-      "webserver": "nginx",
-      "os": "Linux",
-      "database_os": "Linux",
-      "display_name": "laravel-raw",
-      "notes": "",
-      "versus": "php7"
-    },
-    "hhvm": {
-      "setup_file": "setup_hhvm",
-      "json_url": "/json",
-      "plaintext_url": "/plaintext",
-      "port": 8080,
-      "approach": "Realistic",
-      "classification": "Fullstack",
-      "database": "None",
-      "framework": "laravel",
-      "language": "PHP",
-      "flavor": "HHVM",
-      "orm": "Raw",
-      "platform": "None",
-      "webserver": "nginx",
-      "os": "Linux",
-      "database_os": "Linux",
-      "display_name": "laravel",
-      "notes": "",
-      "versus": "php7"
-    },
-    "hhvm-raw": {
-      "setup_file": "setup_hhvm",
-      "db_url": "/db",
-      "query_url": "/query?queries=",
-      "fortune_url": "/fortunes",
-      "port": 8080,
-      "approach": "Realistic",
-      "classification": "Fullstack",
-      "database": "MySQL",
-      "framework": "laravel",
-      "language": "PHP",
-      "flavor": "HHVM",
-      "orm": "Raw",
-      "platform": "None",
-      "webserver": "nginx",
-      "os": "Linux",
-      "database_os": "Linux",
-      "display_name": "laravel-raw",
-      "notes": "",
-      "versus": "php7"
-    },
-    "php5": {
-      "setup_file": "setup_php5",
-      "json_url": "/json",
-      "plaintext_url": "/plaintext",
-      "port": 8080,
-      "approach": "Realistic",
-      "classification": "Fullstack",
-      "database": "None",
-      "framework": "laravel",
-      "language": "PHP",
-      "flavor": "PHP5",
-      "orm": "Raw",
-      "platform": "None",
-      "webserver": "nginx",
-      "os": "Linux",
-      "database_os": "Linux",
-      "display_name": "laravel",
-      "notes": "",
-      "versus": "php-php5"
-    },
-    "php5-raw": {
-      "setup_file": "setup_php5",
-      "db_url": "/db",
-      "query_url": "/query?queries=",
-      "fortune_url": "/fortunes",
-      "port": 8080,
-      "approach": "Realistic",
-      "classification": "Fullstack",
-      "database": "MySQL",
-      "framework": "laravel",
-      "language": "PHP",
-      "flavor": "PHP5",
-      "orm": "Raw",
-      "platform": "None",
-      "webserver": "nginx",
-      "os": "Linux",
-      "database_os": "Linux",
-      "display_name": "laravel-raw",
-      "notes": "",
-      "versus": "php-php5"
-    }
-  }]
-}
+    "framework": "laravel",
+    "tests": [{
+        "default": {
+            "setup_file": "setup",
+            "json_url": "/json",
+            "plaintext_url": "/plaintext",
+            "port": 8080,
+            "approach": "Realistic",
+            "classification": "Fullstack",
+            "database": "None",
+            "framework": "laravel",
+            "language": "PHP",
+            "flavor": "PHP7",
+            "orm": "Raw",
+            "platform": "None",
+            "webserver": "nginx",
+            "os": "Linux",
+            "database_os": "Linux",
+            "display_name": "laravel",
+            "notes": "",
+            "versus": "php7"
+        },
+        "raw": {
+            "setup_file": "setup",
+            "db_url": "/db",
+            "query_url": "/query?queries=",
+            "fortune_url": "/fortunes",
+            "port": 8080,
+            "approach": "Realistic",
+            "classification": "Fullstack",
+            "database": "MySQL",
+            "framework": "laravel",
+            "language": "PHP",
+            "flavor": "PHP7",
+            "orm": "Raw",
+            "platform": "None",
+            "webserver": "nginx",
+            "os": "Linux",
+            "database_os": "Linux",
+            "display_name": "laravel-raw",
+            "notes": "",
+            "versus": "php7"
+        },
+        "hhvm": {
+            "setup_file": "setup_hhvm",
+            "json_url": "/json",
+            "plaintext_url": "/plaintext",
+            "port": 8080,
+            "approach": "Realistic",
+            "classification": "Fullstack",
+            "database": "None",
+            "framework": "laravel",
+            "language": "PHP",
+            "flavor": "HHVM",
+            "orm": "Raw",
+            "platform": "None",
+            "webserver": "nginx",
+            "os": "Linux",
+            "database_os": "Linux",
+            "display_name": "laravel",
+            "notes": "",
+            "versus": "php7"
+        },
+        "hhvm-raw": {
+            "setup_file": "setup_hhvm",
+            "db_url": "/db",
+            "query_url": "/query?queries=",
+            "fortune_url": "/fortunes",
+            "port": 8080,
+            "approach": "Realistic",
+            "classification": "Fullstack",
+            "database": "MySQL",
+            "framework": "laravel",
+            "language": "PHP",
+            "flavor": "HHVM",
+            "orm": "Raw",
+            "platform": "None",
+            "webserver": "nginx",
+            "os": "Linux",
+            "database_os": "Linux",
+            "display_name": "laravel-raw",
+            "notes": "",
+            "versus": "php7"
+        },
+        "php5": {
+            "setup_file": "setup_php5",
+            "json_url": "/json",
+            "plaintext_url": "/plaintext",
+            "port": 8080,
+            "approach": "Realistic",
+            "classification": "Fullstack",
+            "database": "None",
+            "framework": "laravel",
+            "language": "PHP",
+            "flavor": "PHP5",
+            "orm": "Raw",
+            "platform": "None",
+            "webserver": "nginx",
+            "os": "Linux",
+            "database_os": "Linux",
+            "display_name": "laravel",
+            "notes": "",
+            "versus": "php-php5"
+        },
+        "php5-raw": {
+            "setup_file": "setup_php5",
+            "db_url": "/db",
+            "query_url": "/query?queries=",
+            "fortune_url": "/fortunes",
+            "port": 8080,
+            "approach": "Realistic",
+            "classification": "Fullstack",
+            "database": "MySQL",
+            "framework": "laravel",
+            "language": "PHP",
+            "flavor": "PHP5",
+            "orm": "Raw",
+            "platform": "None",
+            "webserver": "nginx",
+            "os": "Linux",
+            "database_os": "Linux",
+            "display_name": "laravel-raw",
+            "notes": "",
+            "versus": "php-php5"
+        }
+    }]
+}

+ 2 - 2
frameworks/PHP/laravel/readme.md

@@ -23,9 +23,9 @@ Uses Laravels template engine 'blade'
 The tests were run with:
 
 * [Laravel Version 4.2](http://laravel.com/)
-* [PHP Version 7.0.1](http://www.php.net/) with FPM and APC
+* [PHP Version 7.1.4](http://www.php.net/) with FPM and OPcache
 * [nginx 1.9.9](http://nginx.org/)
-* [MySQL 5.5.29](https://dev.mysql.com/)
+* [MySQL 5.5.54](https://dev.mysql.com/)
 
 ## Test URLs
 ### JSON Encoding Test

+ 0 - 5
frameworks/PHP/laravel/setup-mysql.sh

@@ -1,5 +0,0 @@
-#!/bin/bash
-
-fw_depends mysql
-
-source ./setup.sh

+ 1 - 1
frameworks/PHP/laravel/setup.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 
-fw_depends php7 nginx composer
+fw_depends mysql php7 nginx composer
 
 sed -i 's|127.0.0.1|'"${DBHOST}"'|g' app/config/database.php
 sed -i 's|root .*/FrameworkBenchmarks/frameworks/PHP/php-laravel|root '"${TROOT}"'|g' deploy/nginx.conf 

+ 4 - 4
frameworks/PHP/phalcon/README.md

@@ -23,10 +23,10 @@ Uses Phalcons template engine 'Volt'
 ## Infrastructure Software Versions
 The tests were run with:
 
-* [Phalcon 1.0.0](http://phalconphp.com/)
-* [PHP Version 5.5.17](http://www.php.net/) with FPM, APC and Phalcon extension
-* [nginx 1.4.0](http://nginx.org/)
-* [MySQL 5.5.29](https://dev.mysql.com/)
+* [Phalcon 3.1.2](http://phalconphp.com/)
+* [PHP Version 7.1.4](http://www.php.net/) with FPM, OPcache and Phalcon extension
+* [nginx 1.9.9](http://nginx.org/)
+* [MySQL 5.5.54](https://dev.mysql.com/)
 * [MongoDB 2.4.8](https://mongodb.org/)
 
 ## Test URLs

+ 2 - 2
frameworks/PHP/php/README.md

@@ -18,9 +18,9 @@ Use the PHP standard [JSON encoder](http://www.php.net/manual/en/function.json-e
 ## Infrastructure Software Versions
 The tests were run with:
 
-* [PHP Version 7.0.1](http://www.php.net/) with FPM and APC
+* [PHP Version 7.1.4](http://www.php.net/) with FPM and OPcache
 * [nginx 1.9.9](http://nginx.org/)
-* [MySQL 5.5.29](https://dev.mysql.com/)
+* [MySQL 5.5.54](https://dev.mysql.com/)
 * [PHP ActiveRecord Nightly 20121221](http://www.phpactiverecord.org/)
 
 ## Test URLs

+ 2 - 2
frameworks/PHP/slim/README.md

@@ -18,9 +18,9 @@ Uses the PDO access layer
 The tests were run with:
 
 * [Slim 3.3.0](http://www.slimframework.com/)
-* [PHP Version 7.0.1](http://www.php.net/) with FPM and APC
+* [PHP Version 7.1.4](http://www.php.net/) with FPM and OPcache
 * [nginx 1.9.9](http://nginx.org/)
-* [MySQL 5.5.29](https://dev.mysql.com/)
+* [MySQL 5.5.54](https://dev.mysql.com/)
 
 ## Test URLs
 ### JSON Encoding Test

+ 1 - 1
toolset/setup/linux/frameworks/phalcon.sh

@@ -7,7 +7,7 @@ fw_installed phalcon && return 0
 # Enable the PHP phalcon extension
 sed -i 's|;extension=phalcon.so|extension=phalcon.so|g' $PHP_HOME/lib/php.ini
 
-VERSION="3.0.2"
+VERSION="3.1.2"
 
 fw_get -O https://github.com/phalcon/cphalcon/archive/v${VERSION}.tar.gz
 fw_untar v${VERSION}.tar.gz

+ 1 - 1
toolset/setup/linux/languages/php/php.ini

@@ -867,7 +867,7 @@ default_socket_timeout = 60
 ;
 ;extension=apc.so
 zend_extension=opcache.so
-extension=redis.so
+;extension=redis.so
 ;extension=phalcon.so
 ;extension=yaf.so
 extension=mongodb.so

+ 2 - 2
toolset/setup/linux/languages/php/php7.sh

@@ -2,7 +2,7 @@
 
 fw_installed php7 && return 0
 
-VERSION="7.0.1"
+VERSION="7.1.4"
 PHP_HOME=$IROOT/php-$VERSION
 
 fw_get -o php-${VERSION}.tar.gz http://php.net/distributions/php-${VERSION}.tar.gz
@@ -45,7 +45,7 @@ $PHP_HOME/bin/pecl channel-update pecl.php.net
 # Apc.so
 $PHP_HOME/bin/pecl config-set php_ini $PHP_HOME/lib/php.ini
 
-printf "\n" | $PHP_HOME/bin/pecl -q install -f redis-3.0.0
+#printf "\n" | $PHP_HOME/bin/pecl -q install -f redis-3.0.0
 
 #removed phalcon install - separate to toolset/setup/linux/frameworks