Bug #80740 [Com]: Possible "in_array" bug
| From: | celestinoxp at hotmail dot com | Date: | Fri, 12 Feb 2021 22:20:14 +0000 |
| Subject: | Bug #80740 [Com]: Possible "in_array" bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-232115@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:
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!
Previous Comments:
------------------------------------------------------------------------
[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)...
------------------------------------------------------------------------
[2021-02-12 16:12:04] danack@php.net
If nothing else, please make it clear what you think 'correct' values are. It takes too
long to figure out what you are implying the issue is from screenshots. But this will almost
certainly a bug in your code, rather than PHP.
------------------------------------------------------------------------
[2021-02-12 16:09:37] danack@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
------------------------------------------------------------------------
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