#37806 [Asn->Csd]: weird behavior of object type and comparison
| From: | helly@php.net | Date: | Sun, 09 Jul 2006 22:14:08 +0000 |
| Subject: | #37806 [Asn->Csd]: weird behavior of object type and comparison | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-99257@lists.php.net to get a copy of this message | ||
ID: 37806
Updated by: helly@php.net
Reported By: technophreak at gammae dot com
-Status: Assigned
+Status: Closed
Bug Type: Scripting Engine problem
-Operating System: Fedora Core 4
+Operating System: *
-PHP Version: 5CVS-2006-06-06
+PHP Version: 5CVS-2006-06-09
Assigned To: helly
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
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