php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52364 0=="*" returns true
Submitted: 2010-07-16 19:38 UTC Modified: 2010-07-16 19:41 UTC
From: nickle799 at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.3.2 OS: Debian 5.0
Private report: No CVE-ID: None
 [2010-07-16 19:38 UTC] nickle799 at gmail dot com
Description:
------------
I am not sure if this is a feature or a bug, but 0=="*" returns true.  Is there a reason for this?


Test script:
---------------
<?php
if(0=="*") echo "This shouldn't echo";
?>

Actual result:
--------------
This shouldn't echo

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-07-16 19:41 UTC] aharvey@php.net
-Status: Open +Status: Bogus
 [2010-07-16 19:41 UTC] aharvey@php.net
This is expected behaviour, and is well documented across the manual, most notably on the type comparison page at
http://au2.php.net/manual/en/types.comparisons.php

Not a bug -> closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 19:01:34 2024 UTC