Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/gd/tests/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/gd/tests/imageloadfont_invalid.phpt |
--TEST-- imageloadfont() function crashes --SKIPIF-- <?php if (!extension_loaded('gd')) die("skip gd extension not available\n"); ?> --FILE-- <?php $filename = dirname(__FILE__) . '/font.gdf'; $bin = "\x41\x41\x41\x41\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00"; $fp = fopen($filename, 'wb'); fwrite($fp, $bin); fclose($fp); $image = imagecreatetruecolor(50, 20); $font = imageloadfont($filename); $black = imagecolorallocate($image, 0, 0, 0); imagestring($image, $font, 0, 0, "Hello", $black); unlink($filename); ?> --EXPECTF-- Warning: imageloadfont(): gd warning: product of memory allocation multiplication would exceed INT_MAX, failing operation gracefully in %simageloadfont_invalid.php on line %d Warning: imageloadfont(): Error reading font, invalid font header in %simageloadfont_invalid.php on line %d
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare