[kronolith] Fwd: [dev] Re: [cvs] commit: kronolith/docs CHANGES kronolithday.php menu.phpmonth.php prefs.php week.php workweek.php kronolith/graphics private.gif public.gif

Marc G. Fournier scrappy@hub.org
Thu, 5 Sep 2002 01:26:52 -0300 (ADT)


On Wed, 4 Sep 2002, Chuck Hagenbuch wrote:

> Quoting "Marc G. Fournier" <scrappy@hub.org>:
>
> > Okay, for starters, it looks like pear (both the standalone
> > pear-devel-4.1.0 and the one in php 4.2.2) are still using deprecated
> > pgsql/php functions:
>
> Hmm. Those are rather old; why would you be using them with versions of PHP
> which deprecate pg_exec? Use a PEAR that matches your PHP version...

That's kinda my point :(

>From php-4.2.2/pear/DB/pgsql.php:

        $result = pg_exec($this->connection, "SELECT f.attnotnull, f.atthasdef
                                FROM pg_attribute f, pg_class tab, pg_type typ
                                WHERE tab.relname = typ.typname
                                AND typ.typrelid = f.attrelid
                                AND f.attname = '$field_name'
                                AND tab.relname = '$table_name'");

the version of pear that comes with PHP4.2.2 is *severely* damaged as
well, missing pear functions that Horde requires (or, at least, it did the
last time I tried to use pear from php4) ... for instance:

pluto# ls -lt pear-4.1.0/Log
total 24
-rw-r--r--  1 1000  1000  3163 Dec 11  2001 composite.php
-rw-r--r--  1 1000  1000  2747 Dec 11  2001 file.php
-rw-r--r--  1 1000  1000  3534 Dec 11  2001 mcal.php
-rw-r--r--  1 1000  1000  2897 Dec 11  2001 Observer.php
-rw-r--r--  1 1000  1000  3286 Dec 11  2001 sql.php
-rw-r--r--  1 1000  1000  2410 Dec 11  2001 syslog.php
pluto# ls -lt php-4.2.2/pear/Log
ls: php-4.2.2/pear/Log: No such file or directory

And, from reading the PEAR FAQ, it appears to be intentional?

http://pear.php.net/manual/en/faq.separated.php

Or have I missed something?