Last change
on this file since 742 was
742,
checked in by Xuefer, 7 years ago
|
update decompile test code
|
-
Property svn:eol-style set to
native
|
File size:
1.1 KB
|
Rev | Line | |
---|
[734] | 1 | <?php |
---|
| 2 | |
---|
| 3 | class ClassName |
---|
| 4 | { |
---|
[736] | 5 | /** doc */ |
---|
[734] | 6 | static public $static = array( |
---|
| 7 | array('array'), |
---|
| 8 | 'str' |
---|
| 9 | ); |
---|
[736] | 10 | /** doc */ |
---|
[734] | 11 | static public $public_static = array(2, 'str'); |
---|
[736] | 12 | /** doc */ |
---|
[734] | 13 | static private $private_static = array(2, 'str'); |
---|
[736] | 14 | /** doc */ |
---|
[734] | 15 | static protected $protected_static = array(2, 'str'); |
---|
[736] | 16 | /** doc */ |
---|
[734] | 17 | public $property = array( |
---|
| 18 | array('array'), |
---|
| 19 | 'str' |
---|
| 20 | ); |
---|
[736] | 21 | /** doc */ |
---|
[734] | 22 | public $public_property = array(2, 'str'); |
---|
[736] | 23 | /** doc */ |
---|
[734] | 24 | private $private_property = array(2, 'str'); |
---|
[736] | 25 | /** doc */ |
---|
[734] | 26 | protected $protected_property = array(2, 'str'); |
---|
| 27 | |
---|
[736] | 28 | /** doc */ |
---|
[734] | 29 | public function __construct($a, $b) |
---|
| 30 | { |
---|
| 31 | } |
---|
| 32 | |
---|
[736] | 33 | /** doc */ |
---|
| 34 | public function method(array $a = NULL, $b = NULL) |
---|
[734] | 35 | { |
---|
| 36 | } |
---|
| 37 | |
---|
[736] | 38 | /** doc */ |
---|
| 39 | public function publicMethod(ClassName $a = NULL, $b = 2) |
---|
[734] | 40 | { |
---|
| 41 | } |
---|
| 42 | |
---|
[736] | 43 | /** doc */ |
---|
| 44 | protected function protectedMethod(ClassName $a, $b = array( |
---|
| 45 | array('array') |
---|
| 46 | )) |
---|
[734] | 47 | { |
---|
[737] | 48 | $runtimeArray = array('1'); |
---|
| 49 | $runtimeArray2 = array( |
---|
| 50 | '1', |
---|
| 51 | array() |
---|
| 52 | ); |
---|
| 53 | $runtimeArray3 = array( |
---|
| 54 | 'a' => '1', |
---|
| 55 | 2 => array() |
---|
| 56 | ); |
---|
[734] | 57 | return 'protected'; |
---|
| 58 | } |
---|
| 59 | |
---|
[736] | 60 | /** doc */ |
---|
| 61 | private function privateMethod(ClassName $a, $b = NULL) |
---|
[734] | 62 | { |
---|
| 63 | return 'private'; |
---|
| 64 | } |
---|
| 65 | } |
---|
| 66 | |
---|
[742] | 67 | echo str_replace(array('a' => 'a', 'b' => 'c'), 'b'); |
---|
[734] | 68 | |
---|
| 69 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.