php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39195 if (0=="any sting") echo "it's return true";
Submitted: 2006-10-19 07:33 UTC Modified: 2006-10-19 07:36 UTC
From: waynewn at citiz dot net Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.1.6 OS: win/freebsd
Private report: No CVE-ID: None
 [2006-10-19 07:33 UTC] waynewn at citiz dot net
Description:
------------
if (0=="any sting") echo "return true";

Reproduce code:
---------------
if (0=="any sting") echo "it's return true";
else echo "should be this"

Expected result:
----------------
should be this

Actual result:
--------------
it's return true

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-19 07:36 UTC] derick@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

.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 12:01:33 2025 UTC