php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67457 in_array bug
Submitted: 2014-06-17 05:23 UTC Modified: 2014-06-17 05:31 UTC
From: jangka512 at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.5Git-2014-06-17 (Git) OS: centos 6.5 64bit
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jangka512 at gmail dot com
New email:
PHP Version: OS:

 

 [2014-06-17 05:23 UTC] 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)


Patches

in_array_bug (last revision 2014-06-17 05:24 UTC by jangka512 at gmail dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-06-17 05:31 UTC] requinix@php.net
-Status: Open +Status: Not a bug
 [2014-06-17 05:31 UTC] requinix@php.net
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.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 00:00:02 2026 UTC