#37806 [Opn->Asn]: weird behavior of object type and comparison
| From: | tony2001@php.net | Date: | Mon, 19 Jun 2006 12:17:56 +0000 |
| Subject: | #37806 [Opn->Asn]: weird behavior of object type and comparison | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-98483@lists.php.net to get a copy of this message | ||
ID: 37806
Updated by: tony2001@php.net
Reported By: technophreak at gammae dot com
-Status: Open
+Status: Assigned
Bug Type: Scripting Engine problem
Operating System: Fedora Core 4
PHP Version: 5CVS-2006-06-06
-Assigned To:
+Assigned To: helly
Previous Comments:
------------------------------------------------------------------------
[2006-06-14 16:46:45] technophreak at gammae dot com
Description:
------------
Works as expected in PHP 5.1.2
Tried on latest cvs: php5.2-200606141430
Reproduce code:
---------------
<?
class test { }
$test = new test;
var_dump(isset($test));
var_dump($test != "");
?>
Expected result:
----------------
bool(true)
bool(true)
Actual result:
--------------
bool(true)
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37806&edit=1