-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.php
More file actions
68 lines (51 loc) · 1.48 KB
/
test.php
File metadata and controls
68 lines (51 loc) · 1.48 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
/**
* Обработчик ошибок и вывод дампа переменных
*
* @author Valetin Gernovich <gernovich@ya.ru>
* @copyright Copyright (c) 2011, Valetin Gernovich. All rights reserved.
* @license http://www.opensource.org/licenses/bsd-license.php BSD License
* @version 0.2
*/
include 'debugger.php';
interface bar {}
interface bar2 {}
class foo2 {}
class foo3 extends foo2 {}
final class foo extends foo3 implements bar, bar2 {
private $a = null;
protected $b = 0;
public $c = '';
public function __construct() {}
public function test($a, $b, array $c = array()) {
return self::bar($c);
}
private static function bar($e){
return aaaa($e);
}
}
function aaaa() {
zxcvzcxv;
@zxcvzcxv;
}
throw new Exception('Генерим исключение');
// Рекурсия в массивах
//$array = array('foo'=>1, 'bar'=>2);
//$array['test'] = &$array;
//p($array);
// Рекурсия в объектах
//p(Debug_Processor::getInstance());
$obj = new foo();
$obj->test('Привет', 2, array(null));
p(array(
'boolean' => true,
'integer' => 999,
'float' => pi(),
'string' => 'test',
'array' => array(0,null=>null,'d'=>1, 'tag'=>"<b>test</b>", 'tag'=>"<b>test</b>", 'cli'=>"\x1b[41m\n\t\r"),
'object' => new foo(),
'resource' => imagecreatetruecolor(14 , 14),
'null' => null,
'ar' => array(0,1,2,'asda','',null,pi(),false,true,array(array(array(array(array(array(array(array(array()))))))))),
));
print "\n";