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.
Aer Information
48b2e9d1c6
Your problem description
Include functions [include(), include_once(), require(), require_once()] does not check for opening and closing bracket. They can be called both:
and
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.
Should we treat this as a bug? Should we change this?
What is your opinion?
Will be done in compiler_rework branch.
b5fe36c14b
9100bf0696