예제 #1
0
 public function setProperty($name, Zval $value)
 {
     if (isset($this->properties[$name])) {
         $this->properties[$name]->assignZval($value->getZval());
     } else {
         $this->properties[$name] = Zval::ptrFactory($value->getZval());
     }
 }
예제 #2
0
 public function defineConstant($name, Zval $value)
 {
     $this->constants->register($name, $value->getZval());
 }