--TEST-- can get error messages --SKIPIF-- --FILE-- 2])["out"]; # this should error out since it's 2 band image + 3 band image $err = vips_call("add", $image, $rg); $msg = vips_error_buffer(); if ($err == -1 && $msg == "add: not one band or 3 bands\n") { echo "pass"; } ?> --EXPECT-- pass