<?php
$cache = new cache();
echo $cache->getcache('test.php');
?>
<?php
class cache extends saemc{
var $db;
function cache(){
$this->db=$db;
}
function getcache($cachename){
return $this->getvalue($cachename);
}
?>
<?php
class saemc {
static $handler;
protected function getvalue($filename) {
$content = $this->handler->get($filename);//this incorrect line
......
}
?>
为什么$ handler使用“static”修饰符,但是$ this-&gt;处理程序仍然是非对象?