Changeset 736
- Timestamp:
- 2011-04-10T16:38:36+02:00 (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
Decompiler.class.php (modified) (3 diffs)
-
decompilesample.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Decompiler.class.php
r735 r736 1558 1558 echo ', '; 1559 1559 } 1560 $arg = $EX['recvs'][$i + 1]; 1560 1561 if (isset($op_array['arg_info'])) { 1561 1562 $ai = $op_array['arg_info'][$i]; 1562 1563 if (!empty($ai['class_name'])) { 1563 1564 echo $ai['class_name'], ' '; 1564 if ( $ai['allow_null']) {1565 if (!ZEND_ENGINE_2_2 && $ai['allow_null']) { 1565 1566 echo 'or NULL '; 1566 1567 } … … 1568 1569 else if (!empty($ai['array_type_hint'])) { 1569 1570 echo 'array '; 1570 if ( $ai['allow_null']) {1571 if (!ZEND_ENGINE_2_2 && $ai['allow_null']) { 1571 1572 echo 'or NULL '; 1572 1573 } … … 1597 1598 } 1598 1599 } 1599 $arg = $EX['recvs'][$i + 1];1600 1600 echo toCode($arg[0], $indent); 1601 if (isset($arg[1])) {1602 echo ' = ', toCode($arg[1], $indent);1603 }1601 } 1602 if (isset($arg[1])) { 1603 echo ' = ', toCode($arg[1], $indent); 1604 1604 } 1605 1605 } -
trunk/decompilesample.php
r734 r736 3 3 class ClassName 4 4 { 5 /** doc */ 5 6 static public $static = array( 6 7 array('array'), 7 8 'str' 8 9 ); 10 /** doc */ 9 11 static public $public_static = array(2, 'str'); 12 /** doc */ 10 13 static private $private_static = array(2, 'str'); 14 /** doc */ 11 15 static protected $protected_static = array(2, 'str'); 16 /** doc */ 12 17 public $property = array( 13 18 array('array'), 14 19 'str' 15 20 ); 21 /** doc */ 16 22 public $public_property = array(2, 'str'); 23 /** doc */ 17 24 private $private_property = array(2, 'str'); 25 /** doc */ 18 26 protected $protected_property = array(2, 'str'); 19 27 28 /** doc */ 20 29 public function __construct($a, $b) 21 30 { 22 31 } 23 32 24 function method(ClassName $a = null, $b = null) 33 /** doc */ 34 public function method(array $a = NULL, $b = NULL) 25 35 { 26 36 } 27 37 28 public function publicMethod(ClassName $a = null, $b = 2) 38 /** doc */ 39 public function publicMethod(ClassName $a = NULL, $b = 2) 29 40 { 30 41 } 31 42 32 protected function protectedMethod(ClassName $a, $b = array(array("array"))) 43 /** doc */ 44 protected function protectedMethod(ClassName $a, $b = array( 45 array('array') 46 )) 33 47 { 34 48 return 'protected'; 35 49 } 36 50 37 private function privateMethod(ClassName $a, $b = null) 51 /** doc */ 52 private function privateMethod(ClassName $a, $b = NULL) 38 53 { 39 54 return 'private';
Note: See TracChangeset
for help on using the changeset viewer.

