- Timestamp:
- 2011-04-17T07:31:08+02:00 (2 years ago)
- File:
-
- 1 edited
-
trunk/Decompiler.class.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Decompiler.class.php
r753 r754 267 267 $dim->value = $this->src; 268 268 if (!isset($dim->assign)) { 269 return foldToCode($dim, $indent);270 } 271 return foldToCode($this->dims[0]->assign, $indent) . ' = ' . str($dim, $indent);269 return str($dim, $indent); 270 } 271 return str($this->dims[0]->assign, $indent) . ' = ' . str($dim, $indent); 272 272 } 273 273 /* flatten dims */ … … 280 280 $assign = foldToCode($dim->assign, $indent); 281 281 } 282 return $this->toList($assigns) . ' = ' . str($this->src, $indent);282 return str($this->toList($assigns)) . ' = ' . str($this->src, $indent); 283 283 } 284 284 … … 1104 1104 if (is_a($rvalue, 'Decompiler_Fetch')) { 1105 1105 $src = str($rvalue->src, $EX); 1106 if ( substr($src, 1, -1) == substr($lvalue, 1)) {1106 if ('$' . unquoteName($src) == $lvalue) { 1107 1107 switch ($rvalue->fetchType) { 1108 1108 case ZEND_FETCH_GLOBAL: … … 1113 1113 $statics = &$EX['op_array']['static_variables']; 1114 1114 $resvar = 'static ' . $lvalue; 1115 $name = substr($src, 1, -1);1115 $name = unquoteName($src); 1116 1116 if (isset($statics[$name])) { 1117 1117 $var = $statics[$name]; 1118 var_dump(str(value($statics))); 1118 1119 $resvar .= ' = '; 1119 1120 $resvar .= str(value($var), $EX); … … 1126 1127 } 1127 1128 // TODO: PHP_6 global 1128 $rvalue = foldToCode($rvalue, $EX);1129 $rvalue = str($rvalue, $EX); 1129 1130 $resvar = "$lvalue = &$rvalue"; 1130 1131 break;
Note: See TracChangeset
for help on using the changeset viewer.

