include functions syntax #28

Zamknięty
otworzone 2018-07-29 08:00:33 +02:00 przez belliash · 4 komentarzy
Właściciel

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.
belliash dodano
bug
etykietę 2018-07-29 08:00:33 +02:00
Author
Właściciel

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?
belliash dodano
idea
i usunięto
bug
etykiety 2018-07-29 08:20:34 +02:00
belliash przypisuje to na siebie 2018-08-11 22:14:58 +02:00
Author
Właściciel

Will be done in compiler_rework branch.

Will be done in compiler_rework branch.
Author
Właściciel
b5fe36c14b
Author
Właściciel
9100bf0696
belliash zamknął(-ęła) to zgłoszenie 2018-08-16 17:44:12 +02:00
Zaloguj się, aby dołączyć do tej rozmowy.
Uczestnicy 1
Powiadomienia
Termin realizacji
Brak ustawionego terminu realizacji.
Zależności

No dependencies set.

Reference: aerscript/Aer#28
No description provided.