Ignore:
Timestamp:
2011-04-17T13:03:00+02:00 (3 years ago)
Author:
moo
Message:

Decompiler: simple cover test, make sure all opcode is tested

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/decompilesample.php

    r760 r761  
    206206$a = $b xor $c; 
    207207$a = !$b; 
     208$a = $b === $c; 
     209$a = $b !== $c; 
     210$a = $b << 2; 
     211$a = $b >> 3; 
     212$a += $b; 
     213$a -= $b; 
     214$a *= $b; 
     215$a /= $b; 
     216$a <<= $b; 
     217$a >>= $b; 
     218$a &= $b; 
     219$a |= $b; 
     220$a .= $b; 
     221$a %= $b; 
     222$a ^= $b; 
     223$a = 'a' . 'b'; 
     224$a = 'a' . 'abc'; 
     225@f1(); 
     226print('1'); 
     227ref(&$a); 
     228$a = $array['index']; 
     229$a = $object->prop; 
     230$a = $this->prop; 
     231$array['index'] = 1; 
     232$object->prop = 1; 
     233$this->prop = 1; 
     234$a = isset($b); 
     235$a = empty($b); 
     236$a = isset($array['index']); 
     237$a = empty($array['index']); 
     238$a = isset($object->prop); 
     239$a = empty($object->prop); 
     240$a = isset($this->prop); 
     241$a = empty($this->prop); 
     242$a = (int) $b; 
     243$a = (double) $b; 
     244$a = (string) $b; 
     245$a = (array) $b; 
     246$a = (object) $b; 
     247$a = (bool) $b; 
     248$a = (unset) $b; 
     249$a = (array) $b; 
     250$a = (object) $b; 
     251// PHP6+ $a = (scalar) $b; 
    208252$a = $b ? $c : $d; 
    209253$a = f1() ? f2() : f3(); 
     
    323367}; 
    324368// */ 
     369exit(); 
    325370 
    326371?> 
Note: See TracChangeset for help on using the changeset viewer.