Closed jubianchi closed 10 years ago
Given the following source code:
<?php $object = new \stdClass(); $object->return = rand(0, PHP_INT_MAX); $object->return(PHP_INT_MAX);
When running the test script, we get the following instrumented code:
<?php $object = new \stdClass();mark_line(__LINE__); $object->mark_line(__LINE__);return = rand(0, PHP_INT_MAX); $object->mark_line(__LINE__);return (PHP_INT_MAX);
Problem solved.
Given the following source code:
When running the test script, we get the following instrumented code: