mirror of
https://github.com/danog/ext-php-rs.git
synced 2024-12-02 09:37:51 +01:00
815452f799
We shouldn't really be returning Zval objects, rather references to Zval objects. There is currently a memory leak with arrays that need to be resolved.
17 lines
298 B
PHP
17 lines
298 B
PHP
<?php
|
|
|
|
var_dump(SKEL_TEST_CONST, SKEL_TEST_LONG_CONST);
|
|
var_dump(test_array());
|
|
die;
|
|
|
|
$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;
|
|
}));
|