|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #61021 chaging keyword 'empty' to 'isempty'
Submitted: 2012-02-09 01:01 UTC Modified: 2012-02-09 01:31 UTC
From: milevyo at gmail dot com Assigned:
Status: Wont fix Package: PHP options/info functions
PHP Version: Irrelevant OS: all
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: milevyo at gmail dot com
New email:
PHP Version: OS:


 [2012-02-09 01:01 UTC] milevyo at gmail dot com
if (empty($var)){

this has an impression that we are trying freeing up $var and making it 'NULL'
it sound like 'DoEmpty()' or 'SetEmpty()'

but what this function realy is: 

the script should looks like this:
because IMHO 'do','set' and 'let' are optional prefixes, which let you understand that this function is an order (a command)
but not the prefix 'is' which is if we can say a test prefix.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-02-09 01:31 UTC]
-Status: Open +Status: Wont fix
 [2012-02-09 01:31 UTC]
Given the massive backward compatibility break this would entail for people using 
empty(), not to mention the many hits on Koders for PHP code that has declared a 
function called isempty(), I don't think there's any feasible way this could be 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu May 13 17:01:24 2021 UTC