Bug #65476 [Com]: php_gettext.dll will not load
| From: | mastermnd at gmail dot com | Date: | Mon, 19 Aug 2013 10:36:12 +0000 |
| Subject: | Bug #65476 [Com]: php_gettext.dll will not load | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-180993@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65476&edit=1
ID: 65476
Comment by: mastermnd at gmail dot com
Reported by: mastermnd at gmail dot com
Summary: php_gettext.dll will not load
Status: Feedback
Type: Bug
Package: Dynamic loading
Operating System: Windows 7 x64
PHP Version: 5.5.2
Block user comment: N
Private report: N
New Comment:
My apologies, apparently some 3rd party program installed 32bit gettext libraries under some path
under c:\windows which was taking precedence in the path. FastCGI had no problems because it
redefines its own variables instead of relying on those set by windows. I created a new user and
hardcoded its PATH and everything worked.
Why this worked with 5.5.0 and not with 5.5.[1-2] makes absolutely no sense to me, but there you
have it.
Please close this ticket.
Regards
Previous Comments:
------------------------------------------------------------------------
[2013-08-19 08:43:38] pajoye@php.net
I do not want to ignore it but can't really help with setup questions.
Tested TS-x64:
C:\temp\5.5.2tsx64>php -d extension_dir=ext -d extension=php_gettext.dll -m
[PHP Modules]
bcmath
calendar
Core
ctype
date
dom
ereg
filter
ftp
gettext
hash
iconv
json
libxml
mcrypt
mhash
mysqlnd
odbc
pcre
PDO
Phar
Reflection
session
SimpleXML
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib
Something is wrong in your setup, maybe some incompatible DLLs are being 1st in
the PATH. Can you try in CLI as well please?
------------------------------------------------------------------------
[2013-08-19 08:29:45] mastermnd at gmail dot com
By the way, I just redownloaded 5.5.0, and using exactly THE SAME config, gettext loads fine.
It's definitely a problem in 5.5.1 and 5.5.2
Up to you if you prefer to ignore it.
------------------------------------------------------------------------
[2013-08-19 08:25:07] mastermnd at gmail dot com
Sorry but if you are running the command from
C:\temp\5.5.2nts> you probably haven't read my report carefully.
My path is set up correctly, since all other extensions load fine, and so is my config. Previous
versions of PHP were loading the extesion just fine too. If i change both apache and php to 32-bit,
the extension also loads. It's only 64bit *thread-safe* (mod-php) that shows this behaviour.
------------------------------------------------------------------------
[2013-08-19 07:53:29] pajoye@php.net
works just fine.
C:\temp\5.5.2nts>php -d extension_dir=ext -d extension=php_gettext.dll -m
[PHP Modules]
bcmath
calendar
Core
ctype
date
dom
ereg
filter
ftp
gettext
hash
iconv
json
libxml
mcrypt
mhash
mysqlnd
odbc
pcre
PDO
Phar
Reflection
session
SimpleXML
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib
Be sure to have set your php.ini path correctly, as well as the PATH variable
(so all required DLL can be loaded as well).
------------------------------------------------------------------------
[2013-08-19 07:37:22] mastermnd at gmail dot com
Description:
------------
I am on Windows 7 x64 Ultimate, running Apache 2.4.6 VC11 x64 from the apache lounge with PHP 5.5.2
x64 TS from windows.php.net. With PHP versions 5.5.1 and 5.5.2, I get the following error when
starting:
PHP Warning: PHP Startup: Unable to load dynamic library
'C:\\php\\bin\\ts\\ext\\php_gettext.dll' - The specified module could not be found.\r\n in
Unknown on line 0
Needless to say, the DLL exists in the right path, permissions are ok [other modules work fine!]
If I load alternative config files and start PHP 5.5.2 x64 NTS with mod_fcgi 2.3.7, then
php_gettext.dll loads fine.
I am reporting this because I suspect there is a compilation or packaging issue with the TS version.
Alternatively, the DLL might have a new dependency that i'm not aware of? iconv.dll or similar
that is missing?
Regards.
Test script:
---------------
I am using a copy of php-production.ini with the following modules list (in this order):
zend_extension="C:\php\bin\ts\php_xdebug-2.2.3-5.5-vc11-x86_64.dll"
extension=php_mbstring.dll
extension=php_bz2.dll
extension=php_curl.dll
extension=php_fileinfo.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_openssl.dll
extension=php_pdo_mysql.dll
extension=php_soap.dll
Expected result:
----------------
I should be able to load the module but I can't.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65476&edit=1