kevin-xw / rock-php

Automatically exported from code.google.com/p/rock-php
0 stars 0 forks source link

Warnings in function h #213

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
rockmongo 1.1.2, lots of errors for function h in app\funcs\rock.php line ~126

Changed function h to below code to fix:

function h($var) {
    if(is_string($var) || is_int($var) || is_bool($var) || is_double($var)){
        echo $var;
    }
    else if(is_array($var)){
        echo print_r($var);
    }
    else if(!is_null($var)){
        echo $var.' '.get_class($var);
    }
}

Original issue reported on code.google.com by Maximili...@gmail.com on 18 Jul 2012 at 4:51

GoogleCodeExporter commented 9 years ago
Fixed in git repository, you can download latest build from 
    https://github.com/iwind/rockmongo/archive/master.zip 
or clone source from
   https://github.com/iwind/rockmongo.git

Original comment by iwind....@gmail.com on 25 Nov 2012 at 3:19