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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sun Jun 14 07:00:01 2026 UTC