"There is no spoon" or: Unexpected error 0xdeadbeef in PHP -
I have some PHP code, listed below. I have a trap that tells that if the data does not match any test of input code ("no spoon is there", it says, cautious, what?).
The problem occurs when the data - which is not unusual in any way that I can see , and for that matter, it is similar to the other data that this trap Avoid - does match any test in any way it makes it in any way. And of course, the "unexpected error" error outputs the data that was input, just to make sure. As far as I can tell, there is nothing wrong with that input data.
First of all, there is output, which can be a bit easier to understand:
For customer XXXXXXXXXXXX, DED 2010-01, the bill has already been sent to XXXXX2515 database before continuing Removing the last billing from this DID is a toll free number hence the trunk: 0.05 DID XXXXXX2515 starting billing for trancreate: 0.05 type: TFN 2010-01-22 15:45:15: Bilkax: 22bill Pisces: 1 source : XXXXXX0808 Destination: XXXXXX2515 Error 34: There is no spoon. Source: XXXXXX0808 Destination: XXXXXX2515 was: XXXXXX2515 Type: TFN 2010-01-12 14:49:41: Bilkax: 55 Biliman: 1 Source: 0000000000 Destination: XXXXXX2515 Error 34: No spoon. Source: 0000000000 Destination: XXXXXX2515 was: XXXXXX2515 Type: TFN 2010-01-12 11:46:45: BillCops: 6 Bill Pisces: 1 Source: XXXXXX8689 Destination: XXXXXX2515 Error 34: No spoon. Source: XXXXXX8689 Destination: XXXXXX2515 What did: XXXXXX2515 Type: TFN 2010-01-08 12:56:57: Billill: 610 Bill Mean: 11 Source: XXXXXX2515 Destination: 1XXXXXX0798 Error 34: No spoon. Source: XXXXXX2515 Destination: 1XXXXXX0798: XXXXXX2515 Type: TFN 2010-01-07 11:01:49: Bilkax: 17 Biliman: 1 Source: XXXXXX2515 Destination: 0XXXXXXXXX41022 Error 34: No spoon. Source: XXXXXX2515 Destination: 011XXXXXXX41022 What: XXXXXX2515 Type: TFN 2010-01-05 11:20:24: Bilkax: 7 Bleman: 1 Source: XXXXXX0928 Destination: XXXXXX2515 Error 34: No spoon. Source: XXXXXX0928 Destination: XXXXXX2515 was: XXXXXX2515 Type: TFN
And, with code:
// If the call is coming, simply charge the trunk rate If ($ this call ['dst'] == $ done & $ type == "IXA") {$ ldrate = 0; $ Location = "British Columbia"; $ Calltype = "NALD"; If ($ debug) print "incoming call for IX trunk" Incoming call for \ N "; // TFNs} otherwise ($ it calls ['dst'] == $ & amp; $ type ==" TFN ") {$ ldrate = 0; $ location =" toll free "; $ Calltype =" NALD "; // If call is outgoing, check to see if it is local) elseif ($ thisCall ['src'] == $) {// if outgoing call If this is local, then just charge the trunk rate // In this case, Src is our client, if the DST is the remote end (Call ['src'], call $ $ this call ['dst']) {$ Ldrate = 0; $ location = "British Columbia"; $ Ca Lltype = "NALD";} // If the outgoing call is a long distance, get the rate from the database {$ ratearrate = getRate ($ thisCall ['dst']); $ Ldrate = $ crack ['ldrate']; $ location $$ ['location']; $ call type = $ crack ['call type']; if ($ debug) print "alditer: $ ldrate, location: $ location, call type: $ call type \ n"; }} And {print} "Error 34: There is no spoon. Source: "$ this call ['src']" destination: ". $ ThisCall ['dst']; print" was: $ $ type: $ type \ n "; continue;} < / Code>
I would rather use the content instead of the print instead of print There is a leading / trailing spaces left by you.
else {print "Error 34: There is no spoon. Print "destination ="; var_dump ($ thisCall ['DST']); print "done ="; var_dump ($ done); \ "" print "source ="; var_dump ($ thisCall ['src']); Print "type ="; var_dump ($ type); continue;}
Comments
Post a Comment