|
@@ 500-505 (lines=6) @@
|
| 497 |
|
$text .= 'Install it or recompile php without --disable-phar'; |
| 498 |
|
break; |
| 499 |
|
|
| 500 |
|
case 'unicode': |
| 501 |
|
$text = PHP_EOL.'The detect_unicode setting must be disabled.'.PHP_EOL; |
| 502 |
|
$text .= 'Add the following to the end of your `php.ini`:'.PHP_EOL; |
| 503 |
|
$text .= ' detect_unicode = Off'; |
| 504 |
|
$displayIniMessage = true; |
| 505 |
|
break; |
| 506 |
|
|
| 507 |
|
case 'suhosin': |
| 508 |
|
$text = PHP_EOL.'The suhosin.executor.include.whitelist setting is incorrect.'.PHP_EOL; |
|
@@ 507-512 (lines=6) @@
|
| 504 |
|
$displayIniMessage = true; |
| 505 |
|
break; |
| 506 |
|
|
| 507 |
|
case 'suhosin': |
| 508 |
|
$text = PHP_EOL.'The suhosin.executor.include.whitelist setting is incorrect.'.PHP_EOL; |
| 509 |
|
$text .= 'Add the following to the end of your `php.ini` or suhosin.ini (Example path [for Debian]: /etc/php5/cli/conf.d/suhosin.ini):'.PHP_EOL; |
| 510 |
|
$text .= ' suhosin.executor.include.whitelist = phar '.$current; |
| 511 |
|
$displayIniMessage = true; |
| 512 |
|
break; |
| 513 |
|
|
| 514 |
|
case 'php': |
| 515 |
|
$text = PHP_EOL."Your PHP ({$current}) is too old, you must upgrade to PHP 5.3.9 or higher."; |
|
@@ 518-523 (lines=6) @@
|
| 515 |
|
$text = PHP_EOL."Your PHP ({$current}) is too old, you must upgrade to PHP 5.3.9 or higher."; |
| 516 |
|
break; |
| 517 |
|
|
| 518 |
|
case 'allow_url_fopen': |
| 519 |
|
$text = PHP_EOL.'The allow_url_fopen setting is incorrect.'.PHP_EOL; |
| 520 |
|
$text .= 'Add the following to the end of your `php.ini`:'.PHP_EOL; |
| 521 |
|
$text .= ' allow_url_fopen = On'; |
| 522 |
|
$displayIniMessage = true; |
| 523 |
|
break; |
| 524 |
|
|
| 525 |
|
case 'ioncube': |
| 526 |
|
$text = PHP_EOL."Your ionCube Loader extension ($current) is incompatible with Phar files.".PHP_EOL; |
|
@@ 525-530 (lines=6) @@
|
| 522 |
|
$displayIniMessage = true; |
| 523 |
|
break; |
| 524 |
|
|
| 525 |
|
case 'ioncube': |
| 526 |
|
$text = PHP_EOL."Your ionCube Loader extension ($current) is incompatible with Phar files.".PHP_EOL; |
| 527 |
|
$text .= 'Upgrade to ionCube 4.0.9 or higher or remove this line (path may be different) from your `php.ini` to disable it:'.PHP_EOL; |
| 528 |
|
$text .= ' zend_extension = /usr/lib/php5/20090626+lfs/ioncube_loader_lin_5.3.so'; |
| 529 |
|
$displayIniMessage = true; |
| 530 |
|
break; |
| 531 |
|
|
| 532 |
|
case 'openssl': |
| 533 |
|
$text = PHP_EOL.'The openssl extension is missing, which means that secure HTTPS transfers are impossible.'.PHP_EOL; |
|
@@ 557-562 (lines=6) @@
|
| 554 |
|
foreach ($warnings as $warning => $current) { |
| 555 |
|
$text = ''; |
| 556 |
|
switch ($warning) { |
| 557 |
|
case 'apc_cli': |
| 558 |
|
$text = PHP_EOL.'The apc.enable_cli setting is incorrect.'.PHP_EOL; |
| 559 |
|
$text .= 'Add the following to the end of your `php.ini`:'.PHP_EOL; |
| 560 |
|
$text .= ' apc.enable_cli = Off'; |
| 561 |
|
$displayIniMessage = true; |
| 562 |
|
break; |
| 563 |
|
|
| 564 |
|
case 'sigchild': |
| 565 |
|
$text = PHP_EOL.'PHP was compiled with --enable-sigchild which can cause issues on some platforms.'.PHP_EOL; |