Constant %s is deprecated

Description

This error is emitted when a global constant is supported in the current PHP engine, but will be removed in a future version.

The error is emitted every time the constant is used: it may be for its actual intend, or anywhere else.

Example

<?php

error_reporting(E_STRICT);

?>

Literal Examples

  • Constant E_STRICT is deprecated

Solutions

  • Stop using that global constant.

  • Find the replacement for this global constant: it might be another constant, or a different command entirely.