#22737 [Opn->WFx]: Rename empty()

From: Date: Tue, 18 Mar 2003 01:41:21 +0000
Subject: #22737 [Opn->WFx]: Rename empty()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-35781@lists.php.net to get a copy of this message
ID: 22737 Updated by: sniper@php.net Reported By: php dot net at trenkner dot de -Status: Open +Status: Wont fix Bug Type: Feature/Change Request Operating System: ANY PHP Version: 4.3.0 Previous Comments: ------------------------------------------------------------------------ [2003-03-17 11:10:41] jay@php.net So what's your plan to mitigate BC problems? What about the users who have written their own functions called is_empty() and is_set()? You can't just replace something as commonly used as isset() or empty(). If you really want this functionality, wrap a userland function around empty() and isset(), because the odds of this changing are infintesimally small. J ------------------------------------------------------------------------ [2003-03-16 12:26:24] php dot net at trenkner dot de Maybe this is a FAQ but I didn't found it, so... The function empty() seems to be named inconsistently. We say is_null, is_string, is_object so why there is no function is_empty()? BTW isset() is also not in sync :-( I would like to see a function is_empty() which behaves in the same way then empty(), same for is_set() replacing isset(). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22737&edit=1

« previous php.bugs (#35781) next »