From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Dec 6 15:30:00 2012 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A1B38E67 for ; Thu, 6 Dec 2012 15:30:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 6EF498FC1A for ; Thu, 6 Dec 2012 15:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qB6FU0XQ048672 for ; Thu, 6 Dec 2012 15:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qB6FU0QO048671; Thu, 6 Dec 2012 15:30:00 GMT (envelope-from gnats) Resent-Date: Thu, 6 Dec 2012 15:30:00 GMT Resent-Message-Id: <201212061530.qB6FU0QO048671@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Oleksandr Bodnarashyk Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5B0F3E5B for ; Thu, 6 Dec 2012 15:29:44 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 41FCA8FC0C for ; Thu, 6 Dec 2012 15:29:44 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qB6FTiAS011471 for ; Thu, 6 Dec 2012 15:29:44 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id qB6FTiqZ011470; Thu, 6 Dec 2012 15:29:44 GMT (envelope-from nobody) Message-Id: <201212061529.qB6FTiqZ011470@red.freebsd.org> Date: Thu, 6 Dec 2012 15:29:44 GMT From: Oleksandr Bodnarashyk To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/174237: databases/php5-redis - zAdd does not set the correct score for values 1000 & above X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2012 15:30:00 -0000 >Number: 174237 >Category: ports >Synopsis: databases/php5-redis - zAdd does not set the correct score for values 1000 & above >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Dec 06 15:30:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Oleksandr Bodnarashyk >Release: FreeBSD 9.1-PRERELEASE amd64 >Organization: CDAS >Environment: FreeBSD boda-free.local 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0: Mon Oct 15 19:10:15 EEST 2012 root@boda-free.local:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Due to backward incompatible changes in php54 (https://bugs.php.net/bug.php?id=60977) zAdd method can not set correct score for values greater then 1000. Developer of redis extension is aware of such change and has fixed this issue (https://github.com/nicolasff/phpredis/issues/227). Current version of php5-redis port does not contain this fix. At the time of writing this report actual version of redis extension is 2.2.2 which might be good candidate for update. >How-To-Repeat: PHP code: $redis_handle = new Redis(); $redis_handle->connect('127.0.0.1', 6379); $redis_handle->select(1); $redis_handle->zadd('player-time', microtime(true), "110"); redis-cli: redis 127.0.0.1:6379[1]> ZADD player-time 1344563611.4695 110 (integer) 0 redis 127.0.0.1:6379[1]> ZSCORE player-time 110 "1344563611.4695001" //after php code redis 127.0.0.1:6379[1]> ZSCORE player-time 110 "1" >Fix: https://github.com/nicolasff/phpredis/commit/8e433c479406dcb681044c79a331b97e3b5bc704 >Release-Note: >Audit-Trail: >Unformatted: