forked from laruence/yaf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
080.phpt
50 lines (45 loc) · 974 Bytes
/
080.phpt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--TEST--
PHP7 didn't display Error.
--SKIPIF--
<?php if (!extension_loaded("yaf")) print "skip"; ?>
--INI--
yaf.use_namespace=0
--FILE--
<?php
require "build.inc";
startup();
$config = array(
"application" => array(
"directory" => APPLICATION_PATH,
),
);
file_put_contents(APPLICATION_PATH . "/Bootstrap.php", <<<PHP
<?php
class Bootstrap extends Yaf_Bootstrap_Abstract {
}
PHP
);
file_put_contents(APPLICATION_PATH . "/controllers/Index.php", <<<PHP
<?php
class IndexController extends Yaf_Controller_Abstract {
public function indexAction() {
geoge();//funciton undefined!
}
}
PHP
);
$app = new Yaf_Application($config);
$app->bootstrap()->run();
?>
--CLEAN--
<?php
require "build.inc";
shutdown();
?>
--EXPECTF--
Fatal error: Uncaught Error: Call to undefined function geoge() in %s:5
Stack trace:
#0 [internal function]: IndexController->indexAction()
#1 %s080.php(30): Yaf_Application->run()
#2 {main}
thrown in %s on line %d