Bug #68243 [Com]: IMPORTANT! Checking empty value failed
| From: | siemienik dot pawel at gmail dot com | Date: | Thu, 16 Oct 2014 12:27:59 +0000 |
| Subject: | Bug #68243 [Com]: IMPORTANT! Checking empty value failed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-188136@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68243&edit=1
ID: 68243
Comment by: siemienik dot pawel at gmail dot com
Reported by: Siemienik dot Pawel at gmail dot com
Summary: IMPORTANT! Checking empty value failed
Status: Open
Type: Bug
Package: *PDF functions
Operating System: Ubuntu 14
PHP Version: 5.5.17
Block user comment: N
Private report: N
New Comment:
int AnyClass is function __get(), which will return string value;
Previous Comments:
------------------------------------------------------------------------
[2014-10-16 12:25:00] Siemienik dot Pawel at gmail dot com
Description:
------------
!empty((AnyClass::getInstance()->title))
!==
!empty(AnyClass::getInstance()->title)
Test script:
---------------
var_dump(
!empty((AnyClass::getInstance()->title)),
!empty(AnyClass::getInstance()->title)
)
if(!empty((AnyClass::getInstance()->title)) !== empty(AnyClass::getInstance()->title))
var_dump('BIG PROBLEM HERE!')
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68243&edit=1