#27413 [Asn->Csd]: SimpleXML text comparison

From: Date: Fri, 26 Mar 2004 23:13:38 +0000
Subject: #27413 [Asn->Csd]: SimpleXML text comparison
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56931@lists.php.net to get a copy of this message
 ID:               27413
 Updated by:       amt@php.net
 Reported By:      rbro at hotmail dot com
-Status:           Assigned
+Status:           Closed
 Bug Type:         SimpleXML related
 Operating System: *
 PHP Version:      5CVS-2004-03-07
 Assigned To:      sterling
 New Comment:

This now works as of latest CVS (and probably also RC1).


Previous Comments:
------------------------------------------------------------------------

[2004-03-10 00:34:21] amt@php.net

The docs are incorrect. Right now you really need to 
cast to a string. I thought I remember reading that 
Sterling and Zeev (?) may have worked out a solution on 
the php|cruise. However, I have yet to see anything 
checked in. Hopefully, this will be fixed to eliminate 
the need for a cast.

------------------------------------------------------------------------

[2004-03-09 19:22:18] sniper@php.net

Either the docs are outdated or there is some bug here.
(is casting to string really necessary?)

------------------------------------------------------------------------

[2004-03-07 12:17:16] rbro at hotmail dot com

I just tried running my original example from my initial bug report,
but I got the same results.  I got the "They are not equal." line.  I'm
running on php5-200403071630.

------------------------------------------------------------------------

[2004-03-07 10:15:14] helly@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

------------------------------------------------------------------------

[2004-02-27 13:51:55] rbro at hotmail dot com

Thanks for your reply, but if that's the intended behavior (that
echo'ing the attribute prints it out as a string, but trying to compare
it doesn't work without a cast to a string), then the documentation
then needs to be updated.  The 'Using attributes' example on
http://docs.php.net/en/ref.simplexml.html
says that what I'm trying to
do should work.  That example then is invalid too.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/27413

-- 
Edit this bug report at http://bugs.php.net/?id=27413&edit=1


Thread (11 messages)

« previous php.bugs (#56931) next »