mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
a375d54785
Cf. PR #6787. Closes GH-6994.
18 lines
351 B
PHP
18 lines
351 B
PHP
--TEST--
|
|
GdImage instances must not be serialized
|
|
--EXTENSIONS--
|
|
gd
|
|
--FILE--
|
|
<?php
|
|
|
|
$img_src = imagecreatetruecolor(32, 32);
|
|
var_dump(serialize($img_src));
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Exception: Serialization of 'GdImage' is not allowed in %s:%d
|
|
Stack trace:
|
|
#0 %s(%d): serialize(Object(GdImage))
|
|
#1 {main}
|
|
thrown in %s on line %d
|