|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-22 18:56 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 03:00:01 2025 UTC |
Description: ------------ When evaluating an instantiated object with "!=" the result is incorreclty returned as false; Reproduce code: --------------- echo phpversion(); class foo { var $test; } $obj = new foo(); if( $obj != null ) { echo "\n\ncorrect"; } else { echo "\n\nnot correct"; } Expected result: ---------------- D:\tmp>"c:\Program Files\PHP514\php.exe" obj_null.php 5.1.4 correct Actual result: -------------- D:\tmp>php obj_null.php 5.2.0-dev not correct