Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

E_STRICT Is Deprecated

The PHP native constant E_STRICT is deprecated, and will be removed in PHP 9.0.

PHP code

<?php

var_dump(error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT));

?>

Before

int(32767)

After

PHP Deprecated:  Constant E_STRICT is deprecated

Deprecated: Constant E_STRICT is deprecated
int(30719)

PHP version change

This behavior was deprecated in 8.4.

This behavior changed in 9.0.

See Also

Error Messages

Extension

© 2023-2026, Damien Seguy - Exakat