Skip to content

Commit 69f1f73

Browse files
authored
Replaced ENCODE with AES_ENCRYPT #7 and fixed RAND issue #6
1 parent 4172263 commit 69f1f73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmark.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
function test_benchmark($settings)
147147
{
148148
$result = array();
149-
$result['version'] = '1.2';
149+
$result['version'] = '1.4';
150150
$result['sysinfo']['time'] = date('Y-m-d H:i:s');
151151
$result['sysinfo']['php_version'] = PHP_VERSION;
152152
$result['sysinfo']['platform'] = PHP_OS;
@@ -246,7 +246,7 @@ function test_mysql(&$result, $settings)
246246
$result['sysinfo']['mysql_version'] = $arr_row['version'];
247247
$result['benchmark']['mysql_query_version'] = timer_diff($timeStart) . ' sec.';
248248

249-
$query = "SELECT BENCHMARK(1000000,ENCODE('hello',RAND()));";
249+
$query = "SELECT BENCHMARK(1000000, AES_ENCRYPT('hello', UNHEX('F3229A0B371ED2D9441B830D21A390C3')));";
250250
mysqli_query($link, $query);
251251
$result['benchmark']['mysql_query_benchmark'] = timer_diff($timeStart) . ' sec.';
252252

0 commit comments

Comments
 (0)