PHP probe and server aggregated report added

Probe code for PHP has been prepared. Basic usage is:

putenv(“RANDOMTEST_URL”, “http://localhost/path/to/randomtest-server.php”);
require(“randomtest-probe.php”);

You can set those in common script included by every part of your application. With that any error, warning, notice are reported to the server immediately.

Additionally server uses local DB storage now to count frequency of stacktraces and shows them starting from most frequently visible, an example:

RandomTest.net report

event counter: 14
BEGIN RANDOMTEST EVENT process:/home/darek/public_html/randomtest.net/src/probes/c/test1.exe
sigsegv_handler
./test1.exe: MyClass2::myMethod2(char const*)+0×9
./test1.exe: MyClass1::myMethod1(int)+0×12
./test1.exe: main()+0×15
/lib/i386-linux-gnu/libc.so.6: __libc_start_main()+0xf3
./test1.exe() [0x8048561]: ??
RANDOMTEST EVENT END

event counter: 11
BEGIN RANDOMTEST EVENT
Undefined variable: undefined_var
/home/darek/public_html/randomtest.net/src/probes/php/test1.php:10 randomtest_error_handler
/home/darek/public_html/randomtest.net/src/probes/php/test1.php:20 fun_C
END RANDOMTEST EVENT

(…)

Note the server has collected stacktraces from two totally different environments: C++ standalone program and PHP script run on the server. That means you can track events effectively in big, heterogeneous systems.

The probe-server pair has right now the very minimal but useful functionality included. You can track your local development / QA team activities by catching every error / warning / notice that might occur during manual testing and might remain unnoticed. Full stacktrace included might help greatly with error localization and fix.

 

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>