php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70769 address of HashTable will always evaluate to 'true'
Submitted: 2015-10-22 13:20 UTC Modified: 2015-10-23 03:22 UTC
From: cornelius dot howl at gmail dot com Assigned: laruence (profile)
Status: Closed Package: Reflection related
PHP Version: 7.0.0RC5 OS: OS X 10.11
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cornelius dot howl at gmail dot com
New email:
PHP Version: OS:

 

 [2015-10-22 13:20 UTC] 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.


Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-10-23 03:22 UTC] laruence@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: laruence
 [2015-10-23 03:22 UTC] laruence@php.net
the pr has been merged.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 05:01:42 2025 UTC