|
113 | 113 | if (file_exists('kvstorage-xcache.inc') && extension_loaded('xCache')) {
|
114 | 114 | @include_once("kv-xcache.inc");
|
115 | 115 | }
|
| 116 | +if (file_exists('kvstorage-apcu.inc') && extension_loaded('apcu')) { |
| 117 | + @include_once("kv-apcu.inc"); |
| 118 | +} |
| 119 | +if (file_exists('kvstorage-shmop.inc') && extension_loaded('shmop')) { |
| 120 | + @include_once("kv-shmop.inc"); |
| 121 | +} |
116 | 122 | }// php>=5.0
|
117 | 123 |
|
118 | 124 | if (extension_loaded('uuid')) {
|
@@ -786,6 +792,8 @@ function gethostname() {
|
786 | 792 | '38_02_mod_uuid' => 1000000,
|
787 | 793 | '39_01_kvstorage_memory' => 1000000,
|
788 | 794 | '39_02_kvstorage_xcache' => 1000000,
|
| 795 | + '39_03_kvstorage_apcu' => 1000000, |
| 796 | + '39_04_kvstorage_shmop' => 1000000, |
789 | 797 | );
|
790 | 798 | // Should not be more than X Mb
|
791 | 799 | // Different PHP could use different amount of memory
|
@@ -845,7 +853,9 @@ function gethostname() {
|
845 | 853 | '38_01_php_uuid' => 4,
|
846 | 854 | '38_02_mod_uuid' => 4,
|
847 | 855 | '39_01_kvstorage_memory' => 4,
|
848 | | - '39_02_kvstorage_xcache' => 4, |
| 856 | + '39_02_kvstorage_xcache' => 47, |
| 857 | + '39_03_kvstorage_apcu' => 93, |
| 858 | + '39_04_kvstorage_shmop' => 4, |
849 | 859 | );
|
850 | 860 |
|
851 | 861 | /** ---------------------------------- Common functions -------------------------------------------- */
|
@@ -1648,6 +1658,10 @@ function filter_out_name_by_pattern($key)
|
1648 | 1658 | if (extension_loaded('apc')) {
|
1649 | 1659 | $has_apc = "{$colorYellow}yes{$colorReset}";
|
1650 | 1660 | }
|
| 1661 | +$has_apcu = "{$colorYellow}no{$colorReset}"; |
| 1662 | +if (extension_loaded('apcu')) { |
| 1663 | + $has_apcu = "{$colorGreen}yes{$colorReset}"; |
| 1664 | +} |
1651 | 1665 | $has_eacc = "{$colorGreen}no{$colorReset}";
|
1652 | 1666 | if (extension_loaded('eAccelerator')) {
|
1653 | 1667 | $has_eacc = "{$colorYellow}yes{$colorReset}";
|
@@ -1751,7 +1765,7 @@ function print_results_common()
|
1751 | 1765 | global $flushStr, $has_apc, $has_pcre, $has_intl, $has_json, $has_simplexml, $has_dom, $has_mbstring, $has_opcache, $has_xcache;
|
1752 | 1766 | global $has_gd, $has_imagick, $has_igb, $has_msg, $has_jsond, $has_jsond_as_json;
|
1753 | 1767 | global $has_zlib, $has_uuid, $has_gzip, $has_bz2, $has_lz4, $has_snappy, $has_zstd, $has_brotli;
|
1754 | | - global $opcache, $has_eacc, $has_xdebug, $xcache, $apcache, $eaccel, $xdebug, $xdbg_mode, $obd_set, $mbover; |
| 1768 | + global $has_apcu, $opcache, $has_eacc, $has_xdebug, $xcache, $apcache, $eaccel, $xdebug, $xdbg_mode, $obd_set, $mbover; |
1755 | 1769 | global $showOnlySystemInfo, $padLabel, $functions, $runOnlySelectedTests, $selectedTests, $totalOps;
|
1756 | 1770 | global $colorGreen, $colorReset, $colorRed;
|
1757 | 1771 |
|
@@ -1787,6 +1801,7 @@ function print_results_common()
|
1787 | 1801 | . str_pad("-optional->", $padInfo, '', STR_PAD_LEFT) . "\n"
|
1788 | 1802 | . str_pad("gd", $padInfo, '', STR_PAD_LEFT) . " : $has_gd: version: ". GD_VERSION."\n"
|
1789 | 1803 | . str_pad("imagick", $padInfo, '', STR_PAD_LEFT) . " : $has_imagick: version: ".IMG_VERSION."\n"
|
| 1804 | + . str_pad("apcu", $padInfo, '', STR_PAD_LEFT) . " : $has_apcu;\n" |
1790 | 1805 | . str_pad("-alternative->", $padInfo, '', STR_PAD_LEFT) . "\n"
|
1791 | 1806 | . str_pad("igbinary", $padInfo, '', STR_PAD_LEFT) . " : $has_igb\n"
|
1792 | 1807 | . str_pad("msgpack", $padInfo, '', STR_PAD_LEFT) . " : $has_msg\n"
|
|
0 commit comments