Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
header.h
hello-world.php

README.md

103-hello-world-with-trycatch

This example shows how to add simple error handling into FFI instance creation and library loading using a catch-all try-catch construct.

To run:

$ php hello-world.php
> Hello world!
You can’t perform that action at this time.