pull/1/head
韩天峰 8 months ago
parent ba3ffd885f
commit 1036317e74
  1. 2
      examples/project/ext.cc
  2. 2
      examples/project/ext.stub.php
  3. 3
      examples/project/main.php

@ -3,7 +3,7 @@
using namespace php;
Int php_ext_test(Int a, Int b) {
Int php_fn_test(Int a, Int b) {
auto c = a + b;
var_dump(c);
var_dump(php_uname());

@ -1,4 +1,4 @@
<?php
function ext_test(int $a, int $b): int
function fn_test(int $a, int $b): int
{
}

@ -2,5 +2,6 @@
function main()
{
fn1();
ext_test(199, 189);
$rs = fn_test(199, 189);
var_dump(gettype($rs));
}
Loading…
Cancel
Save