TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
301 B
19 lines
301 B
--TEST--
|
|
Python module aliases lazily import through phpy
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('phpy')) {
|
|
die('skip phpy extension is not loaded');
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
use Python\math;
|
|
|
|
function main(): void
|
|
{
|
|
var_dump(python\scalar(math::$pi)->toFloat() > 3.14);
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
|