Skip to content

Commit fabe256

Browse files
committed
fix(integration_runner): Adds options to not launch daemon
1 parent 2380fd3 commit fabe256

File tree

1 file changed

+3
-3
lines changed
  • daemon/internal/newrelic/integration

1 file changed

+3
-3
lines changed

daemon/internal/newrelic/integration/util.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
)
1414

1515
func GetPHPVersion() string {
16-
cmd := exec.Command("php", "-r", "echo PHP_VERSION;")
16+
cmd := exec.Command("php", "-d", "newrelic.daemon.dont_launch=3", "-r", "echo PHP_VERSION;")
1717

1818
output, err := cmd.Output()
1919
if err != nil {
@@ -25,7 +25,7 @@ func GetPHPVersion() string {
2525
}
2626

2727
func GetAgentVersion(agent_extension string) string {
28-
cmd := exec.Command("php", "-d", "extension="+agent_extension, "-r", "echo phpversion('newrelic');")
28+
cmd := exec.Command("php", "-d", "newrelic.daemon.dont_launch=3", "-d", "extension="+agent_extension, "-r", "echo phpversion('newrelic');")
2929

3030
output, err := cmd.Output()
3131
if err != nil {
@@ -36,7 +36,7 @@ func GetAgentVersion(agent_extension string) string {
3636

3737
func IsOPcacheLoaded(php_executable string) bool {
3838
fmt.Printf("Checking if OPcache is loaded using %s\n", php_executable)
39-
cmd := exec.Command(php_executable, "-m")
39+
cmd := exec.Command(php_executable, "-d", "newrelic.daemon.dont_launch=3", "-m")
4040

4141
output, err := cmd.Output()
4242

0 commit comments

Comments
 (0)