GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Php Question (https://gfy.com/showthread.php?t=1077960)

Vapid - BANNED FOR LIFE 08-14-2012 01:34 PM

Php Question
 
I want to rename a core function, not override nor alias, but rename :helpme

orion4bbw 08-14-2012 01:36 PM

why not just make a wrapper function for it ?

kazymjir 08-14-2012 01:39 PM

Quote:

Originally Posted by orion4bbw (Post 19120165)
why not just make a wrapper function for it ?

This. Renaming a function may cause to shit happen if some code use this function and you forgot about it. Making a wrapper is the best solution.

Vapid - BANNED FOR LIFE 08-14-2012 01:46 PM

That's actually the intention kazymjir, to prevent it from being used under its original name. It is disabled in php.ini currently. I want to rename it and remove the block on it.

Colmike9 08-14-2012 01:53 PM

That could cause problems..
If you're worried about people injecting code or something like that, why not just validate all $_GET $_POST $_COOKIE and $_SERVER variables

Vapid - BANNED FOR LIFE 08-14-2012 02:00 PM

I think I just found a solution. Thanks though guys. This is a simple job for htaccess. :)

CurrentlySober 08-14-2012 02:04 PM

Yes Yes...

I can make up words too...

fris 08-14-2012 07:23 PM

i could always recompile php with your function in its place ;)


All times are GMT -7. The time now is 10:09 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123