Bug #80740 [Com]: Possible "in_array" bug
| From: | celestinoxp at hotmail dot com | Date: | Fri, 12 Feb 2021 22:46:29 +0000 |
| Subject: | Bug #80740 [Com]: Possible "in_array" bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-232117@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80740&edit=1
ID: 80740
Comment by: celestinoxp at hotmail dot com
Reported by: celestinoxp at hotmail dot com
Summary: Possible "in_array" bug
Status: Not a bug
Type: Bug
Package: Unknown/Other Function
Operating System: Windows 10
PHP Version: 8.0Git-2021-02-12 (snap)
Block user comment: N
Private report: N
New Comment:
I don't find any error in the code, so I come here to ask for help to check a possible bug in
php. can we work together?
Previous Comments:
------------------------------------------------------------------------
[2021-02-12 22:23:12] requinix@php.net
Yes, there is an error in your code.
This is a bug tracker, not a PHP support group. See
http://www.php.net/support.php
for other places where you can get a more detailed explanation of the problem.
------------------------------------------------------------------------
[2021-02-12 22:20:14] celestinoxp at hotmail dot com
requinix@php.net why values n1_ausencias, n2_ausencias... are not correct???
You find any error in code? So i think php have a bug!
------------------------------------------------------------------------
[2021-02-12 21:09:24] requinix@php.net
You are calculating the ausencias values according to how many rows it takes for n1-n5 *from
$dados2* to appear *in $dados*.
Ex: n1 n2 n3 n4 n5
348010: 3 10 24 25 41 - $chave_bd = 3,10,24,25,41
348011: 18 19 23 27 47 - $conta=0, in_array(18, $chave_bd) == false
348012: 11 20 22 30 42 - $conta=1, in_array(11, $chave_bd) == false
348013: 10 26 29 31 42 - $conta=2, in_array(10, $chave_bd) == true, n1_ausencias=2
------------------------------------------------------------------------
[2021-02-12 20:27:33] celestinoxp at hotmail dot com
I checked my code and I'm 99.9% sure that it's a PHP bug!
------------------------------------------------------------------------
[2021-02-12 16:32:05] celestinoxp at hotmail dot com
It's so hard the code? If you see, it should insert delays of numbers.
Its a lottery numbers (n1, n2, n3, n4, n5, ns) and delays of this numbers (n1_ausencias,
n2_ausencias)...
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=80740
--
Edit this bug report at https://bugs.php.net/bug.php?id=80740&edit=1