1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 17:08:14 +02:00
Sara Golemon 2d9885c8cb Fix handling of session user module custom handlers.
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.
2014-07-06 09:40:35 -07:00
2014-06-30 01:34:47 +02:00
2014-07-03 20:43:12 +02:00
2014-01-03 11:08:10 +08:00
2014-07-06 01:21:24 +02:00
2014-06-15 23:56:14 +02:00
2014-07-05 19:59:26 -07:00
2014-02-24 10:13:11 +01:00
2014-07-02 11:36:00 +02:00
2014-07-02 17:37:25 +02:00
2014-07-05 19:59:26 -07:00
2013-07-15 00:19:49 -07:00
2013-02-26 14:35:47 +01:00
2014-06-24 10:17:49 -07:00
2013-05-21 13:27:45 +02:00
2014-06-16 23:27:45 +03:00
2014-06-18 00:11:55 +03:00
2014-01-21 13:25:23 -08:00
2014-04-14 09:34:02 +02:00
2014-04-14 09:34:02 +02:00
2013-10-27 16:40:37 -07:00
2014-06-05 17:45:22 +02:00
2014-06-08 19:27:58 -07:00

The PHP Interpreter

This is the github mirror of the official PHP repository located at http://git.php.net.

Build Status

Pull Requests

PHP accepts pull requests via github. Discussions are done on github, but depending on the topic can also be relayed to the official PHP developer mailinglist internals@lists.php.net.

New features require an RFC and must be accepted by the developers. See https://wiki.php.net/rfc and https://wiki.php.net/rfc/voting for more information on the process.

Bug fixes do not require an RFC, but require a bugtracker ticket. Always open a ticket at https://bugs.php.net and reference the bug id using #NNNNNN.

Fix #55371: get_magic_quotes_gpc() throws deprecation warning

After removing magic quotes, the get_magic_quotes_gpc function caused
a deprecate warning. get_magic_quotes_gpc can be used to detected
the magic_quotes behavior and therefore should not raise a warning at any
time. The patch removes this warning

We do not merge pull requests directly on github. All PRs will be pulled and pushed through http://git.php.net.

Guidelines for contributors

S
Description
⚠️ ARCHIVED: Original GitHub repository no longer exists. Preserved as backup on 2026-01-22T16:25:23.756Z
Readme BSD-3-Clause 968 MiB
Languages
C 66.1%
PHP 31.2%
C++ 0.8%
Shell 0.5%
M4 0.4%
Other 0.8%