This commit is contained in:
Little Fluffy Clouds 2025-07-12 20:42:01 +03:00
parent a583763d3c
commit 4c6ceb5b4e

View File

@ -357,14 +357,14 @@ class database
// Writing into the buffer of read values // Writing into the buffer of read values
$unpacked[] = $encoded; $unpacked[] = $encoded;
} }
/** /**
* PHP builtin pack() ignores 64-bit integer values * PHP builtin pack() ignores 64-bit integer values
* found on 64-bit PHP distributions * found on 64-bit PHP distributions
* @see https://www.php.net/manual/en/function.pack.php#109382 * @see https://www.php.net/manual/en/function.pack.php#109382
* *
* In case of integer type on 64-bit PHP distributions * In case of integer type on 64-bit PHP distributions
* we got to reconstruct previosly spliced integer value * we got to reconstruct previosly spliced integer value
*/ */
else if (self::$architecture === architecture::x86_64 && else if (self::$architecture === architecture::x86_64 &&
($column->type === type::integer || ($column->type === type::integer ||
$column->type === type::integer_unsigned)) $column->type === type::integer_unsigned))