🧨 PHP 8.4 Officially Released!

-php-8.4-officially-released!

After much anticipation, PHP 8.4 has finally released its first official version. PHP 8.4 maintains a high degree of backward compatibility from PHP 8.0 to 8.4 and introduces several new features.

Image description

New/Changed Features in PHP 8.4

  • curl_getinfo now supports CURLINFO_POSTTRANSFER_TIME_T
  • curl_version() supports feature_list
  • New functions: http_(get|clear)_last_response_headers
  • New option: CURLOPT_PREREQFUNCTION
  • New option: CURLOPT_DEBUGFUNCTION
  • New option: CURLOPT_SERVER_RESPONSE_TIMEOUT, replacing CURLOPT_FTP_RESPONSE_TIMEOUT
  • New option: CURLOPT_TCP_KEEPCNT
  • New round() function
  • New functions: mb_trim, mb_ltrim, and mb_rtrim
  • DateTime(Immutable) class now has createFromTimestamp method
  • phpinfo now displays PHP integer size information
  • DateTime(Immutable) class adds get/setMicrosecond methods
  • New function: request_parse_body
  • Upgraded PCRE2 with related regex changes

Syntax/Function Changes in PHP 8.4

  • OpenSSL: Minimum required OpenSSL version increased to 1.1.1
  • MBString: Unicode character database updated to version 16
  • exit/die changed from language constructs to functions
  • CURLOPT_DNS_USE_GLOBAL_CACHE is now deprecated
  • Password Hashing: Default Bcrypt cost increased from 10 to 12
  • PHP_ZTS and PHP_DEBUG constant value types changed from int to bool
  • Opcache: INI changes for enabling JIT
  • round() function: Invalid rounding modes will throw a ValueError exception
  • Curl: Minimum required libcurl version increased to 7.61.0

Deprecated Features in PHP 8.4

  • Implicit nullable parameter declarations are deprecated
  • E_STRICT constant is deprecated
  • Using more than 2 parameters with session_set_save_handler() is deprecated
  • CSV: The $escape parameter must be provided
  • CURLOPT_BINARYTRANSFER is deprecated

Removed Features in PHP 8.4

  • Pspell extension moved from PHP core to PECL
  • IMAP extension moved from PHP core to PECL
  • OCI8 and PDO-OCI extensions moved from PHP core to PECL

Image description

Use ServBay to deploy your development environment and quickly experience the latest version of PHP!

Big thanks for sticking with ServBay. Your support means the world to us 💙.
Got questions or need a hand? Our tech support team is just a shout away. Here’s to making web development fun and fabulous! 🥳
If you want to get the latest information, follow X(Twitter) and Facebook.
If you have any questions, our staff would be pleased to help, just join our Discord community, Telegram or Whats app.

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
deep-dive:-crafting-your-product-vision-and-mission

Deep dive: Crafting your product vision and mission

Next Post
america-makes-welcomes-dr.-herderick-as-new-ewd-director

America Makes Welcomes Dr. Herderick as New EWD Director

Related Posts