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