pval *resource_id; RESOURCE *resource; int type; convert_to_long(resource_id); resource = php3_list_find(resource_id - value.lval, type); if (type != LE_RESOURCE_TYPE) {php3_error(E_WARNING ,"resource index %d has the wrong type",resource_id - value.lval); RETURN_FALSE;} / * ...use resource... * /
pval *resource_id; RESOURCE *resource; int type; convert_to_long(resource_id); resource = php3_list_find(resource_id - value.lval, type); if (type != LE_RESOURCE_TYPE) {php3_error(E_WARNING ,"resource index %d has the wrong type",resource_id - value.lval); RETURN_FALSE;} / * ...utiliser la ressource... * /