0

Consider a built in php function, for example file_put_contents(). Running php-fpm on Nginx is it possible to log all usages of that function?

The example output i'm thinking about is something like this:

timestamp path_to_the_file_which_used_the_function  parameters_passed_to_the_function
Roozbeh Sharafi
  • 347
  • 1
  • 6
  • 21

1 Answers1

0

Enable profiling in Xdebug. This logs many times each function is called, execution time and call stack. It may not show parameters passed, however.

Quolonel Questions
  • 6,603
  • 2
  • 32
  • 33