php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76163 Test fail for stats_stat_correlation()
Submitted: 2018-03-29 22:51 UTC Modified: -
From: apostnikov at gmail dot com Assigned:
Status: Open Package: stats (PECL)
PHP Version: 7.1.15 OS: linux/aarch64
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2018-03-29 22:51 UTC] apostnikov at gmail dot com
Description:
------------
Building package for Alpinelinux I got test fail for aarch64 & ppc64le
basically float(0) works wrong

PHP         : /usr/bin/php7 
PHP_SAPI    : cli
PHP_VERSION : 7.1.15
ZEND_VERSION: 3.1.0
PHP_OS      : Linux - Linux 299b3a9c646d 4.9.32 #1 SMP Wed Jun 14 18:37:07 UTC 2017 aarch64
INI actual  : /mnt/testing/php7-stats/src/stats-2.0.3/tmp-php.ini
More .INIs  :   
CWD         : /mnt/testing/php7-stats/src/stats-2.0.3
Extra dirs  : 
VALGRIND    : Not used

/mnt/testing/php7-stats $ cat src/stats-2.0.3/tests/stats_stat_correlation.log 

---- EXPECTED OUTPUT
float(1)
float(0)
float(-1)

Warning: stats_stat_correlation(): Unequal number of X and Y coordinates in %s on line %d
bool(false)
---- ACTUAL OUTPUT
float(1)
float(3.8459253727671E-16)
float(-1)

Warning: stats_stat_correlation(): Unequal number of X and Y coordinates in /mnt/testing/php7-stats/src/stats-2.0.3/tests/stats_stat_correlation.php on line 5
bool(false)
---- FAILED



Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 16:01:26 2019 UTC