[dev] few things

Blues blues@ds6.pg.gda.pl
Sun, 21 Jul 2002 12:39:31 +0200 (CEST)


First of all - there is needed fix for new DB-1.3 from pear. Now it fails:
Fatal error: Call to undefined function: iswarning() in
/dbase/www/htdocs/horde/lib/Prefs/sql.php on line 101


mistake:
...
          /* Connect to the SQL server using the supplied parameters. */
            include_once 'DB.php';
            $this->db = &DB::connect($this->params, true);
line 101  > if (DB::isError($this->db) || DB::isWarning($this->db)) {
                Horde::fatal($this->db, __FILE__, __LINE__);
            }

            /* Enable the "portability" option. */
            $this->db->setOption('optimize', 'portability');

            $this->_connected = true;
        }

        return true;
    }
...

isWarning function is deleted from pear now. sorry.


Next thing. Names of classes in horde. These are the same like in pear. 
This may cause some confusions when someone is writting something using 
horde and pear together.
I think that horde classes should have horde_* prefix.

I know that this changes comletelly horde API, but this should be 
standarized.

-- 
---------------------------------
pozdr.  Paweł Gołaszewski        
---------------------------------
CPU not found - software emulation...