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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nickle799 at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sun Dec 22 06:01:30 2024 UTC