calling own function on call of built-in function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
localhost
Forum Commoner
Posts: 43
Joined: Tue Dec 07, 2004 4:52 am
Location: islamabad
Contact:

calling own function on call of built-in function

Post by localhost »

Can this be done? like on each call of OCIParse($conn,$sql) i would like my own function to be called.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Straight through PHP? No.
PHP isn't an object-based language, so it doesn't treat functions as objects. Therefore, they aren't externally editable.

However, if you go into the actual source, you may be able to add whatever functionality that you'd like to (and if it's a good improvement, submit it to the PHP project).
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

http://de2.php.net/runkit might be of interest.
Post Reply