Bug #80740 [Com]: Possible "in_array" bug

From: Date: Sat, 13 Feb 2021 14:03:47 +0000
Subject: Bug #80740 [Com]: Possible "in_array" bug
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232130@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: This line shlould be in second loop instead first loop: $chave_bd = array($dados2['n1'], $dados2['n2'], $dados2['n3'], $dados2['n4'], $dados2['n5']); ...and lines above should be in first loop $n1 = $dados['n1']; $n2 = $dados['n2']; $n3 = $dados['n3']; $n4 = $dados['n4']; $n5 = $dados['n5']; $ns = $dados['ns']; In resume, is not a php bug, but bug in code... Previous Comments: ------------------------------------------------------------------------ [2021-02-13 13:09:22] rtrtrtrtrt at dfdfdfdf dot dfd35 > Problem solved and would you mind describe your mistake so that others finding your wrong bugreport can look if they amde the same? > You can delete this post this is a bugtracker and there won't be something deleted ------------------------------------------------------------------------ [2021-02-13 12:49:36] celestinoxp at hotmail dot com Problem solved. You can delete this post. Thaks. ------------------------------------------------------------------------ [2021-02-12 22:51:36] requinix@php.net 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. ------------------------------------------------------------------------ [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? ------------------------------------------------------------------------ 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

« previous php.bugs (#232130) next »