include functions syntax #28

已关闭
belliash2018-07-29 08:00:33 +02:00创建 · 4 评论
管理员

Aer Information

  • Aer Version (or commit ref): 48b2e9d1c6
  • Operating System: Linux
  • System Architecture (eg. arm, x86_64, ...): x86_64

Your problem description

Include functions [include(), include_once(), require(), require_once()] does not check for opening and closing bracket. They can be called both:

include('file.php');

and

include 'file.php';

As there is no limit of using including function and such instruction can be put anywhere, IMHO it should have syntax like standard function.

Expected results

include 'file.php'; should fail.

Current results

no error about wrong syntax.

<!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please take a moment to check that your issue doesn't already exist. 3. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> # Aer Information - Aer Version (or commit ref): 48b2e9d1c6 - Operating System: Linux - System Architecture (eg. arm, x86_64, ...): x86_64 # Your problem description Include functions [include(), include_once(), require(), require_once()] does not check for opening and closing bracket. They can be called both: include('file.php'); and include 'file.php'; As there is no limit of using including function and such instruction can be put anywhere, IMHO it should have syntax like standard function. # Expected results include 'file.php'; should fail. # Current results no error about wrong syntax.
belliash2018-07-29 08:00:33 +02:00 添加了标签
bug
作者
管理员

Should we treat this as a bug? Should we change this?
What is your opinion?

Should we treat this as a bug? Should we change this? What is your opinion?
belliash2018-07-29 08:20:34 +02:00 添加了标签
idea
,删除了标签
bug
belliash2018-08-11 22:14:58 +02:00 指派给自己
作者
管理员

Will be done in compiler_rework branch.

Will be done in compiler_rework branch.
作者
管理员
b5fe36c14b
作者
管理员
9100bf0696
belliash2018-08-16 17:44:12 +02:00 关闭此工单
登录 并参与到对话中。
未选择里程碑
未指派成员
1 名参与者
通知
到期时间
到期日期无效或超出范围。请使用 'yyyy-mm-dd' 格式。

未设置到期时间。

依赖工单

没有设置依赖项。

参考:aerscript/Aer#28
没有提供说明。