Arquivos
hhvm/hphp/test/quick/include.php
T
ptarjan 6e899255c6 move .php files to .inc in test/quick that aren't tests
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
2013-04-17 10:12:47 -07:00

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;