Permalink
Browse files

fix test - paths may be expressed in different way

  • Loading branch information...
1 parent d42917b commit 36d45859964c120ae9f84573ca0706fdc31d678d @smalyshev smalyshev committed Dec 26, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 tests/basic/bug54514.phpt
@@ -2,8 +2,11 @@
Req #54514 (Get php binary path during script execution)
--FILE--
<?php
-if(getenv('TEST_PHP_EXECUTABLE') === PHP_BINARY) {
+if(realpath(getenv('TEST_PHP_EXECUTABLE')) === realpath(PHP_BINARY)) {
echo "done";
+} else {
+ var_dump(getenv('TEST_PHP_EXECUTABLE'));
+ var_dump(PHP_BINARY);
}
--EXPECT--
done

0 comments on commit 36d4585

Please sign in to comment.