Новое в php 12 Май 2015, 12:40:22 https://wiki.php.net/rfcImplementedOrder in these sections: Language changes first, library changes later. PHP 8.2Constants in Traits (Created 2022-06-21, Voting closed: 2022-07-19)Random Extension 5.x (Created 2021-05-19, Voting closed: 2022-06-28)Random Extension Improvement (Created 2022-06-16, Voting closed: 2022-07-16)Fetch properties of enums in const expressions (Created 2022-05-27)Disjunctive Normal Form Types (Created 2021-11-04, Voting opened: 2022-06-17, Voting closed: 2022-07-03)Add true type (Created 2022-04-07, Voting opened: 2022-05-29, Voting closed: 2022-06-12)MySQLi Execute Query (Created 2022-04-21, Voting opened: 2022-05-11, Voting closed: 2022-05-25)Readonly classes (Created 2021-08-04)Allow null and false as stand-alone types (Created 2022-02-20, Voting start: 2022-03-12, Voting end: 2022-03-27)Locale-independent case conversion (Created 2021-09-22)Deprecate partially supported callables (Created 2021-09-02)Expand deprecation notice scope for partially supported callables (Created 2022-05-12, Voting opened: 2022-05-31)Deprecate dynamic properties (Created 2021-08-23)Redacting parameters in back traces ( Created 2022-01-10 )Deprecate ${} string interpolation (Created on 2021-03-13)Remove support for libmysql from mysqli ( Created 2022-01-06)Deprecate and remove utf8_decode() and utf8_encode()Make the iterator_*() family accept all iterables (Created 2022-06-21, Voting opened: 2022-07-05) PHP 8.1Disable autovivification on false (Created 2021-05-25)Pure intersection types (Created 2021-03-23, Voting started 2021-06-03, Voting ended 2021-06-17, Merged 2021-07-05)Add IntlDatePatternGenerator (Voting started 2021-05-14 and ended 2021-05-28)Deprecate implicit non-integer-compatible float to int conversions (Voting started 2021-04-01, Voting ended 2021-04-14)Enumerations (Created 2020-09-19)Deprecate passing null to non-nullable arguments of internal functions (Created 2020-12-01)Array unpacking with string keys (Created 2021-01-07)Add array_is_list(array $array): bool (Created 2020-12-19)Explicit octal integer literal notation (Created: 2020-10-20, Voting Started: 2020-11-11, Voting Ended: 2020-11-25, Merged into master: 2021-01-04)Restrict $GLOBALS usage (Created 2020-12-02)Change Default mysqli Error Mode (Created 2021-01-20)Add fetch_column method to mysqli (Created 2021-03-28)Mysqli bind in execute (Created 2021-02-11)fsync() Function (Created 2021-01-30)noreturn type (Voting started 2021-03-30)Fibers (Created 2020-12-04)Phasing out Serializable (Created 2020-12-07)Static variables in inherited methods (Created 2021-02-23)Add return type declarations for internal methods (Created 2021-03-06)Final class constants (Created 2021-05-04)Make reflection setAccessible() no-op (Created 2021-06-13)New in initializers (Created 2021-03-02)Deprecations for PHP 8.1 (Created 2019-07-23)First-class callable syntax (Created 2021-05-20)Readonly properties 2.0 (Created 2021-06-02) PHP 8.0Don't automatically unserialize Phar metadata outside getMetadata() (Created 2020-07-07)Reclassifying engine warnings Reevaluate the current level of various engine notices/warnings. (Created: 2019-08-27)Shorter Attribute Syntax Use @@ instead of <<>> for attributes in PHP 8.0 (Created 2020-06-03)Ensure correct signatures of magic methods (Created 2020-04-05)Named Arguments This RFC proposes introducing named arguments. (Created 2013-09-06)Treat namespaced names as single token (Created 2020-06-16)Saner string to number comparison Proposes to change non-strict comparisons between strings and numbers to behave more reasonably. (Created: 2019-02-26)Saner numeric strings (Created 2020-06-28)Nullsafe operator Add new ?-> operator that skips null values (Created 2020-06-02)Allow trailing comma in closure use lists (Created 2020-07-01)Configurable string length in getTraceAsString() (Created 2020-06-27)Remove inappropriate inheritance signature checks on private methods Proposes that inappropriate inheritance checks are removed for private methods (Created: 2017-02-07)Match expression v2 Introduce match expression (Created 2020-05-22)Attribute Amendments Group Syntax, Rename PhpAttribute, Target Validation, Repeatable (Created 2020-05-20)Make sorting stable Make all sorts in PHP stable by default (Created 2020-05-12)Constructor Property Promotion Adds a short-hand syntax to combine declaration of properties and the constructor. (Created 2020-03-26)Attributes (v2) Add structured metadata to declarations (classes, functions, properties, constants) for internal and userland use-cases. (Created 2020-03-09)Unbundle ext/xmlrpc (Created 2020-04-25; Accepted 2020-05-26)Always available JSON extension (Created 2020-04-29)Non-capturing catches Allow catching exceptions without a variable (Created 2020-04-05)Mixed type v2 Add the mixed type (Created 2020-03-22)Locale-independent float to string cast (Created 2020-03-11)Change default PDO error mode (Created 2020-03-28)Stricter type checks for arithmetic/bitwise operators (Created 2020-04-02)Add str_starts_with and str_ends_with to PHP (Created 2020-03-25)Allow trailing comma in parameter list (Created 2020-03-26)throw expression Convert throw statement into an expression (Created 2020-03-21)Object-based token_get_all() alternative Adds an object-based token_get_all() alternative, which is more ergonomic and uses less memory. (Created: 2020-02-13)Abstract trait method validation Enforce signature of abstract trait methods. (Created: 2020-02-07)Stringable Allow using string|Stringable to express string|object-with-__toString(). (Created 2020-01-15)Allow ::class on objects Adds support for $object::class. (Created: 2020-01-09)Static return type Adds support for static as a return type. (Created: 2020-01-08)Variable Syntax Tweaks Fixes variable syntax edge cases. (Created: 2020-01-07)Union Types v2 A proposal to add union types (Created 2019-09-04)DOM Living Standard API Upgrade DOM API to latest standard version (Created: 2019-03-13)Always generate fatal error for incompatible method signatures Resolve inconsistent handling of abstract and non-abstract methods during inheritance. (Created: 2019-04-08)Arrays starting with a negative index Proposes to make implicit array keys consistent. (Created: 2017-04-20)Consistent type errors for internal functions Consistently throw TypeError for parameter parsing failures of internal functions. (Created: 2019-02-05, Voting started: 2019-02-19)JIT Just in Time Compiler. (Created: 2019-01-28)Weak maps Add a WeakMap class (Created: 2019-11-04)str_contains Adds a new function to return whether or not a string is contained within another. (Created: 2020-02-17)get_debug_type Adds a new function to return the true type name of a variable, automatically resolving class names. (Created: 2020-02-15)Add support for CMS Exposes CMS API from OpenSSL (Created 2020-05-13) PHP 7.4Deprecate alternate access to array elements and chars in string Deprecate curly braces array and string syntax access. (Created: 2019-03-12; Discussion started:2019-03-15; Voting started: 2019-07-03; Voting ends: 2019-07-17; Accepted: 2019-07-17) E_WARNING for invalid containers Raise E_WARNING for array access on invalid containers (Created 2016-07-27) Base Convert improvements Changes to base convert to warn the user when incorrect values are passed. Also allow negative numbers to be parsed. (Discussion started: 2019-05-18 | Accepted 2019-07-05) Numeric Literal Separator Enable improved code readability by supporting an underscore between digits in numeric literals. (Accepted: 2019-06-13) Covariant Returns and Contravariant Parameters (Announced: 2018-11-26; Voting began: 2018-12-19) Allow throwing exceptions from __toString() Support throwing exceptions from __toString(). (Created: 2019-04-30) Spread Operator in Array Expression (Created: 2018-10-13) Deprecate left-associative ternary operator Deprecate nesting of ternaries without explicit use of parentheses. (Created: 2019-04-09) Arrow functions 2.0 Adds short closures / arrow functions. Deprecate and remove ext/interbase Deprecate and eventually remove the InterBase extension in the Core (Created 2019-03-22) weakrefs (Created: 2018-05-17, Voting started: 2019-02-22) FFI - Foreign Function Interface (Announced: 2018-12-06; Voting began: 2018-12-20; Accepted: 2019-01-09) Typed Properties 2.0 Add support for typed properties, including static properties and references to typed properties. (Created: 2018-06-15) Null Coalesce Equal Operator Allow shorthand for self assigning null coalesce operator (Created 2016-03-09) Preloading Preload PHP functions and classes once and use them in the context of any future request without overhead. (Created: 2018-10-18) Always available hash extension Proposes to make the hash extension available to every build of PHP. (Created: 04/09-2018) Password Hash Registry Make the mechanisms used by password_hash/verify/etc… extensible by other modules. (Created: 2018-10-15) Improve openssl_random_pseudo_bytes() Proposes making openssl_random_pseudo_bytes() fail closed and deprecate the second parameter (Created: 2019-10-19) mb_str_split() Split multibyte string (Announced: 2019-01-02; Voting began: 2019-01-10; Accepted: 2019-01-20; Implemented: 2019-02-12) Reflection for references Introduces the ReflectionReference class to allow detecting references and determining reference equality. (Created: 2019-01-15; Voting began: 2019-01-30) Unbundle ext/wddx (Announced: 2018-09-16; Voting began: 2019-01-17 Voting finished: 2019-01-31) New custom object serialization mechanism Introduces new custom object serialization mechanism to replace Serializable. (Created: 2019-01-24, Voting start: 2019-03-01) Change the precedence of the concatenation operator Update the precedence of concatenation to be inferior to addition and subtraction (Created: 2019-03-28) Argon2 support from sodium Provide password_hash() support for argon2i/argon2id from ext/sodium if standard does not. (Created: 2019-04-05) Unbundle ext/recode (Discussion started: 2019-06-14; voting started: 2019-06-28; voting ends: 2019-07-12) Escape PDO "?" parameter placeholder Changes to PDO to allow using operators containing “?” with pdo_pgsql, most commonly the JSON key exists “?” operator. (Discussion started: 2019-05-31; Voting started: 2019-07-08; Accepted: 2019-07-22) PHP 7.3Flexible Heredoc and Nowdoc Syntaxes Allow indentation of, and remove newline requirement after, Nowdoc/Heredoc closing markers (Published: 2017-09-16, Accepted 2017-11-16) Allow a trailing comma in function calls (Published 2017-10-07) JSON_THROW_ON_ERROR Adds a flag to change the JSON extension's error-handling behaviour (Created: 2017-09-10) PCRE2 Migration (Published 2017-10-16) list() Reference Assignment This RFC proposes a new syntax to enable reference assignment with list(). (Created 2013/10/25, withdrawn 2014-05-15, Commandeered and Reopened: 2016-12-30, Accepted 2017-02-22) is_countable function (Created: 2018-01-21) array_key_first(), array_key_last() Add functions for handling the outer keys of an array (Created: 2018-06-11; Voting from 2018-07-09 to 2018-07-16) Make compact function reports undefined passed variables (Created: 2018-05-24; Voting from 2018-06-06 to 2018-06-18) Argon2 Password Hash Enhancements (Created: 2018-01-11; Voting from 2018-06-06 to 2018-06-18) Deprecate and Remove image2wbmp() (Created: 2018-05-11; Voting from 2018-05-26 to 2018-06-09) Deprecate and Remove Case-Insensitive Constants Support for case-insensitive constants is deprecated and scheduled for removal in the next major version. Deprecations for PHP 7.3 Miscellaneous minor deprecations for PHP 7.3. Same Site Cookie Add same site flag to cookies created by core cookie functions (Created: 2017-07-16) PHP 7.2Allow loading extensions by name (Created: 2016-05-10)Allow abstract function override Allow redefinition of “abstract functions” (Created: 2017-03-01)Prevent number_format() from returning negative zero Bring consistency to number_format() for negative zero. (Created: 2017-04-01)Convert numeric keys in object/array casts Fix an edge case in casting objects to arrays and vice-versa. (Created: 2016-10-21)Deprecate and Remove Bareword (Unquoted) Strings Raises the severity of “undefined constant” to E_WARNING and deprecates the fallback to interpreting as a string. (Created: 2017-01-29)get_class() disallow null parameter Prevent get_class() having astonishing behaviourCounting of non-countable objects Raise a warning when counting invalid objects. (Created: 2016-10-04)Parameter Type Widening Allow subclasses to omit a type entirely (Created: 2016-11-21)Trailing commas in list syntax Allow for trailing commas in all list syntax (Created 2015-11-03)Deprecate png2wbmp() and jpeg2wbmp() Deprecate and later remove the png2wbmp() and jpeg2wbmp() functions. (Created: 2016-10-15)Implement socket_getaddrinfo() Implement getaddrinfo() to socket extension. (Created: 2016-08-08)Argon2 in password hash Introduce Argon2 hashing algorithm to password functions (Created: 2016-07-10)Debugging PDO Prepared Statement Emulation Allow the output of this feature to be examined in userland. (Created: 2016-10-17)Debugging PDO Prepared Statement Emulation v2 Another approach to allowing the output of this feature to be examined in userland. (Created: 2016-11-17)HashContext as Object Change Hash Contexts to use Objects instead of ResourcesDeprecate and remove INTL_IDNA_VARIANT_2003 (Created: 2017-01-07)Extended String Types For PDO Types to handle “national character,” i.e. Unicode, string parameters. (Created: 2017-02-16)Improve TLS constants to sane values (Created 2017-05-15)Object typehint Proposes adding object type-hint and return-type (Created: 2016-08-12)LDAP EXOP Provide functions to use LDAP extended operations in php-ldap (Created: 2017-06-26)Libsodium Make Libsodium a Core Extension (Created 2016-01-07)Deprecations for PHP 7.2 Functions and features to be deprecated in PHP 7.2 (Created 2015-12-28) PHP 7.1Session ID without hashing Remove hash usage from session ID generation. (Created 2016-04-06)Asynchronous Signal Handling Asynchronous Signal Handling without TICKs and any additional overhead. (Created 2016-06-24)Fix inconsistent behavior of $this variable Fix all known inconsistencies related to special variable $this (Discussion began 2016-05-23)Replace "Missing argument" warning with "Too few arguments" exception (Created 2016-06-01)Nullable Types Allow a type check to be of some type or null (Discussion began 2016-04-13)Square bracket syntax for array destructuring assignment An alternative syntax to [php]list()[/php] (Created 2016-04-07)Warn about invalid strings in arithmetic Produce E_NOTICE or E_WARNING when using invalid numeric strings with arithmetic operators (Created 2016-01-08)Allow specifying keys in list() Adds syntax to help unpacking associative arrays into variables (Created 2016-01-17)Iterable Iterable pseudo-type accepting arrays or objects implementing Traversable (Created 2016-06-10)Generalize support of negative string offsets Add support for negative string offsets everywhere it makes sense (Created 2016-01-23)Closure from callable function Add a function to create closures from callables without reflectionDeprecate mb_ereg_replace eval option This RFC aims at deprecating the e option that mb_ereg_replace and mb_eregi_replace provide.Deprecate (and remove) Mcrypt Let's get rid of ext/mcrypt, which is abandonware and inhibits the growth of the language, as soon as humanly possible. (Created 2016-01-09)OpenSSL AEAD support Adds support for AEAD cipher modes (GCM and CCM) to openssl_decrypt and openssl_encrypt.Void Return Type Adds a void return type to require that a function does not return a value. (Revived 2015-10-04, originally created 2015-02-14)Class constant visibility modifiers Introduce class constants visibility modifiers that mirror properties and methods. (Created 2015/09/13)Octal Overflow Protection Stop quietly ignoring overflows in octal number parsing (Created: 2016-04-12)RNG fixes and changes Fixes and improvements to the random number generation subsystems (Created 2016-06-14)Add HTTP/2 Server Push support to ext/curl (Created 2015/10/01)TimeZone::getWindowsID (Created (2016/03/15)Multi catch Catching multiple exception types in a single catch statement (Created 2016/03/06)Forbid dynamic calls to scope introspection functions (Created 2016-05-01)Add curl_multi_errno(), curl_share_errno() and curl_share_strerror() (Created: 2016-04-29)Throw Error in Extensions Convert E_ERROR and E_RECOVERABLE_ERROR to throw Error in extensions (Created 2016-06-14)More precise float value handling This RFC proposes more precise float value handling.Additional Context in pcntl_signal Handler Adds a second array argument to pcntl_signal handler (Created 2016-06-14)Add session_create_id() Add session_create_id() function (Created 2016-04-07)Add session_gc() Add session_gc() function (Created 2016-04-06) PHP 7.0Random Functions throwing Exceptions This RFC proposes that the random_* functions should throw exceptions on failure.Throwable Interface Proposes a modification to the exception hierarchy for PHP 7, introducing a Throwable interface and Error class.Context Sensitive Lexer Proposal to have a context sensitive lexer for PHP with support for semi-reserved words (Created 2015-02-15)Add preg_replace_callback_array function A RFC proposing each pattern can easily have a specific callback.Reliable User-land CSPRNG A proposal to add a reliable CSPRNG (Created 2015-02-20)Anonymous Class Support This RFC proposes support for anonymous classes.Generator Delegation This RFC proposes new syntax to delegate generator function operations to sub-iterators/generators (Created 2015-03-01)Reserve More Type Names in PHP 7 Reserves int, float, string, bool, true, false and null in class names or namespaces. (Created 2015-02-18)Constructor behaviour of internal classes Cleanup undesirable behaviour of constructors internal classes. (Created 2015-03-01)Reclassify E_STRICT notices This RFC proposes to reclassify our few existing E_STRICT notices to different categories. (Created 2015-02-22)Remove PHP 4 Constructors Stop recognizing methods with the same name as the defining class as constructors. (Created 2014-11-17; Voting closed 2015-03-10)Remove the date.timezone warning (Created 2015-01-27)Combined Comparison (Spaceship) Operator Proposes a new comparison operator, <=> (Created 2014-02-12, revived 2015-01-19)Fix "foreach" behavior The RFC defines foreach statement behavior for the cases where is wasn't defined before and implementation provided inconsistent results. (Created 2015-01-29)Removal of dead SAPIs and extensions Consideration about removing the unsupported SAPIs and extensions with unsupported dependencies.Jsond Whether jsond should replace the current json extension. (Created 2015-01-11)Preserve Fractional Part in JSON encode Adds a new option for JSON encode to preserve fractional part on float numbers.Return Type Declarations Adds return types to functions, methods and closures. (Created 2014-03-20)Fast Parameter Parsing API Fast API in addition to zend_parse_parameters(). (Created 2014-05-23)Unicode Codepoint Escape Syntax Adds an escape sequence syntax for Unicode codepoints to string literals. (Created 2014-11-24)Native TLS Native TLS for internal globals in TS modeNull Coalesce Operator Adds the coalesce operator, ??Integer Semantics Improves cross-platform consistency in PHP for some operations dealing with integersZPP Failure on Overflow Make zend_parse_parameters fail if a float value out of bounds, or NaN, is passed where an integer is expected. (Created 2014-09-22)Move the phpng branch into master Embrace the phpng codebase as the basis for the future major version of PHP. (Created 2014-07-20)Abstract Syntax Tree Proposes the introduction of an Abstract Syntax Tree (AST) as an intermediary structure in our compilation process.Uniform Variable Syntax Introduces an internally consistent and complete variable syntax.64 bit platform improvements for string length and integer Integer and String modifications for full 64 bit supportClosure::call Proposes a new method on the Closure class to allow calling bound to an object without pre-bindingFix list() behavior inconsistency Enable or disable string handling in list() operatorRemove alternative PHP tags Removes ASP and script tagsswitch.default.multiple Disallow multiple defaults in switch statementsCatchable "call to a member function of a non-object" Turns this fatal error into E_RECOVERABLE (Created 2014-04-26)Filtered unserialize() Add option to ignore all or some objects to unserialize() (Created 2013/03/30)ICU IntlChar class Adds an IntlChar class an intl_char_*() functions to the Intl extension.Introduce session_start() INI options as array Introduce session_start() optionsRemove hex support in numeric strings Removes support for hexadecimal numbers in numeric string conversions. (Created 2014-08-19)Expectations This RFC proposes adding BC zero-cost assertions. (Created 2013-11-01)Group Use Declarations The RFC adds improvements to current PHP namespace implementation by introducing group use declarations. (Created 2015-01-28)Exceptions in the engine This RFC proposes to allow the use of exceptions in the engine. (Created 2014-09-30)Generator Return Expressions This RFC proposes the ability to specify and access return values from Generator functionsScalar Type Hints v0.5 This RFC proposes a mixed-mode scalar type systemContinue output buffering Let the output buffer stack be usable despite an aborted connectionintdiv() This RFC proposes adding an intdiv() function for integer division. (Created 2014-07-15)Fix handling of custom session handler return values Make false actually mean failure, not success.Turn gc_collect_cycles into function pointer Proposes to turn gc_collect_cycles into function pointer for extensions to hook into. (Created 2012-12-11) PHP 5.6__debugInfo() magic method Support get_debug_info hook for userspace classes Exponential operator Exponential operator Importing namespaced functions Proposes to allow importing namespaced functions through a new `use function` sequence. Constant Scalar Expressions (with constants) This RFC proposes adding support for Constant Scalar Expressions with support for constants being operands. Remove calls from incompatible context Calls from incompatible context deprecated in 5.6 (will be removed in next version). Dedicated syntax for variadic functions This RFC introduces a dedicated syntax for variadic functions. Argument unpacking This RFC proposes a syntax for argument unpacking. Internal operator overloading and GMP improvements Add support for operator overloading in internal classes and improve GMP using it phpdbg Distribute phpdbg with PHP, a PHP debugger Slim POST data Use a temp PHP stream for HTTP payload. Crypt() function salt This RFC proposes changing crypt() function's salt parameter treatment. Apparmor change_hat functionality for php-fpm Proposes to add the possibility to change to a different hat under the apparmor LSM TLS Peer Verification Enable peer verification by default for encrypted client streams. Improved TLS Defaults Implement more secure defaults for encrypted stream transfers Default character encoding Default character encoding handling in PHP. 64 bit format codes for pack() and unpack() Adds format codes for converting 64 bit integers to and from binary strings. Timing attack safe string comparison function New function to perform time-constant string comparison (Created 2013/12/22) PHP 5.5Generators This RFC proposes adding generators as a simple and boilerplate-free way of defining iterators. support finally keyword Add try catch finally supporting Resolve class names to scalars via class keyword A proposal to use ::class after type names to resolve FQ class names as scalar foreach_variable supporting T_LIST This extends PHP's language parser to support T_LIST in foreach_variable Const array/string dereference A little improvement to make things consistent Allow arbitrary expression arguments to empty() and isset() Proposes to allow empty(getArray()) etc. Integrating Optimizer+ into the PHP distribution This RFC proposes to integrate the Zend Optimizer+ opcode cache into the PHP distribution Adding hash_pbkdf2 function This RFC proposes adding a hash_pbkdf2 function to the hash package Add Simplified Password Hashing This RFC proposes adding 3 new functions to the core to expose a much simplified password hashing API. Remove preg_replace /e modifier This RFC aims at deprecating and subsequently removing the /e modifier (PREG_REPLACE_EVAL) that preg_replace provides. Add UConverter A proposal to add ICU::UConverter functionality to ext/intl ext/mysql deprecation Formally deprecating ext/mysql in PHP. Cookie Max-Age attribute Cookie Max-Age attribute Fix cURL file uploading API Fix insecure cURL file uploading API Add recvmsg() and sendmsg() to ext/sockets Wrap sendmsg() and recvmsg(), with support for a limited number of message types PHP CLI changing process title support Setting PHP CLI process titles for visibility in 'top' or 'ps' Allow non-scalar keys in foreach This RFC proposes to remove the type restrictions on foreach iteration Add array_column() function This RFC proposes a new array function that returns the values of the specified column from a multi-dimensional array. Removal of curl-wrappers This RFC is about removing the curl stream wrappers of the PHP as of 5.5 and to move it on PECL for any eventual improvements. Strict Sessions This RFC proposes an additional security measure for preventing session fixation. PHP 5.4Note: Many RFCs in this list have been mass voted. Instantiating a class and calling methods/accessing properties on same command A proposal to add support to instantiating a class and calling its methods or accessing its properties on same command. Traits Traits is a mechanism for code reuse in single inheritance languages such as PHP. A Trait is intended to reduce some limitations of single inheritance by enabling a developer to reuse sets of methods freely in several independent classes living in different class hierarchies. This RFC proposes a basic version of Traits. Closures: Object Extension How to extend closures to work with $this and objects. Short syntax for arrays This RFC will discuss an language enhancement for simple and easy array definition. Function array dereferencing You know, like foo()['bar'] Short tags in templates This RFC discusses ways to enable short tags template syntax in a way that would be easy for users and compatible with XML users' requirements. Indirect method call by array variable $arr = array('Class', 'method'); $arr(); Supporting Binary Notation for Integers This extends PHP's syntax to support binary notation for integers just as it already does for decimal, octal, and hexadecimal representations. Built-in web server This RFC discusses the web server that is built into PHP itself, for development purpose. Removal of deprecated features RFC about removing legacy features in the next version of PHP Improve parser error messages Improve parser error message readability. Session upload progress Using sessions to provide upload progress feedback to users. Object oriented session handlers A proposal to allow session_set_save_handler() to accept an object, and expose the original session handler. Allow Multiple Simultaneous Syslog Connections This RFC propose enhancement to syslog function in order to allow multiple simultaneous connections by using resources. Stream meta-data RFC defines handler for setting metadata on stream URL. Error message formatting for development This RFC discusses error message formatting to aid developers. Zend Engine Performance Improvements Proposes Zend Engine changes which together make up to 20% performance improvement on synthetic benchmarks and some real-life applications Run Time Cache offers an implementation of run-time caching technique which may improve performance of repeatable code Zend Signal Handling Improve stability and speed when running under any forking SAPI by adding deferred signal handling to the Zend Engine. DTrace Probes for PHP Provide DTrace probes for PHP. New Output API An RFC about the New Output API Callable type hint Callable type hint LDAP: Add ldap_modify_batch This RFC proposes adding a lower-level modification function to the LDAP extension. PHP 5.3Closures This RFC proposes Closures and lambda functions for PHP. Namespace resolution order RFC on what namespace separator to choose HEREDOC with double quotes This RFC is about allowing double quote syntax similar to single-quotes in NOWDOC as a HEREDOC syntax variant (in PHP 5.3) LSB parent::/self:: forwarding Changes how parent:: and self:: work with LSB by making them forwarding. call_time_pass_by_reference This RFC proposes that call_time_pass_by_reference be switched off by default in PHP 5.3. New error level E_USER_DEPRECATED This RFC proposes to introduce a new userspace error level similar to E_DEPRECATED for user level deprecation warnings Rounding in PHP Make round() produce predictable results on all platforms and fix some problems in the process. Alternative to include/require for autoloaders This RFC aims to offer an alternative solution to the well known fopen() “hack” used in autoloaders in order to verify the existence of files inside the include path FPM SAPI This RFC discusses FPM SAPI and its inclusion to the core PHP distribution. FPM INI syntax This RDV discusses the replacement of FPM configuration file from XML to INI. New INI Files A proposal for two new INI files which will replace the current INI's packaged with PHP. One focused on production deployments and the other focused on development deployments. count_elements handler vs count() Internal change to allow some optimization and add consistency. Quote Selected Последнее редактирование: 08 Декабрь 2022, 22:23:21 by inter 🐵
Re: Новое в php Ответ #1 – 09 Ноябрь 2015, 10:20:19 Вебинар от Борисова, посвященный PHP7https://www.youtube.com/watch?feature=player_embedded&v=5tfMzJPeBPshttp://php.net/manual/en/migration70.new-features.phpMigrating from PHP 5.6.x to PHP 7.0.xПереходим на PHP 7Топ-разработчик PHP 7: «Критикуйте дальше, а мы будем работать»PHP 7.1: Обзор новых возможностей Quote Selected Последнее редактирование: 18 Декабрь 2017, 19:25:54 by inter 😎
Re: Новое в php Ответ #2 – 30 Ноябрь 2015, 14:08:56 Видать, Hack и Node.js сильно в спину дышат, раз php меняется. Quote Selected Последнее редактирование: 30 Ноябрь 2015, 14:13:32 by inter
Re: Новое в php Ответ #3 – 10 Апрель 2016, 20:46:34 Крутотенечка: Встроенный web-серверPHP >= 5.4Код: [Выделить]cd ~/public_htmlphp -S localhost:8000Python 2:Код: [Выделить]cd ~/public_htmlpython -m SimpleHTTPServer 8000Python 3:Код: [Выделить]cd ~/public_htmlpython -m http.server 8000 Quote Selected Последнее редактирование: 24 Декабрь 2016, 16:25:25 by inter
Re: Новое в php Ответ #4 – 30 Май 2016, 09:24:59 В php 7.1 вместо грёбанного list:Код: [Выделить]list($a, $b, $c) = array(1, 2, 3);Появится такая конструкция:Код: [Выделить][$a, $b, $c] = [1, 2, 3];Кстати, в python тоже самое можно делать уот так:Код: [Выделить] a, b, c = 1, 2, 3Абсолютли! Quote Selected Последнее редактирование: 30 Май 2016, 09:44:43 by inter
Re: Новое в php Ответ #5 – 20 Август 2018, 19:00:17 php 7.3Нововведения PHP 7.3 за 30 секунд в виде диффов Quote Selected
Re: Новое в php Ответ #6 – 17 Ноябрь 2019, 19:46:11 Evolution of PHP — v5.6 to v8.0Эволюция PHP — от 5.6 до 8.0 (Часть 1) (на русском)Эволюция PHP — от 5.6 до 8.0 (Часть 2) (на русском) Quote Selected Последнее редактирование: 25 Октябрь 2020, 23:49:46 by inter 😎
Re: Новое в php Ответ #7 – 26 Сентябрь 2020, 14:17:12 Собеседование php-developer в 2020PHP 8 - пробуем новые возможностиPHP 8.0: What's New and ChangedПамятка по фишкам синтаксиса PHP 7.4 и 8SpecialistTV: PHP 8 - что новогоЧто нового в PHP 8.1 - https://habr.com/ru/company/otus/blog/567710/ Quote Selected Последнее редактирование: 02 Апрель 2022, 14:37:27 by inter 🐵
Re: Новое в php Ответ #8 – 08 Декабрь 2022, 22:18:01 Релиз языка программирования PHP 8.2 - http://www.opennet.ru/opennews/art.shtml?num=58288 Quote Selected