We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a61ccc commit 9e2f8adCopy full SHA for 9e2f8ad
mo2array.php
@@ -3,13 +3,16 @@
3
4
class mo2array {
5
const MO2ARRAY_VERSION_MAJOR = 3;
6
- const MO2ARRAY_VERSION_MINOR = 1;
+ const MO2ARRAY_VERSION_MINOR = 2;
7
8
const MO_MAGIC_WORD_BE = "950412de";
9
const MO_MAGIC_WORD_LE = "de120495";
10
const MO_SIZEOF_HEADER = 28;
11
12
public static function decode($mo, $throw = false): array|false {
13
+ if (!is_string($mo))
14
+ throw new \Exception("File must be supplied as a string.");
15
+
16
$array = array();
17
$length = strlen($mo);
18
$big_endian = null;
0 commit comments