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.
 
 

14 lines
443 B

<?php
/**
* std::int()/std::float() opt into native C++ arithmetic, so a proven zero
* divisor cannot be silently rerouted to PHP semantics; it keeps the
* compile-time rejection used by native scalar storage.
*/
class NativeSlotZeroDivisorTest extends BaseTest
{
public function testExplicitNativeSlotZeroDivisorIsRejected(): void
{
$this->exec('Cannot divide or modulo by zero', 'native_slot_zero_divisor.php');
}
}