com web/bugs: Add missing returns for the fix from previous commit: include/functions.php

From: Date: Fri, 20 Jan 2017 16:40:36 +0000
Subject: com web/bugs: Add missing returns for the fix from previous commit: include/functions.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-25526@lists.php.net to get a copy of this message
Commit: df52d48b164c816305ddc50e88ae757b1770970b Author: Sobak <msobaczewski@gmail.com> Fri, 20 Jan 2017 17:40:36 +0100 Parents: 0db9df83c9683ffa4358b56fe1f2962ce5704a12 Branches: master Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=df52d48b164c816305ddc50e88ae757b1770970b Log: Add missing returns for the fix from previous commit It accidentally worked as php_versions.php fetched versions anyway if apc_fetch() returned falsy value, but this is correct version. Changed paths: M include/functions.php Diff: diff --git a/include/functions.php b/include/functions.php index b132633..a2db0dc 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1957,12 +1957,12 @@ function mailto_list(array $mails) if (!function_exists('apc_fetch')) { function apc_fetch($key, &$success = false) { - apcu_fetch($key, $success); + return apcu_fetch($key, $success); } } if (!function_exists('apc_store')) { function apc_store($key, $var, $ttl = 0) { - apcu_store($key, $var, $ttl); + return apcu_store($key, $var, $ttl); } }

« previous php.webmaster (#25526) next »