Re: PHP 5.4.11 warnings - how to make them go away ?
| From: | marco@behnke.biz | Date: | Mon, 11 Feb 2013 15:02:56 +0000 |
| Subject: | Re: PHP 5.4.11 warnings - how to make them go away ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-320190@lists.php.net to get a copy of this message | ||
Paul Lanken <lanken.paul@gmail.com> hat am 11. Februar 2013 um 14:27
geschrieben:
> I ran a quick mysql_connect test using the php 5.4.11 cli and was met
> with many annoying warnings :
>
> $ php -r "mysql_connect( \"localhost\", \"username\",
> \"password\" )
> or die(\"Unable to connect to MySQL\"); echo \"Connected to
> MySQL\\n\";" 2>&1 | cat -n -
> 1 PHP Warning: PHP Startup: Unable to load dynamic library
> '/usr/local/lib/php/extensions/gd.so' - ld.so.1: php: fatal:
> /usr/local/lib/php/extensions/gd.so: open failed: No such file or
> directory in Unknown on line 0
> 2 PHP Warning: PHP Startup: Unable to load dynamic library
> '/usr/local/lib/php/extensions/gettext.so' - ld.so.1: php: fatal:
> /usr/local/lib/php/extensions/gettext.so: open failed: No such file or
> directory in Unknown on line 0
> 3 PHP Warning: PHP Startup: Unable to load dynamic library
> '/usr/local/lib/php/extensions/ldap.so' - ld.so.1: php: fatal:
> /usr/local/lib/php/extensions/ldap.so: open failed: No such file or
> directory in Unknown on line 0
> 4 PHP Warning: PHP Startup: Unable to load dynamic library
> '/usr/local/lib/php/extensions/mcrypt.so' - ld.so.1: php: fatal:
> /usr/local/lib/php/extensions/mcrypt.so: open failed: No such file or
> directory in Unknown on line 0
> 5 PHP Warning: PHP Startup: Unable to load dynamic library
> '/usr/local/lib/php/extensions/mhash.so' - ld.so.1: php: fatal:
> /usr/local/lib/php/extensions/mhash.so: open failed: No such file or
> directory in Unknown on line 0
> 6 PHP Warning: PHP Startup: Unable to load dynamic library
> '/usr/local/lib/php/extensions/mysql.so' - ld.so.1: php: fatal:
> /usr/local/lib/php/extensions/mysql.so: open failed: No such file or
> directory in Unknown on line 0
> 7 PHP Warning: PHP Startup: Unable to load dynamic library
> '/usr/local/lib/php/extensions/mysqli.so' - ld.so.1: php: fatal:
> /usr/local/lib/php/extensions/mysqli.so: open failed: No such file or
> directory in Unknown on line 0
> 8 Connected to MySQL
>
> So I am happy with the final line but annoyed by the seven previous.
> There seems to be no need for gd.so or any of the other dynamic libs
> that are being searched for. Not sure why these messages are
> happening and I looked in /usr/local/lib/php.ini where I see this :
>
> ; Directory in which the loadable extensions (modules) reside.
> extension_dir = "/usr/local/lib/php/extensions"
>
>
> Seems reasonable. However I do not need mysql.so because the php
> binaries were linked with -lmysqlclient.
>
> So how to get rid of these warnings ?
remove the loading entries from php.ini or from you /etc/php5/conf.d directory
>
> Paul
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
Marco Behnke
Dipl. Informatiker (FH), SAE Audio Engineer Diploma
Zend Certified Engineer PHP 5.3
Tel.: 0174 / 9722336
e-Mail: marco@behnke.biz
Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal
http://www.behnke.biz