/
proc
/
3430793
/
root
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
gd
/
tests
/
File Upload :
llllll
Current File: //proc/3430793/root/usr/local/lsws/phpbuild/php-8.0.7/ext/gd/tests/bug79615.phpt
--TEST-- Bug #79615 (Wrong GIF header written in GD GIFEncode) --SKIPIF-- <?php if (!extension_loaded('gd')) die('skip gd extension not available'); ?> --FILE-- <?php $im = imagecreate(3, 3); // 3x3, 9 colors, 4 bits per pixel for ($x = 0; $x < 3; $x++) { for ($y = 0; $y < 3; $y++) { imagesetpixel($im, $x, $y, imagecolorallocate($im, $x, $y, 0)); } } ob_start(); imagegif($im); echo decbin(ord(ob_get_clean()[0xA])); ?> --EXPECT-- 10110011
Copyright ©2k19 -
Hexid
|
Tex7ure