php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #37796 t_is_not_identical for <> ?
Submitted: 2006-06-13 20:39 UTC Modified: 2008-01-28 00:02 UTC
From: nics at mail dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 6CVS-2006-06-13 (snap) OS: *
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: nics at mail dot com
New email:
PHP Version: OS:

 

 [2006-06-13 20:39 UTC] nics at mail dot com
Description:
------------
Just my ideas for the equivalent of <>.

I noticed that it did not have for operator <> with the type comparison.

File: ZendEngine2/zend_language_scanner.l

- <ST_IN_SCRIPTING>"!==" {
+ <ST_IN_SCRIPTING>"!=="|"<>=" {
 	return T_IS_NOT_IDENTICAL;
 }

Actual result:
--------------
!= and <>
!== don't have equivalent with "<>"

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-26 16:36 UTC] admin at ifyouwantblood dot de
<=> would look nicer ;-).... still i think <> can be removed, its just an overhead with no real use.
 [2008-01-28 00:02 UTC] johannes@php.net
There's no overhead in having both != and <> but many people are used to one or the other from different contextsm whereas !== is a php-only thing and one for that is enough.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 02:01:32 2025 UTC