Browse Source

[sys test] PHP_BINARY is only defined in php 5.4+

Andy Li 9 years ago
parent
commit
358ebd25de
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/sys/src/TestCommandBase.hx

+ 2 - 2
tests/sys/src/TestCommandBase.hx

@@ -36,7 +36,7 @@ class TestCommandBase extends haxe.unit.TestCase {
 			#elseif neko
 				run(Sys.executablePath(), [bin].concat(args));
 			#elseif php
-				run(untyped __php__("PHP_BINARY"), [bin].concat(args));
+				run(untyped __php__("defined('PHP_BINARY') ? PHP_BINARY : 'php'"), [bin].concat(args));
 			#else
 				-1;
 			#end
@@ -116,7 +116,7 @@ class TestCommandBase extends haxe.unit.TestCase {
 				#elseif neko
 					run(Sys.executablePath(), [bin].concat(args));
 				#elseif php
-					run(untyped __php__("PHP_BINARY"), [bin].concat(args));
+					run(untyped __php__("defined('PHP_BINARY') ? PHP_BINARY : 'php'"), [bin].concat(args));
 				#else
 					-1;
 				#end