Tagged: , , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4726
    peq42
    Keymaster

    This is no php 9.0(which should change a lot more, specially under de hood and related to performance), but php 8.5 is looking interesting so far.

    Added:

    New functions:

    • curl_multi_get_handles() //makes it easier to manage multiple concurrent cURL, retrieving all handles from a cURL multi handle.
    • get_exception_handler() & get_error_handler() //adds a layer of control when managing application-level errors.
    • array_first() & array_last() //make it easier to get the first and last values of an array

    Fatal error stack traces: Fatal errors will now include a full stack trace, which is VERY useful for debugging.

    Changes:

    • MHASH_* constants are being removed
    • new Directory() changed to dir

     

    #4970
    peq42
    Keymaster

    Version 8.5 Alpha 1 is out!

    • Closures and first-class callables in constant expressions.
    • Backtraces available on fatal errors.
    • #[\NoDiscard] attribute to highlight the importance of consuming a function’s return value.
    • (void) cast to intentionally disregard a value.
    • Support for casts within constant expressions.
    • Introduction of the pipe operator.
    • New array functions: array_first() and array_last().
    • PHP CLI now supports “–ini=diff” to show changes from default INI settings.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.