|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79320 The "empty" function is not recognized as a callable.
Submitted: 2020-02-29 02:08 UTC Modified: 2020-02-29 03:05 UTC
From: ilya at bakhlin dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: Irrelevant OS: Windows, GNU/Linux, macOS
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ilya at bakhlin dot com
New email:
PHP Version: OS:


 [2020-02-29 02:08 UTC] ilya at bakhlin dot com

is_callable("empty") // false;

Test script:

if (is_callable("empty")) {
    echo "It is a callable function."
} else {
    echo "It is not a callable function."


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-02-29 03:05 UTC]
-Status: Open +Status: Not a bug
 [2020-02-29 03:05 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

empty is a language construct, not a function.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu Aug 11 05:05:45 2022 UTC