codeigniter4 / CodeIgniter4

Open Source PHP Framework (originally from EllisLab)
https://codeigniter.com/
MIT License
5.39k stars 1.9k forks source link

Bug: Error en Constants.php line 41 to 43 #6464

Closed daltonmart closed 2 years ago

daltonmart commented 2 years ago

PHP Version

7.4

CodeIgniter4 Version

4.2.5

CodeIgniter4 Installation Method

Composer (as dependency to an existing project)

Which operating systems have you tested for this bug?

Linux

Which server did you use?

apache

Database

No response

What happened?

in the file App/Config/Constants.php lines 41 to 43: 41 defined('MONTH') || define('MONTH', 2_592_000); 42 defined('YEAR') || define('YEAR', 31_536_000); 43 defined('DECADE') || define('DECADE', 315_360000); the "" character must be removed, leaving it as follows:

defined('MONTH') || define('MONTH', 2592000); defined('YEAR') || define('YEAR', 31536000); defined('DECADE') || define('DECADE', 315360000);

Steps to Reproduce

see on file App/Config/Constants.php lines 41 to 43:

Expected Output

nothing

Anything else?

No response

datamweb commented 2 years ago

Hi @daltonmart , Not Bug. See