function __destruct(){
echo "Destroying" . $this->name . "\n";
}
此处意思是析构了$name这个属性吗?然后就是有析构方法这一说吗?比如:
echo "Destroying" . $this->run( ) . "\n";
弄反了,是这个对象结束时自动用析构函数,输出$name属性只有为了看到这函数被调用,不然是看不到任何输出的