'while' statement showing strange behaviour in php -


in following code if uncomment print statement code works fine.. prints '11' after commenting shows error of memory dump. how possible... php version 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;         } 


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -