include() and duplicate function definition

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Thijs, :-)

On Wed, Nov 3, 2010 at 18:18, Thijs Lensselink <dev@xxxxxxxx> wrote:
> As far as I know it is not possible to overwrite functions in PHP (unless
> you use runkit, apd). Inside classes this is possible. But that's not the
> case here. Why do the functions have to be equally named?

If the functions aren't named the same, my replacement function will
never get called by the code that uses the WordPress theme code...

> Try to create a new function and call the original function from there if
> needed...

Sadly, it wouldn't work for the above reason...

But thanks for your answer. :-)

David Nelson

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux