php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67661 function_exist doesn't work
Submitted: 2014-07-21 14:25 UTC Modified: 2014-07-21 17:16 UTC
From: andreagrillo83 at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.5Git-2014-07-21 (Git) OS: Windows 8 64bit
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: andreagrillo83 at gmail dot com
New email:
PHP Version: OS:

 

 [2014-07-21 14:25 UTC] andreagrillo83 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.function-exists
---

In php the function name are case sensitive but the function_exists function isn't case sensitive. Infact if i defined two function called "test" and "Test" alla function works great but if i use the function_exist function there isn't a way to distinguish the two function.

Test script:
---------------
function Test(){}

if( function_exist('test) ){} return true but, if i want, i can declare this functions

function test() and alla works fine, but i can't distinguish the two function.

Expected result:
----------------
false

Actual result:
--------------
true

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-07-21 17:16 UTC] requinix@php.net
-Status: Open +Status: Not a bug
 [2014-07-21 17:16 UTC] requinix@php.net
> In php the function name are case sensitive
No, they are not. http://3v4l.org/NqhG0
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 20:00:02 2026 UTC