6e899255c6
Instead of having a blacklist on name, how about we use a different file extension for included files? Many PHP installs do this for files that are in the document root but shouldn't be served. @override-unit-failures
22 linhas
263 B
PHP
22 linhas
263 B
PHP
<?php
|
|
|
|
$a = 1;#"a\n";
|
|
print $a."\n";
|
|
|
|
require 'include.1.inc';
|
|
|
|
print $a."\n";
|
|
print $b."\n";
|
|
|
|
function foo() {
|
|
require 'include.2.inc';
|
|
}
|
|
foo();
|
|
|
|
$path = dirname(__FILE__) . '/include.3.inc';
|
|
require $path;
|
|
|
|
$path = __DIR__ . '/include.3.inc';
|
|
require $path;
|
|
|