mirror of
https://github.com/php/php-src.git
synced 2026-04-20 06:21:12 +02:00
According to the documentation, returning TRUE from user based session handlers should indicate success, while returning FALSE should indicate failure. The existing logic relied on casting the return value to an integer and returning that from the function. However, the internal handlers use SUCCESS/FAILURE where SUCCESS == 0, and FAILURE == -1, so the following behavior map occurs: return false; => return 0; => return SUCCESS return true; => return 1; => return <undefined> Since the session API checks against FAILURE, both boolean responses wind up appearing like "not FAILURE". This diff reasserts boolean responses to behave as documented and introduces some special handling for integer responses of 0 and -1 so that code can be written for older and newer versions of PHP.
21 lines
777 B
Plaintext
21 lines
777 B
Plaintext
PHP NEWS
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
?? ??? 20??, PHP 5.7.0
|
|
|
|
- CLI server:
|
|
. Refactor MIME type handling to use a hash table instead of linear search.
|
|
(Adam)
|
|
. Update the MIME type list from the one shipped by Apache HTTPD. (Adam)
|
|
|
|
- DBA:
|
|
. Fixed bug #62490 (dba_delete returns true on missing item (inifile)). (Mike)
|
|
|
|
- Standard:
|
|
. Removed call_user_method() and call_user_method_array() functions. (Kalle)
|
|
. Fix user session handlers (See rfc:session.user.return-value). (Sara)
|
|
|
|
- XSL:
|
|
. Fixed bug #64776 (The XSLT extension is not thread safe). (Mike)
|
|
|
|
<<< NOTE: Insert NEWS from last stable release here prior to actual release! >>>
|