--- embedaddon/php/ext/standard/tests/file/windows_links/bug48746_3.phpt 2012/02/21 23:48:04 1.1.1.1 +++ embedaddon/php/ext/standard/tests/file/windows_links/bug48746_3.phpt 2013/07/22 01:32:08 1.1.1.2 @@ -1,7 +1,7 @@ --TEST-- Bug#48746 - Junction not working properly ---CREDIT-- +--CREDITS-- Venkat Raman Don (don.raman@microsoft.com) --SKIPIF-- @@ -9,7 +9,8 @@ Venkat Raman Don (don.raman@microsoft.com) if(substr(PHP_OS, 0, 3) != 'WIN' ) { die('skip windows only test'); } -$ret = exec('junction /? 2>&1', $out); +include_once __DIR__ . '/common.inc'; +$ret = exec(get_junction().' /? 2>&1', $out); if (strpos($out[0], 'recognized')) { die('skip. junction.exe not found in PATH.'); } @@ -17,11 +18,12 @@ if (strpos($out[0], 'recognized')) { ?> --FILE-- "); file_put_contents("junction\\b.php", ""); include "junction/a.php"; @@ -45,4 +47,4 @@ Array [1] => .. [2] => a.php [3] => b.php -) +)