Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.3.2

Bug #14733 getLimits skip first line
Submitted: 2008-10-03 10:06 UTC
From: lampacz Assigned: shupp
Status: Closed Package: Net_Vpopmaild (version 0.3.1)
PHP Version: 5.2.6 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2008-10-03 10:06 UTC] lampacz (Michal Dvoracek)
Description: ------------ First line returned from vpopmaild is skipped due to twice reading status Test script: --------------- public function getLimits($domain) { $status = $this->sockWrite("get_limits $domain"); $status = $this->sockRead(); if (!$this->statusOk($status)) { throw new Net_Vpopmaild_Exception($status); } //$status = $this->sockRead(); $limits = $this->readInfo(); return $limits; } Expected result: ---------------- Oct 03 12:00:27 [info] sockWrite send: get_limits angelacz.info Oct 03 12:00:27 [info] sockRead Read: +OK+ Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: max_popaccounts -1 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: max_aliases 1 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: max_forwards 1 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: max_autoresponders -1 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: max_mailinglists -1 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: disk_quota 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: max_msgcount 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: default_quota 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: default_maxmsgcount 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: disable_pop 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: disable_imap 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: disable_dialup 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: disable_password_changing 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: disable_webmail 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: disable_external_relay 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: disable_smtp 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: disable_spamassassin 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: delete_spam 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: disable_maildrop 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: perm_account 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: perm_alias 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: perm_forward 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: perm_autoresponder 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: perm_maillist 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: perm_quota 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: perm_defaultquota 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: perm_defaultquota 0 Oct 03 12:00:27 [info] <<-- Start readInfo -->> Oct 03 12:00:27 [info] sockRead Read: . Oct 03 12:00:27 [info] readInfo collected: Oct 03 12:00:27 [info] Array ( [max_popaccounts] => -1 [max_aliases] => 1 [max_forwards] => 1 [max_autoresponders] => -1 [max_mailinglists] => -1 [disk_quota] => 0 [max_msgcount] => 0 [default_quota] => 0 [default_maxmsgcount] => 0 [disable_pop] => 0 [disable_imap] => 0 [disable_dialup] => 0 [disable_password_changing] => 0 [disable_webmail] => 0 [disable_external_relay] => 0 [disable_smtp] => 0 [disable_spamassassin] => 0 [delete_spam] => 0 [disable_maildrop] => 0 [perm_account] => 0 [perm_alias] => 0 [perm_forward] => 0 [perm_autoresponder] => 0 [perm_maillist] => 0 [perm_quota] => 0 [perm_defaultquota] => 0 ) Oct 03 12:00:27 [info] <<-- Finish readInfo -->> Oct 03 12:00:27 [info] sockWrite send: quit Actual result: -------------- Oct 03 11:57:55 [info] sockWrite send: get_limits domain.tld Oct 03 11:57:55 [info] sockRead Read: +OK+ Oct 03 11:57:55 [info] sockRead Read: max_popaccounts -1 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: max_aliases 1 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: max_forwards 1 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: max_autoresponders -1 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: max_mailinglists -1 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: disk_quota 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: max_msgcount 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: default_quota 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: default_maxmsgcount 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: disable_pop 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: disable_imap 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: disable_dialup 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: disable_password_changing 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: disable_webmail 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: disable_external_relay 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: disable_smtp 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: disable_spamassassin 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: delete_spam 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: disable_maildrop 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: perm_account 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: perm_alias 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: perm_forward 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: perm_autoresponder 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: perm_maillist 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: perm_quota 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: perm_defaultquota 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: perm_defaultquota 0 Oct 03 11:57:55 [info] <<-- Start readInfo -->> Oct 03 11:57:55 [info] sockRead Read: . Oct 03 11:57:55 [info] readInfo collected: Oct 03 11:57:55 [info] Array ( [max_aliases] => 1 [max_forwards] => 1 [max_autoresponders] => -1 [max_mailinglists] => -1 [disk_quota] => 0 [max_msgcount] => 0 [default_quota] => 0 [default_maxmsgcount] => 0 [disable_pop] => 0 [disable_imap] => 0 [disable_dialup] => 0 [disable_password_changing] => 0 [disable_webmail] => 0 [disable_external_relay] => 0 [disable_smtp] => 0 [disable_spamassassin] => 0 [delete_spam] => 0 [disable_maildrop] => 0 [perm_account] => 0 [perm_alias] => 0 [perm_forward] => 0 [perm_autoresponder] => 0 [perm_maillist] => 0 [perm_quota] => 0 [perm_defaultquota] => 0 ) Oct 03 11:57:55 [info] <<-- Finish readInfo -->> Oct 03 11:57:55 [info] sockWrite send: quit

Comments

 [2008-10-04 16:43 UTC] shupp (Bill Shupp)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/Net_Vpopmaild This is fixed in 0.3.2. Thanks! Bill Shupp