Bug #80740 [Nab]: Possible "in_array" bug
| From: | requinix@php.net | Date: | Fri, 12 Feb 2021 22:51:36 +0000 |
| Subject: | Bug #80740 [Nab]: Possible "in_array" bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-232119@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
Updated by: requinix@php.net
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:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2021-02-12 22:50:48] celestinoxp at hotmail dot com
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
problem is n1_ausencias, n2_ausencias... n5_ausencias, have not correct values.
Can you check this? Please?
------------------------------------------------------------------------
[2021-02-12 22:46:29] celestinoxp at hotmail dot com
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?
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
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