Menu

#5 PHP-GTK & php-cli.ini and extensions...

open-fixed
None
5
2010-03-01
2010-03-01
Anonymous
No

(from http://sourceforge.net/projects/devphp/forums/forum/182375/topic/3568165\)

In Windows environment (Win2K) I installed the PHP-GTK.201 (PiGii 009.Huge) and created a new project using the php-cli.ini for Options | General Options php.ini (Dev-PHP 2.4.0). Menu selection Run | Run PHP-GTK did print out my Hello World in the log box but also reported an error saying it could not load php_pgsql.dll (a library for PostgresSQL database):
< PHP Warning: PHP Startup: Unable to load dynamic library './ext\php_pgsql.dll' - The specified module could not be found.
< in Unknown on line 0
Spotting the mixed types of slashes in the path, I changed the extension_dir= line in php-cli.ini so that instead of "./ext" it reads ".\ext". Still failed on loading the php_pgsql.dll, even though the file is actually included in the extension directory and the file properties look okay. So, I commented out the extension in the ini using a semicolon:

;extension=php_pgsql.dll

Now, there was no error when I ran my php script.

As a curiosity I changed ".\ext" back to "./ext" and my php script still ran.
So, apparently, it found the other extensions, like the MySQL extension, but I don't have a PostgresSQL database dynamic link library.

Discussion

  • Pierre Fauconnier

    Actually, pgsql driver needs SSL libraries.

    This issue has been fixed thanks to Kajei.

    SVN updated: rev.012

     
  • Pierre Fauconnier

    • assigned_to: nobody --> pf18387
    • status: open --> open-fixed
     
MongoDB Logo MongoDB