在下面的代码中,如果我取消注释print语句,代码工作正常..打印'11'但在注释后显示内存转储错误。 怎么可能...... php版本5.5.9
public static function checkFinalLayerConditions($profileObj,$layerToShow,$interestsPending,$getTotalLayers) {
$profileid = $profileObj->getPROFILEID();
$picObj= new PictureService($profileObj);
$havePhoto= $picObj->isProfilePhotoPresent();print($layerToShow);
while (1) { //print($layerToshow);
if ($layerToShow) {
$show = 0;print($layerToShow); die();
switch ($layerToShow) {
case '1': if ($havePhoto == null)
$show=1;
break;
case '2': if ($profileObj->getDetail("","","FAMILYINFO")[FAMILYINFO]=='')
$show=1;
break;
case '3': if ($interestsPending > 0)
$show=1;
break;
default : break;
}