php - Pear Auth package -


reading larry ullman's php 5, told install pear auth package , pear db.

according pear website, db package has been deprecated in favor of mdb2. installed latter (mdb2) package.

i'm getting warning when run program.

fatal error: class 'db' not found in /users/michaelmitchell/pear/share/pear/auth/container/db.php on line 150 

i'm not sure if have done wrong (if so, what?) or if auth package somehow referring deprecated db class, or else?

the third line below if (!db::isconnection($this->db) line 150 of db.php. can help?

 function _prepare()     {         if (!db::isconnection($this->db)) {             $res = $this->_connect($this->options['dsn']);             if (db::iserror($res) || pear::iserror($res)) {                 return $res;             }         }         if ($this->options['auto_quote'] && $this->db->dsn['phptype'] != 'sqlite') {             if (strpos('.', $this->options['table']) === false) {                 $this->options['final_table'] = $this->db->quoteidentifier($this->options['table']);             } else {                 $t = explode('.', $this->options['table']);                 ($i = 0, $count = count($t); $i < $count; $i++)                     $t[$i] = $this->db->quoteidentifier($t[$i]);                 $this->options['final_table'] = implode('.', $t);             }             $this->options['final_usernamecol'] = $this->db->quoteidentifier($this->options['usernamecol']);             $this->options['final_passwordcol'] = $this->db->quoteidentifier($this->options['passwordcol']);         } else {             $this->options['final_table'] = $this->options['table'];             $this->options['final_usernamecol'] = $this->options['usernamecol'];             $this->options['final_passwordcol'] = $this->options['passwordcol'];         }         return true;     } 

do

pear install --force --alldeps auth 

to automatically reinstall required dependencies.

in script, make sure pear in configured include_path , can found configured autoloaders and/or include required packages manually.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -