Bug #68646 [Nab]: Cannot load pgsql extension

From: Date: Thu, 25 Dec 2014 11:51:54 +0000
Subject: Bug #68646 [Nab]: Cannot load pgsql extension
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189195@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68646&edit=1 ID: 68646 Updated by: ab@php.net Reported by: tony at marston-home dot demon dot co dot uk Summary: Cannot load pgsql extension Status: Not a bug Type: Bug Package: PostgreSQL related Operating System: Windows 7 PHP Version: 5.6.4 Block user comment: N Private report: N New Comment: Also, from what i see in the bug #68645 - ext with different SAPI, and - as you told you was doing an overwrite. That probably something on shouldn't do. Yes, you might be able reuse the php.ini (but check also), but don't do overwrite - replace the dir. I'd advise you to start from backing up your old f:\php5 and extracting new fresh zipball, then putting the old/revisited php.ini in there. Thanks. Previous Comments: ------------------------------------------------------------------------ [2014-12-25 11:44:41] ab@php.net With this you see that the pgsql ext itself isn't broken. You need to revisit your configuration under Apache. Please note, that Apache does chroot away from the php dir. So check what you have on the %path% when Apache starts. Also ensure that php.ini has correct path to the extension_dir. Thanks ------------------------------------------------------------------------ [2014-12-25 10:47:46] tony at marston-home dot demon dot co dot uk This is the output I get from that command: Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. F:\PHP5>php -n -d extension_dir=ext -d extension=php_pgsql.dll -m [PHP Modules] bcmath calendar Core ctype date dom ereg filter ftp hash iconv json libxml mcrypt mhash mysqlnd odbc pcre PDO pgsql Phar Reflection session SimpleXML SPL standard tokenizer wddx xml xmlreader xmlwriter zip zlib [Zend Modules] F:\PHP5> The pgsql extension is still not showing in phpinfo(). ------------------------------------------------------------------------ [2014-12-24 17:29:36] ab@php.net Ok, so this is checked. Please do the following cd <5.6 folder path> php -n -d extension_dir=ext -d extension=php_pgsql.dll -m do you see the pgsql ext loading? Thanks. ------------------------------------------------------------------------ [2014-12-24 15:12:54] tony at marston-home dot demon dot co dot uk No, I did not edit the wrong php.ini file. I did not edit any file at all as I already had a working PHP installation. All I did was overwrite my 5.5.18 installation with the files for 5.6.4, and the pgsql extension simply stopped working. ------------------------------------------------------------------------ [2014-12-24 13:00:30] ab@php.net @tony at marston-home dot demon dot co dot uk, it doesn't really help to open a new ticket if you gave no feedback in the previous one. Please check what requinix was asking you there, then lets see further. Thanks. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=68646 -- Edit this bug report at https://bugs.php.net/bug.php?id=68646&edit=1

« previous php.bugs (#189195) next »