Lets pack() and unpack() take < and > byte order markers on the f and d float codes, matching the integer syntax added in PHP 8.6.
Last activity
Follow the proposals shaping the next version of PHP.
Lets pack() and unpack() take < and > byte order markers on the f and d float codes, matching the integer syntax added in PHP 8.6.
Last activity
Makes closures cheaper by inferring static when $this is unused and caching stateless closures, though only the caching part was merged.
Last activity
Adds grapheme_strrev() to intl, which reverses a string by grapheme cluster so emoji and combined characters stay intact.
Last activity
Adds the form feed character (\f) to the default set of characters that trim(), ltrim() and rtrim() strip.
Last activity
Adds a TLS session class and stream context options so clients and servers can save, store and resume TLS sessions.
Last activity
Adds mysqli::quote_string(), which escapes a string and wraps it in single quotes, like PDO::quote(), to close a double-quote injection hole.
Last activity
Adds exception and silent modes for stream errors, with structured StreamError objects and a StreamErrorCode enum you can inspect.
Last activity
Adds Perl-style < and > byte order modifiers to pack() and unpack(), so signed integers can be little-endian or big-endian.
Last activity
Adds a clamp() function that returns a value if it falls between min and max, or the nearest bound if it doesn't.
Last activity
Adds ? and ... placeholders to function calls, so passing only some arguments returns a closure that takes the rest later.
Last activity
Adds ReflectionProperty::isReadable() and isWritable() so you can check whether a property can be read or written from a given scope.
Last activity