|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
New email:
PHP Version: OS:


 [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: Sat Jan 22 22:03:37 2022 UTC