Arquivos
hhvm/hphp/test/quick/non-special-this.php
T
ptarjan 503f75d08b Rename test directories
These names don't make sense now that we run both suites the same
way.
2013-04-17 09:06:51 -07:00

24 linhas
337 B
PHP

<?php
class Glub {
public function twee() {
// $zzz should be the only local with an id
$zzz = $this->twoo;
return $zzz;
}
}
function gurgle($g) {
switch ($g->twee()) {
case 1:
echo "wtf??\n";
break;
}
extract(array('this' => 43));
var_dump($this);
}
$g = new Glub();
$g->twoo = 2;
gurgle($g);