php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7381 Connect to postgres -> weirdness
Submitted: 2000-10-21 16:36 UTC Modified: 2001-01-09 01:05 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: mdagosta at earthtribe dot net Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 4.0.3pl1 OS: OpenBSD
Private report: No CVE-ID: None
 [2000-10-21 16:36 UTC] mdagosta at earthtribe dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-07 13:03 UTC] derick@php.net
Does this still happen with 4.0.4?

 [2001-01-09 01:05 UTC] derick@php.net
User reporting that this problem was solved by installing a new version of OpenSSL



Closing
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 20:01:29 2024 UTC