Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit 743aedd

Browse files
committed
Patch pgo01org training case
See intel/php_pgo_training_scripts#4.
1 parent 1bb2ac6 commit 743aedd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pgo/cases/pgo01org/TrainingCaseHandler.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ protected function setupDist() : void
9797
$class = preg_replace(",function Faculty,", "function __construct", $class);
9898
file_put_contents($fl, $class);
9999

100+
// patch <https://github.com/intel/php_pgo_training_scripts/pull/4>
101+
$fl = $htdocs . DIRECTORY_SEPARATOR . "standard_calls.php";
102+
$standard_calls = file_get_contents($fl);
103+
$standard_calls = preg_replace(",parse_str\(\\\$var1\),", "parse_str(\$var1, \$dummy)", $standard_calls);
104+
file_put_contents($fl, $standard_calls);
105+
100106
//$php->exec($cmd, NULL, $env);
101107
/* TODO check status or switch to cli. */
102108
$out = file_get_contents("http://$http_host:$http_port/init.php");

0 commit comments

Comments
 (0)