public static bool is_resource(PhpValue variable) { //PhpResource res = variable as PhpResource; //return res != null && res.IsValid; throw new NotImplementedException(); }