From: twilightthorn dot kh at gmail dot com
Operating system: Vista Business
PHP version: 5.2.6
PHP Bug Type: PostgreSQL related
Bug description: PGSQL seems to crash apache.
Description:
------------
As far as I can tell any successful call to a database, local or on an
external server, will crash apache.
I'm using a WAMP2.0c setup using PHP5.2.5 on vista and it did work fine
until I added the PHP Postgre extension.
I do know that the extension is up-to-date, and have in fact even tried to
replace it with the one used in PHP5.2.6, it also fails and crashes the
server.
Without the extension loaded, PHP/apache will output all errors and any
other processing messages before the PG_Connect() call, upon which
processing halts.
The system event log refers to ntdll.dll on this crash, but I don't really
know why. This does sound an aweful lot like an Apache bug, but it only
occurs when PHP's Postgre extension is loaded and the pg_connect();
function is called.
Best regards, and thanks.
Thomas.
Reproduce code:
---------------
<?php
//...
$link = pg_connect("host=localhost port=5432 dbname=public user=postgres
password=PASS") or op_err('Con');
//...
?>
Expected result:
----------------
A successful database call and web-page out put.
Actual result:
--------------
I get a pop-up message telling me HTTPD.EXE has stopped working.
This is the information logged in the system by its failure:
------------------
Faulting application httpd.exe, version 2.2.8.0, time stamp 0x47904924,
faulting module ntdll.dll, version 6.0.6000.16386, time stamp 0x4549bdc9,
exception code 0xc00000fd, fault offset 0x00061635, process id 0x1174,
application start time 0x01c8e628c7166890.
------------------
There are no other entries in my PHP or Apache error logs.
--
Edit bug report at http://bugs.php.net/?id=45516&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=45516&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=45516&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=45516&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45516&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=45516&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45516&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45516&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45516&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45516&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45516&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=45516&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=45516&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45516&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45516&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45516&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45516&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45516&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45516&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45516&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45516&r=mysqlcfg