- 将 Expr_Array 的类型返回从 'php::Array' 改为 self::TYPE_ARRAY - 将字符串 'array' 的类型映射从 'php::Array' 改为 self::TYPE_ARRAY - 更新 parseInclude 方法参数类型为 Node\Expr\Include_ - 添加对不同 include 类型 (include, require, include_once, require_once) 的支持 - 在 include 表达式中传递正确的类型参数 - 添加 include 测试用例和相关测试文件pull/1/head
parent
f38098523f
commit
d3360d2f38
3 changed files with 34 additions and 4 deletions
@ -0,0 +1,12 @@ |
||||
--TEST-- |
||||
strlen |
||||
--FILE-- |
||||
<?php |
||||
include __DIR__ . '/test_include.inc'; |
||||
require __DIR__ . '/test_include.inc'; |
||||
include_once __DIR__ . '/test_include.inc'; |
||||
require_once __DIR__ . '/test_include.inc'; |
||||
?> |
||||
--EXPECT-- |
||||
test_include.inc |
||||
test_include.inc |
||||
@ -0,0 +1,2 @@ |
||||
<?php |
||||
echo basename(__FILE__) . "\n"; |
||||
Loading…
Reference in new issue