1--TEST-- 2Bug #73157 (imagegd2() ignores 3rd param if 4 are given) 3--SKIPIF-- 4<?php 5if (!extension_loaded('gd')) die('skip gd extension not available'); 6?> 7--FILE-- 8<?php 9$im = imagecreate(8, 8); 10imagecolorallocate($im, 0, 0, 0); 11 12ob_start(); 13imagegd2($im, null, 256, IMG_GD2_RAW); 14$buffer = ob_get_clean(); 15 16$header = unpack('@10/nchunk_size', $buffer); 17printf("chunk size: %d\n", $header['chunk_size']); 18?> 19--EXPECT-- 20chunk size: 256 21