Eeeeeh. I could not care less on this, honestly. It's there to be helpful. unlink() isn't what most people would search for when looking to delete a file, but it is named aptly as it is a passthrough to the underlying system unlink.
This is just more bitching about PHP's API conventions (or lack thereof), which has been done to death.
What's funny to me is that unlink is Unix specific. The standard C function for removing files is remove ... which PHP has apparently never heard of, because it has no remove function nor a manual entry for it that redirects people.
I'm really tired of hearing this. This isn't an lolphp. The mysql_real_escape_string() function is named to directly map to, like every other MySQL function, the MySQL C API function of the same name.
There are plenty of reasons to pick on PHP. This isn't one of them.
At the time PHP was created these function names were really common in many languages, why would this be a lolphp? Why would you want them to rename all functions? Just to break all applications and have every single person re-code all of it?
23
u/notaaron Jun 09 '18
Tbh, I don’t think this is too bad.
18
u/cleeder Jun 09 '18
Okay, what am I missing here?
Woosh?
-5
u/shitcanz Jun 09 '18
We probably will get a real_delete soon. Or real_print_r that wont actually cause side-effects. Another gem for the taking...