We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 601717c commit 984bcb2Copy full SHA for 984bcb2
README.en.md
@@ -27,6 +27,8 @@ Required modules for full php testing:
27
- memcache
28
- redis
29
- sqlite3
30
+ - mysql/mysqli
31
+ - pgsql
32
33
Usually they are already installed or "compiled" in php.
34
README.md
@@ -27,6 +27,8 @@
Обычно они уже установлены или "вкомпилированны" в php.
bench.php
@@ -2018,7 +2018,7 @@ function print_results_common()
2018
. str_pad("bz2", $padInfo, '', STR_PAD_LEFT) . " : $has_bz2\n"
2019
. str_pad("lz4", $padInfo, '', STR_PAD_LEFT) . " : $has_lz4\n"
2020
. str_pad("snappy", $padInfo, '', STR_PAD_LEFT) . " : $has_snappy\n"
2021
- . str_pad("zstd", $padInfo, '', STR_PAD_LEFT) . " : $has_zstd, version: ".LIBZSTD_VERSION_STRING."\n"
+ . str_pad("zstd", $padInfo, '', STR_PAD_LEFT) . " : $has_zstd, version: ".LIBZSTD_VERSION_STRING.";\n"
2022
. str_pad("brotli", $padInfo, '', STR_PAD_LEFT) . " : $has_brotli\n"
2023
. str_pad("uuid", $padInfo, '', STR_PAD_LEFT) . " : $has_uuid\n"
2024
. str_pad("-affecting->", $padInfo, '', STR_PAD_LEFT) . "\n"
compression-zstd.inc
@@ -0,0 +1,24 @@
1
+<?php
2
+/**
3
+ * php test functions for compression by brotli
4
+ * Php 5.2+
5
+ */
6
+
7
+/** ---------------------------------- Tests functions -------------------------------------------- */
8
9
+function test_36_zstd_compress()
10
+{
11
+ global $stringTest, $emptyResult, $testsLoopLimits, $totalOps, $stringTest;
12
13
+ if (!function_exists('zstd_compress')) {
14
+ return $emptyResult;
15
+ }
16
17
+ $count = $testsLoopLimits['36_zstd_compress'];
18
+ $time_start = get_microtime();
19
+ for ($i = 0; $i < $count; $i++) {
20
+ $r = zstd_compress($stringTest, 1);
21
22
+ $totalOps += $count;
23
+ return format_result_test(get_microtime() - $time_start, $count, mymemory_usage());
24
+}
kv-pgsql.inc
@@ -39,7 +39,7 @@ function test_47_kvs_pgsql()
39
$time_start = get_microtime();
40
41
for ($i = 0; $i < $count; $i++) {
42
- $num = $i / 100.;
+ $num = number_format($i / 100., 2, '.', '');
43
$kvstorage->set($i, $num);
44
$v=$kvstorage->get($i);
45
$kvstorage->del($i);
kv-sqlite3-devshm-file.inc
@@ -39,10 +39,10 @@ function test_39_08_kvs_sqlite3_devshm_file()
- if ($v===$num) $kvstorage->del($i);
+ $kvstorage->del($i);
46
}
47
$kvstorage->close();
48
$totalOps += $count;
kv-sqlite3-generic-file.inc
@@ -39,10 +39,10 @@ function test_39_07_kvs_sqlite3_generic_file()
kv-sqlite3-memory-file.inc
@@ -39,10 +39,10 @@ function test_39_09_kvs_sqlite3_memory_file()
+ $num = number_format( $i / 100., 2, '.', '');
kvstorage-sqlite3.inc
@@ -59,7 +59,7 @@ class KVStorageSqlite3
59
60
public function del($key){
61
if (!$this->available) return 0;
62
- $this->db->exec("DELETE {$this->tableName} WHERE key=$key;");
+ $this->db->exec("DELETE FROM {$this->tableName} WHERE key=$key;");
63
return $this->db->changes();
64
65
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments