PHP 4.0 Bug #7381 Updated: Connect to postgres -> weirdness
| From: | derick@php.net | Date: | Sun, 07 Jan 2001 18:03:21 +0000 |
| Subject: | PHP 4.0 Bug #7381 Updated: Connect to postgres -> weirdness | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-43260@lists.php.net to get a copy of this message | ||
ID: 7381
Updated by: derick
Reported By: mdagosta@earthtribe.net
Old-Status: Open
Status: Feedback
Bug Type: PostgreSQL related
Assigned To:
Comments:
Does this still happen with 4.0.4?
Previous Comments:
---------------------------------------------------------------------------
[2000-10-21 16:36:01] mdagosta@earthtribe.net
Environment
-----------
PHP 4.0.3pl1, PHP 4.0.2 (tried both)
OpenBSD 2.7
Apache 1.3.12 (that ships with OpenBSD 2.7) (with SSL)
Postgres 7.0.2
Browsing from:
Windows 2000
Internet Explorer 5.0
Netscape Communicator 4.75
Script that breaks apache or php.
---------------------------------
<html>
<head><title>PHP/Apache Bails</title></head>
<body>
Test<br>
<?php $conn = dbConnect("dbname=test"); ?>
After Test<br>
</body>
</html>
php.ini
-------
I just copied php.ini-dist to php.ini (it's unmodified)
./configure
-----------
'./configure' '--prefix=/usr/local/php' '--with-apxs'
'--without-mysql' '--with-pgsql=/usr/local/pgsql'
Other Info
----------
In postgres, I set all the permissions for the web browser to be able to connect to the database.
Symptoms
--------
Both netscape and microsoft browsers say the page is unavailable. Sometimes IE says that
"something strange happened" with no useful error message and serves up a blank page.
PHP works fine without the pg_pconnect().
Workaround
----------
Install apache-1.3.14 from scratch
Install php from scratch as a static module (not DSO)
You'll be able to connect to the database no problem.
Why's it a problem? I haven't been able to get SSL and PHP to run at the same time on any
setup besides the apache that ships with OpenBSD, but then the database doesn't work.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7381