当在一个function中new一个包含__destruct的对象时,如果__destruct中exit; 将导致function return value失效.
function __destruct() {
$this->isFinalized = true;
$cd = null;
$this->cdRec = null;
//exit;
}
当在一个function中new一个包含__destruct的对象时,如果__destruct中exit; 将导致function return value失效.
function __destruct() {
$this->isFinalized = true;
$cd = null;
$this->cdRec = null;
//exit;
}