summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/unpack_error.phpt
blob: c41185b23acef8d328121a0065a32e82c2786335 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Test unpack() function : error conditions
--FILE--
<?php

try {
    var_dump(unpack("B", pack("I", 65534)));
} catch (ValueError $e) {
    echo $e->getMessage(), "\n";
}

?>
--EXPECT--
Invalid format type B