php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #69480 Comparison Operators lists Spaceship, which is not implemented
Submitted: 2015-04-18 19:17 UTC Modified: 2015-04-19 15:29 UTC
From: rex dot schrader at gmail dot com Assigned: pasindu (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: N/A
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: rex dot schrader at gmail dot com
New email:
PHP Version: OS:

 

 [2015-04-18 19:17 UTC] rex dot schrader at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/language.operators.comparison
---
This page lists the Spaceship Operator "<=>" as a valid operator, but according to this RFC: https://wiki.php.net/rfc/combined-comparison-operator, the implementation is not scheduled until PHP 7.  It is confusing to list it as a valid operator when the current released PHP does not support it.


Test script:
---------------
N/A

Expected result:
----------------
Remove the operator from the list until PHP 7 has been released, or at least make a note that it will not work in PHP 5.6.* or less.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-19 15:29 UTC] pasindu@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pasindu
 [2015-04-19 15:29 UTC] pasindu@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

PHP version was added to the spaceship operator.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 05:00:01 2026 UTC