21 lines
679 B
PHP
21 lines
679 B
PHP
--TEST--
|
|||
|
|
cac_path_parity: a non-absolute mapping is inert, not applied
|
||
|
|
--EXTENSIONS--
|
||
|
|
cac_path_parity
|
||
|
|
--INI--
|
||
|
|
cac_path_parity.from=mnt/users/bob/site.com
|
||
|
|
cac_path_parity.to=/home/bob
|
||
|
|
variables_order=EGPCS
|
||
|
|
--ENV--
|
||
|
|
CONTEXT_DOCUMENT_ROOT=mnt/users/bob/site.com/public_html
|
||
|
|
--FILE--
|
||
|
|
<?php
|
||
|
|
// The value here is deliberately relative TOO, so the prefix would match and be
|
||
|
|
// rewritten if the absolute-path guard in RINIT were removed. Nothing the
|
||
|
|
// entrypoint writes looks like this; the guard exists so a mangled ini degrades
|
||
|
|
// to "inert" rather than to "confidently wrong".
|
||
|
|
var_dump($_SERVER['CONTEXT_DOCUMENT_ROOT']);
|
||
|
|
?>
|
||
|
|
--EXPECT--
|
||
|
|
string(34) "mnt/users/bob/site.com/public_html"
|