1--TEST--
2Test unpack() function : error conditions
3--FILE--
4<?php
5
6try {
7    var_dump(unpack("B", pack("I", 65534)));
8} catch (ValueError $e) {
9    echo $e->getMessage(), "\n";
10}
11
12?>
13--EXPECT--
14Invalid format type B
15