php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37806 weird behavior of object type and comparison
Submitted: 2006-06-14 16:46 UTC Modified: 2006-07-09 22:14 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: technophreak at gammae dot com Assigned: helly (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 5CVS-2006-06-09 OS: *
Private report: No CVE-ID: None
 [2006-06-14 16:46 UTC] 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)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-09 22:14 UTC] helly@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 11:01:30 2024 UTC