Skip to content
This repository was archived by the owner on Oct 5, 2023. It is now read-only.
This repository was archived by the owner on Oct 5, 2023. It is now read-only.

Remove / reduce PHP warnings in CodeIgniter log files #369

@nfreear

Description

@nfreear

...

1. Undefined index: HTTP_HOST ... -- command-line calls!

ERROR - 2017-12-04 10:41:21 --> Severity: Notice  --> Undefined index: HTTP_HOST ... /cloudworks/system/application/config/config.php 15

system/application/config.php:

$__dir = str_replace('\\', '/', dirname($_SERVER[ 'SCRIPT_NAME' ]));
$config[ 'base_url' ] = 'http://' . filter_input( INPUT_SERVER, 'HTTP_HOST' ) . $__dir;
if ('/' !== $__dir) {
  $config['base_url'] .= '/';
}

2. 8192 --> Methods with the same name as their class ...

ERROR - 2017-11-30 16:39:53 --> Severity: 8192  --> Methods with the same name as their class will not be constructors in a future version of PHP; CI_User_agent has a deprecated constructor ... /cloudworks/system/libraries/User_agent.php 29

....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions