I have created my own PHP extension in c++ (linux). when zend engine compiles the PHP code am getting the active user functions and internal functions name.
To debug this php extension am using zend_printf to print the values.
Instead of zend_printf wants to write in log file. I checked with FILE I/O, fstream not working here.
How to create the log file in php extension using c/c++?