Dear All help!
I have a huge project and way down in the chain of class->fucntions->functions..... etc I have a call to a function with 6 variables, the last 2 are passed by reference. now i know this has been working and i have no idea why its stopped. Now i can debug out the calculated data before the function exit and it looks fine, but back in the calling program the fields are empty?!?
function fn_get_tax_rate($p_class_id, $p_cust_id=NULL,
$p_country_id=NULL, $p_zone_id=NULL, &$p_rtn_tax_rate, &$p_rtn_tax_code_id) {
.
.
.
//die($p_rtn_tax_rate, $p_rtn_tax_code_id);
return $rtn;
}
.
.
$tmp = fn_get_tax_rate( $tax_id, $customers_id,
$tax_country_id, $zone, $rate, $tax_rate_id);
die( $rate, $tax_rate_id); <- empty
what is worse, if i do a direct assign of data into the variables this data is returned :bemused:
function fn_get_tax_rate($p_class_id, $p_cust_id=NULL,
$p_country_id=NULL, $p_zone_id=NULL, &$p_rtn_tax_rate, &$p_rtn_tax_code_id) {
.
.
.
$p_rtn_tax_rate=1.175;
$p_rtn_tax_code_id=1;
return $rtn;
}
.
.
$tmp = fn_get_tax_rate( $tax_id, $customers_id,
$tax_country_id, $zone, $rate, $tax_rate_id);
die( $rate, $tax_rate_id); <- fine
Has anyone else ever had this...Please save me from going mad...
OH Ps Im testing this on WinXP, Apache/2.0.54 (Win32) mod_ssl/2.0.54 OpenSSL/0.9.7g PHP/5.0.4
[/SIZE]