Arquivos
hhvm/hphp/test/quick/include.php
T
Mark Williams a988bdb73e Fix a couple of include tests in repo mode
One just needed to have the file included in the repo.
One was getting the wrong return value (true vs 1).
2013-04-19 17:13:23 -07:00

27 linhas
367 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;
if (0) {
// to ensure we include the file in
// RepoAuthoritative mode
require 'include.3.inc';
}