Skip to content

Commit e03d1c6

Browse files
committed
Up PHP min version to 5.6
1 parent 802d1d7 commit e03d1c6

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"source": "https://github.com/natanfelles/php-server"
2424
},
2525
"require": {
26-
"php": ">=5.4.0"
26+
"php": ">=5.6.0"
2727
},
2828
"bin": [
2929
"bin/php-server"

src/functions.php

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
*
77
* @return string
88
*/
9-
109
$function_size_conversion = function ($size) {
1110
$units = [
1211
'B',

src/server_config.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
if (file_exists($custom_config_file = getcwd() . '/php-server.ini'))
44
{
5-
$custom_config = parse_ini_file($custom_config_file, true);
5+
$custom_config = parse_ini_file($custom_config_file, true, INI_SCANNER_TYPED);
66
}
77

88
$default_config = [
@@ -19,7 +19,7 @@
1919
'max_execution_time' => 360,
2020
],
2121
'server' => [
22-
'PHPSERVER_VERSION' => '2.6',
22+
'PHPSERVER_VERSION' => '2.7',
2323
],
2424
];
2525

0 commit comments

Comments
 (0)