@@ 730-735 (lines=6) @@ | ||
727 | } |
|
728 | ||
729 | $func_name = "imagecreatefrom$img_type"; |
|
730 | if (!function_exists($func_name)) { |
|
731 | if (!method_exists("Dompdf\Helpers", $func_name)) { |
|
732 | throw new \Exception("Function $func_name() not found. Cannot convert $type image: $img_url. Please install the image PHP extension."); |
|
733 | } |
|
734 | $func_name = "\\Dompdf\\Helpers::" . $func_name; |
|
735 | } |
|
736 | $src = @call_user_func($func_name, $img_url); |
|
737 | ||
738 | if (!$src) { |
@@ 616-621 (lines=6) @@ | ||
613 | { |
|
614 | $func_name = "imagecreatefrom$type"; |
|
615 | ||
616 | if (!function_exists($func_name)) { |
|
617 | if (!method_exists("Dompdf\Helpers", $func_name)) { |
|
618 | throw new Exception("Function $func_name() not found. Cannot convert $type image: $image_url. Please install the image PHP extension."); |
|
619 | } |
|
620 | $func_name = "\\Dompdf\\Helpers::" . $func_name; |
|
621 | } |
|
622 | ||
623 | set_error_handler(array("\\Dompdf\\Helpers", "record_warnings")); |
|
624 | $im = call_user_func($func_name, $image_url); |