This reverts commit 9c25633d6d
.
pull/11620/head
parent
98a588eb90
commit
40244dc228
|
@ -359,11 +359,6 @@ namespace Composer;
|
|||
|
||||
$globalsCode
|
||||
$streamProxyCode
|
||||
|
||||
if (__FILE__ === realpath(\$_SERVER['SCRIPT_NAME'])) {
|
||||
\$_SERVER['SCRIPT_NAME'] = realpath($binPathExported);
|
||||
}
|
||||
|
||||
return include $binPathExported;
|
||||
|
||||
PROXY;
|
||||
|
|
|
@ -110,18 +110,6 @@ EOL
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
echo 'success '.$_SERVER['argv'][1];
|
||||
EOL
|
||||
],
|
||||
'php file which validates $_SERVER["SCRIPT_NAME"]' => [<<<'EOL'
|
||||
<?php
|
||||
if (__FILE__ === realpath($_SERVER['SCRIPT_NAME'])) {
|
||||
echo 'success '.$_SERVER['argv'][1];
|
||||
} else {
|
||||
fwrite(STDERR, "Test failure: __FILE__ does not match \$_SERVER['SCRIPT_NAME']\n");
|
||||
fwrite(STDERR, "\t__FILE__:\t" . __FILE__ . "\n");
|
||||
fwrite(STDERR, "\t\$_SERVER['SCRIPT_NAME']:\t" . $_SERVER['SCRIPT_NAME'] . "\n");
|
||||
exit(1);
|
||||
}
|
||||
EOL
|
||||
],
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue