Closed bobbingwide closed 4 years ago
This solution may be suitable for controlling what tracing occurs when running in situ PHPUnit tests and the front-end dashboard.
The new solution for #16 means that we can select the trace file name when tracing the command line. The additional logic to check the value of IP may no longer be necessary.
This fix has been superseded by the new logic to trace to a different file name for CLI requests. There’s a question mark over whether or not tracing a specific IP still works.
There’s a question mark over whether or not tracing a specific IP still works.
This has been re-implemented in the fixes for #17
The only place where I'm getting a problem with the value of the PHP_SAPI constant apparently changing is on wp-a2z.org. I need to be able to trace the Command Line Interface only.
Proposed solution
Use a value of 'cli' for the Trace specific IP field and enable tracing when php_sapi_name() matches and the current IP is null.
This in addition to the current logic that tests the specific IP address.