[PHP-DEV] Bug #4655: pg_close causes segfault when using DSO pgsql.so From: pramsey <email protected>
Date: 05/28/00

From: pramsey <email protected>
Operating system: Linux 2.2.x
PHP version: 3.0.16
PHP Bug Type: PostgreSQL related
Bug description: pg_close causes segfault when using DSO pgsql.so

The pgsql.so functions are compiled as a module thusly:

gcc -shared -fPIC $RPM_OPT_FLAGS -DEAPI -DCOMPILE_DL=1 \
        -I. -I/usr/include/apache \
        -I/usr/include/pgsql -o pgsql.so \
        ./functions/pgsql.c -lpq -lc

Most functions work fine, but when pg_close is called, the http instance segfaults. When pgsql.so is compiled directly into php with --include-pgsql the problem goes away.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>