Bug #70769 [Opn->Csd]: address of HashTable will always evaluate to 'true'

From: Date: Fri, 23 Oct 2015 03:22:26 +0000
Subject: Bug #70769 [Opn->Csd]: address of HashTable will always evaluate to 'true'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196759@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70769&edit=1 ID: 70769 Updated by: laruence@php.net Reported by: cornelius dot howl at gmail dot com Summary: address of HashTable will always evaluate to 'true' -Status: Open +Status: Closed Type: Bug Package: Reflection related Operating System: OS X 10.11 PHP Version: 7.0.0RC5 -Assigned To: +Assigned To: laruence Block user comment: N Private report: N New Comment: the pr has been merged. Previous Comments: ------------------------------------------------------------------------ [2015-10-22 13:20:38] cornelius dot howl at gmail dot com Description: ------------ There are conditions like: if (&ce->function_table) { } However ce->function_table is a HashTable member, referencing HashTable will always evaluate to true. This is confusing. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70769&edit=1

« previous php.bugs (#196759) next »