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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
43 + 20 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 07:01:32 2024 UTC