No Deprecated

July 20, 2015 ยท View on GitHub

From version to version, PHP depreciates some features and replaces them with new ones, or not. This is normal evolution of the platform. Deprecated features are initially marked as such, then, removed in a following version.

For example, the extension ext/mysql has been removed in PHP 5.5, and it was obsolete in the previous versions. In the current PHP 5.6 version, the variable $HTTP\_RAW\_POST\_DATA, the configuration directives iconv.input\_encoding (and some related ones), and static call to normal methods are depreciated.

Rule Details

This rule targets code that is marked as obsolete in one of the PHP versions, or was removed. The list of such deprecated features is available in the manual, in the migration pages.

Deprecated Functions

  • PHP 5.3
    • dl
    • chroot
  • PHP 5.4
    • import_request_variables
    • define_syslog_variables
    • ob_iconv_handler
    • session_register
    • session_unregister
    • session_is_registered
  • PHP 5.5
    • php_logo_guid
    • php_real_logo_guid
    • php_egg_logo_guid
    • zend_logo_guid
  • PHP 5.6
  • PHP 7.0
    • magic_quotes_runtime
    • set_magic_quotes_runtime
    • call_user_method
    • call_user_method_array
    • set_socket_blocking

Deprecated Constants

Deprecated Classes

Deprecated Directives

  • PHP 5.3
    • define_syslog_variables
    • register_globals
    • register_long_arrays
    • safe_mode
    • magic_quotes_gpc
    • magic_quotes_runtime
    • magic_quotes_sybase
  • PHP 5.4
  • PHP 5.5
    • internal_encoding
  • PHP 5.6
    • always_populate_raw_post_data
  • PHP 7.0

Deprecated Interfaces

Deprecated Trait

No trait was ever deprecated.

Deprecated Variables

See Also

When Not To Use It

If you plan to keep your application linked to some PHP version, then you can safely ignore this rule.

Further Reading