php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1324 function_exists is case sensitive
Submitted: 1999-04-16 22:42 UTC Modified: 2007-04-27 11:40 UTC
From: cclarke at netcom dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 3.0.7 OS: Linux
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cclarke at netcom dot com
New email:
PHP Version: OS:

 

 [1999-04-16 22:42 UTC] cclarke at netcom dot com
function_exists() only returns true if passed the name of a function
in all lower case.

so:
 
function Test() { print "Hello, world\n"; }

Test();    /* calls function */
function_exists("Test");     /* returns false */
function_exists("test"); /* returns true */

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-04-17 00:26 UTC] andrei
Fixed in CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 23:01:30 2024 UTC