function __set($var, $value) { if (!isset($this->packagename)) { throw new \PEAR2\Pyrus\Registry\Exception('Attempt to retrieve ' . $var . ' from unknown package'); } \PEAR2\Pyrus\PackageFile\v2::__set($var, $value); // occasionally, this next line will result in failure to install when incomplete data is there, // so we silently skip the save, and mark the packagefile as dirty try { $this->reg->replace($this); $this->dirty = false; } catch (\PEAR2\Pyrus\Registry\Exception $e) { $this->dirty = true; } }
function __set($var, $value) { if (!isset($this->packagename)) { throw new \PEAR2\Pyrus\Registry\Exception('Attempt to retrieve ' . $var . ' from unknown package'); } parent::__set($var, $value); $this->reg->replace($this); }