title: Override default php function
body: <p>I have script wherein <code>basename()</code> is used 100-1000s of time, I was just thinking if we can override the function rather than changing the function name to something else in all scripts.</p>
  
  <p>The problem with <code>basename()</code> is that it doesnt works well with names of files in foreign languages. I found one on php site <a href="http://php.net/manual/en/function.override-function.php" rel="noreferrer">http://php.net/manual/en/function.override-function.php</a> but it needs <code>PECL</code> any other alternative?</p>