Arquivos
hhvm/hphp/test/quick/include2.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

19 linhas
310 B
PHP

<?php
function f() {}
$x = 12;
@f();
$y = 34;
@f();
$z = 56;
$t = include 'include2.1.inc';
var_dump($x);
var_dump($y);
var_dump($z);
var_dump($t);
$t = include_once 'include2.1.inc';
var_dump($t);
$t = @include_once 'include2_doesnt_exist.inc';
var_dump($t);
$t = include_once 'include2.2.inc';
var_dump($t);