php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #44281 String-String Comparison operators ill-described
Submitted: 2008-02-28 09:59 UTC Modified: 2008-11-07 11:32 UTC
From: a at b dot c dot de Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: any
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: a at b dot c dot de
New email:
PHP Version: OS:

 

 [2008-02-28 09:59 UTC] a at b dot c dot de
Description:
------------
The Comparison Operators page summarises the behaviour of the comparison operators when applied to various types. In particular there is the table "Comparison with Various Types". According to that table, a "String" op "String" comparison is evaluated by translating "strings and resources to numbers, usual math". No mention is made anywhere on that page of the actual lexicographic comparison that is performed.

One of the consequences seems to have been a recent excruciating batch of user notes on the String Type page.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-07 11:32 UTC] vrana@php.net
String-String is caught by the first line of table.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jun 23 18:00:01 2026 UTC