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

Constant %s is deprecated

With new versions, PHP deprecates some constants. Mostly global constants, but also class constants, when needed.

8.4

  • SUNFUNCS_RET_TIMESTAMP

  • SUNFUNCS_RET_STRING

  • SUNFUNCS_RET_DOUBLE

8.3

  • ASSERT_ACTIVE

  • ASSERT_BAIL

  • ASSERT_CALLBACK

  • ASSERT_EXCEPTION

  • ASSERT_WARNING

PHP code

<?php

echo SUNFUNCS_RET_TIMESTAMP;

?>

Before

0

After

PHP Deprecated:  Constant SUNFUNCS_RET_TIMESTAMP is deprecated 

Deprecated: Constant SUNFUNCS_RET_TIMESTAMP is deprecated 
0

PHP version change

This behavior changed in 8.4.

Error Messages

Extension

© 2023-2026, Damien Seguy - Exakat