Jump to content

Archived

This topic is now archived and is closed to further replies.

ignace

function case sensitivity + security

Recommended Posts

Hey

Problem Number 1: I happen to use sometimes the name of functions that already exists like count(), isset(), but change them into Count(), and IsSet() now when I do this I get the problem that the parser tells me that I can not redeclare these functions, does somebody know how I can make functions case sensitive, My server is running on windows, so yes that is my first problem... :d

Problem Number 2: If anybody of you is experienced in security, then please feel free to share your information with me! Or even just tell me things where I need to pay attention to! Because I know that private and public just don't do the trick...

P.S.: English is not my native language, but you already knew that?

Share this post


Link to post
Share on other sites
all function names are case insensitive.  Why are you wanting to redefine already existing functions?

For your security question, refer to this thread:

http://www.phpfreaks.com/forums/index.php/topic,103005.0.html

Which is only about 10 threads down.  Please at least make the smallest effort to do a search before asking the same question as someone else has a million times before.

Share this post


Link to post
Share on other sites
effort? I created that word!! And I already readed that topic, check my post!! However your answer is not really on-topic, unless you mean all functions are case insensitive is the best answer you can come up with! I wanna know how I can make it case sensitive! And then why I want to redeclare them? because I use them in OO. And when I want a certain count I don't gonna declare my function as: giveMeTheTotalNumber();

Share this post


Link to post
Share on other sites
[quote]I wanna know how I can make it case sensitive![/quote]

You can't...at least not without core php hacking, and that's a lot of trouble when you can simply rename your functions to something like:

[code]function ignace_isset($var1) {
  ...
}[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.