Bug #67457 [Opn->Nab]: in_array bug

From: Date: Tue, 17 Jun 2014 05:31:11 +0000
Subject: Bug #67457 [Opn->Nab]: in_array bug
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186218@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67457&edit=1 ID: 67457 Updated by: requinix@php.net Reported by: jangka512 at gmail dot com Summary: in_array bug -Status: Open +Status: Not a bug Type: Bug Package: *General Issues Operating System: centos 6.5 64bit PHP Version: 5.5Git-2014-06-17 (Git) Block user comment: N Private report: N New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Use the $strict parameter. Previous Comments: ------------------------------------------------------------------------ [2014-06-17 05:23:35] jangka512 at gmail dot com Description: ------------ var_dump(in_array(0, array(1, -1, 'C'))); => bool(true) Test script: --------------- var_dump(in_array(0, array(1, -1, 'C'))); => bool(true) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67457&edit=1

« previous php.bugs (#186218) next »