£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyʦ•ꎅȮFÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~芩ÊǍí`ÔÑ©ú뙵'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶êםӼ㞪éUWŸÈË%DÒÕ¬ï‘]/Åcx ‰ï2ß]ä6G[]S£Ôϯrs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ ¯¹ægƒÛowЍø^d™ý½ßB7áyMä9ÜÖUã !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --TEST-- Test bug 63677 - getimagehistogram --SKIPIF-- --FILE-- gmagick = $gmagick; $this->layers = new Layers($this, $this->gmagick); } public function __destruct() { if (null !== $this->gmagick && $this->gmagick instanceof \Gmagick) { $this->gmagick->clear(); $this->gmagick->destroy(); } } public function histogram() { return array_map( function(\GmagickPixel $pixel) { return new \stdClass(); }, $this->gmagick->getimagehistogram() ); } } class Layers { private $image; private $resource; public function __construct(Image $image, \Gmagick $resource) { $this->image = $image; $this->resource = $resource; } } for ($i=0; $i<5; $i++) { $image = new Image(new \Gmagick("magick:logo")); // the same fixture must beloaded twice to reprodcue the seg fault $image = new Image(new \Gmagick("magick:logo")); $image->histogram(); } echo "ok"; ?> --EXPECT-- ok