|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76733 Trivial tests aren't covered by GCOV
Submitted: 2018-08-12 18:13 UTC Modified: 2018-08-20 14:46 UTC
From: Assigned:
Status: Open Package: Testing related
PHP Version: Irrelevant OS:
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 — but make sure to vote on the bug!
Your email address:
Solve the problem:
5 + 34 = ?
Subscribe to this entry?

 [2018-08-12 18:13 UTC]
Trivial tests for functions like gettype, floatval, boolval, is_bool, etc, aren't being covered in GCOV:

I've tested locally the new LCOV version, 1.13 (, but it didn't help us.

Something to start with: in PHP 7.1 we weren't using macros for gettype (, for example, and after we started on 7.2 (, we've lost those lines.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-08-20 12:07 UTC]
The reason is that these functions have custom VM handlers, so in most cases (and in particular the ones being tested), the actual functions are never hit.
 [2018-08-20 14:46 UTC]
> The reason is that these functions have custom VM handlers, […]

I suggest to add a respective comment to these functions.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Jan 27 00:03:35 2022 UTC