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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 03:01:33 2024 UTC