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
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 !
Your email address:
MUST BE VALID
Solve the problem:
3 + 40 = ?
Subscribe to this entry?

 
 [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: Tue Apr 23 23:01:29 2024 UTC