diff options
author | Hans Duedal <hd@onlinecity.dk> | 2011-10-05 09:49:10 +0200 |
---|---|---|
committer | Hans Duedal <hd@onlinecity.dk> | 2011-10-05 09:49:10 +0200 |
commit | d4620c74778ccf1765c1bd352aab3f6ab41bdea0 (patch) | |
tree | 186fccdf8426d87a176203abbf85030b5c880c55 | |
parent | 4f0636332875cb5ee9268bfdd489f8e2a5127f83 (diff) | |
download | php-smpp-d4620c74778ccf1765c1bd352aab3f6ab41bdea0.zip php-smpp-d4620c74778ccf1765c1bd352aab3f6ab41bdea0.tar.gz php-smpp-d4620c74778ccf1765c1bd352aab3f6ab41bdea0.tar.bz2 |
Bugfixes for queryStatus
-rw-r--r-- | smppclient.class.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/smppclient.class.php b/smppclient.class.php index 1e35fcf..52982aa 100644 --- a/smppclient.class.php +++ b/smppclient.class.php @@ -166,10 +166,10 @@ class SmppClient if ($h || $i || $s) $spec .= 'T'; if ($h) $spec .= $h.'H'; if ($i) $spec .= $i.'M'; - if ($s) $spec .= $i.'S'; + if ($s) $spec .= $s.'S'; return new DateInterval($spec); } else { - return strtotime("+$y year +$m month +$d day +$h hour +$i minute $s second"); + return strtotime("+$y year +$m month +$d day +$h hour +$i minute $s +second"); } } else { $offsetHours = floor($n/4); @@ -187,6 +187,8 @@ class SmppClient * Query the SMSC about current state/status of a previous sent SMS. * You must specify the SMSC assigned message id and source of the sent SMS. * Returns an associative array with elements: message_id, final_date, message_state and error_code. + * message_state would be one of the SMPP::STATE_* constants. (SMPP v3.4 section 5.2.28) + * error_code depends on the telco network, so could be anything. * * @param string $messageid * @param SmppAddress $source |