PHP5's C extension API has changed substantially so you need to use -php7 to specify you want PHP7 compatible wrappers. Fixes https://github.com/swig/swig/issues/571
9 lines
223 B
PHP
9 lines
223 B
PHP
<?php
|
|
|
|
require "tests.php";
|
|
require "callback.php";
|
|
// In 2.0.6 and earlier, the constant was misnamed.
|
|
if (gettype(callback::FOO_I_Cb_Ptr) !== 'resource') die("callback::FOO_I_Cb_Ptr not a resource\n");
|
|
|
|
check::done();
|
|
?>
|