mirror of
https://github.com/danog/ext-php-rs.git
synced 2024-12-12 09:09:46 +01:00
349d497793
* Exceptions have static lifetimes * Added functions for throwing exceptions Changed the `ClassEntry` implementation to unwrap the result before returning, as these types are guaranteed to be valid. Also replaced the 'a lifetime with 'static lifetimes.
13 lines
219 B
PHP
13 lines
219 B
PHP
<?php
|
|
|
|
$x = new TestClass();
|
|
|
|
skeleton_version(1, 2);
|
|
|
|
var_dump($x->call(function ($v1, $v2) {
|
|
// var_dump($v1, $v2);
|
|
// echo "Hello, world! I'm a callable.".PHP_EOL;
|
|
// return "Ok rust";
|
|
return 0;
|
|
}));
|