Page 1 of 1

calling own function on call of built-in function

Posted: Wed Sep 12, 2007 3:37 am
by localhost
Can this be done? like on each call of OCIParse($conn,$sql) i would like my own function to be called.

Posted: Wed Sep 12, 2007 8:15 am
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).

Posted: Wed Sep 12, 2007 11:02 am
by volka
http://de2.php.net/runkit might be of interest.