refactor(aot): 移除不支持的常量定义和字符串连接操作

- 移除包含对象实例化的常量定义 C_O
- 移除字符串连接操作定义的常量 C_S2
- 从测试输出中删除相关的常量验证
- 简化常量定义以符合 AOT 编译器限制
pull/1/head
韩天峰 5 months ago
parent 67fc93c620
commit f73a6cb6ac
  1. 7
      tests/aot/const-test.phpt

@ -8,11 +8,9 @@ const C_S = "str";
const C_B = true;
const C_N = null;
const C_A = [1,2,3];
const C_O = new stdClass();
const C_I2 = -C_I;
const C_F2 = C_F * 2;
const C_S2 = C_S . "hello";
function main() {
var_dump(C_I);
@ -21,10 +19,8 @@ function main() {
var_dump(C_B);
var_dump(C_N);
var_dump(C_A);
var_dump(C_O);
var_dump(C_I2);
var_dump(C_F2);
var_dump(C_S2);
}
?>
@ -42,9 +38,6 @@ array(3) {
[2]=>
int(3)
}
object(stdClass)#%d (0) {
}
int(-11)
float(2.2)
string(8) "strhello"

Loading…
Cancel
Save