source: src/router/php7/ext/gd/tests/libgd00094-mb.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

File size: 529 bytes
Line 
1--TEST--
2libgd #94 (imagecreatefromxbm can crash if gdImageCreate fails)
3--SKIPIF--
4<?php
5        if (!extension_loaded('gd')) die("skip gd extension not available\n");
6        if (!GD_BUNDLED) die("skip requires bundled GD library\n");
7?>
8--FILE--
9<?php
10$im = imagecreatefromxbm(dirname(__FILE__) . '/libgd00094私はガラスを食べられたす.xbm');
11var_dump($im);
12?>
13--EXPECTF--
14Warning: imagecreatefromxbm(): '%slibgd00094私はガラスを食べられたす.xbm' is not a valid XBM file in %slibgd00094-mb.php on line %d
15bool(false)
16
Note: See TracBrowser for help on using the repository browser.