-
Notifications
You must be signed in to change notification settings - Fork 12
PHP benchmarks
Before attempting to repair a particular PHP bug within the repository, you must execute its prepare.sh
script. This script will unpack the PHP source files to that directory, before executing configure
with the appropriate, so that candidate patches are ready to be compiled on the target machine, as 32-bit executables.
- In order to compile on more modern machines using
libxml2-2.9.0
or greater, a patch is installed byprepare.sh
.
The front-facing test harness is provided by test.sh
, which accepts the location of a PHP executable for a candidate patch, together with a test case name. This shell script matches the name of the provided test case with a numbered test case from PHP unit tests. The location of the executable is passed together with this test number to test.pl
, which finds the location of the PHP test file for the particular test, and makes the call to the PHP executable.
./test.sh candidate/php p1