25 lines
777 B
PHP
25 lines
777 B
PHP
--TEST--
|
|||
|
|
cac_path_parity: MINFO reports a well-formed mapping as ACTIVE
|
||
|
|
--EXTENSIONS--
|
||
|
|
cac_path_parity
|
||
|
|
--INI--
|
||
|
|
cac_path_parity.from=/mnt/users/bob/site.com
|
||
|
|
cac_path_parity.to=/home/bob
|
||
|
|
--FILE--
|
||
|
|
<?php
|
||
|
|
// The other half of 009. Tightening MINFO must not overshoot into the opposite
|
||
|
|
// lie: a canary that reports "inactive" on a perfectly good mapping would page
|
||
|
|
// the fleet for nothing and, worse, train us to ignore the row. This mapping is
|
||
|
|
// the exact shape entrypoint-lsphp.sh writes (/mnt/users/<user>/<domain> ->
|
||
|
|
// /home/<user>), and 001 proves RINIT really does rewrite under it.
|
||
|
|
ob_start();
|
||
|
|
phpinfo(INFO_MODULES);
|
||
|
|
$info = ob_get_clean();
|
||
|
|
|
||
|
|
var_dump(preg_match_all('/^Rewriting => (.+)$/m', $info, $m));
|
||
|
|
var_dump(rtrim($m[1][0]));
|
||
|
|
?>
|
||
|
|
--EXPECT--
|
||
|
|
int(1)
|
||
|
|
string(6) "active"
|