1--TEST--
2Testing null byte injection in imagexbm
3--EXTENSIONS--
4gd
5--FILE--
6<?php
7$image = imagecreate(1,1);// 1px image
8try {
9    imagexbm($image, "./foo\0bar");
10} catch (ValueError $e) {
11    echo $e->getMessage(), "\n";
12}
13?>
14--EXPECT--
15imagexbm(): Argument #2 ($filename) must not contain any null bytes
16