"Fossies" - the Fresh Open Source Software Archive

Member "hhvm-HHVM-4.166.0/hphp/test/slow/ext_imagick/php_imagick_tests/001_imagick_readimage.php" (8 Aug 2022, 218 Bytes) of package /linux/www/hhvm-HHVM-4.166.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 <?hh <<__EntryPoint>> function main(): void {
    2 print "--- Catch exception with try/catch\n";
    3 $imagick = new Imagick();
    4 try {
    5   $imagick->readImage('foo.jpg');
    6 } catch (ImagickException $e) {
    7   echo "got exception";
    8 }
    9 }