I am writing a php extension that uses zend_execute to execute some compiled opcodes. I then check if any exception was thrown while executing these opcodes. All is working fine and I can successfully detect if the code was executed successfully or not. However, while running the tests associated with this code I would like to disable the output for this call so that the output of the cases when there is an exception in the code does not pollute the output of the test cases. Is there a way to disable or redirect the output of the php engine when running this function?
zend_execute
1.4m articles
1.4m replys
5 comments
57.0k users