php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48184 Missing extensions and so
Submitted: 2009-05-07 18:31 UTC Modified: 2009-05-07 22:47 UTC
From: tyra3l at gmail dot com Assigned: pajoye (profile)
Status: Closed Package: Dynamic loading
PHP Version: 5.3.0RC2 OS: win32 only - Windows XP SP3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tyra3l at gmail dot com
New email:
PHP Version: OS:

 

 [2009-05-07 18:31 UTC] tyra3l at gmail dot com
Description:
------------
Problems with the default php extensions in the example php.ini.*





Reproduce code:
---------------
Try to enable the modules.

Expected result:
----------------
We should only have the shipped extensions in the php.ini by default, 
and every module should be working (which doesn't have some 3rd party 
dependency)

Actual result:
--------------
php_curl.dll => missing zlib.dll
php_dba.dll => missing
php_exif.dll => missing php_mbstring.dll (weird)
php_gmp.dll => missing
php_intl.dll => missing icuuc36.dll
php_interbase.dll => missing gds32.dll
php_mime_magic.dll => missing
php_ming.dll => missing
php_mssql.dll => missing ntwdblib.dll
php_oci8.dll => missing OCI.dll
php_oci8_11g.dll => missing OCI.dll
php_pdo_firebird.dll => missing gds32.dll
php_pdo_mssql.dll => missing ntwdblib.dll
php_pdo_oci.dll => missing OCI.dll
php_pdo_pgsql.dll => missing LIBPQ.dll
php_pgsql.dll => missing LIBPQ.dll
php_phar.dll => missing
php_pspell.dll => aspell-15.dll
php_snmp.dll => missing
php_sybase_ct.dll => missing libcs.dll
php_zip.dll => missing

As far as I can see:
- the config contains extensions, which isn't shipped
- the config contains extensions, which are shipped, but cannot be 
loaded without the proper third party lib.
- some exts are broken (curl was working fine in the RC1)

I think that the lines without the extension should be removed, the 
lines with an ext which has dependency should be noted like with the 
oracle drivers.
The broken exts should be fixed(curl, exif)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-07 19:09 UTC] pajoye@php.net
php_curl.dll => missing zlib.dll
php_dba.dll => missing
php_exif.dll => missing php_mbstring.dll (weird)
php_gmp.dll => missing
php_intl.dll => missing icuuc36.dll
> php_interbase.dll => missing gds32.dll

not supported yet.

> php_mime_magic.dll => missing
> php_ming.dll => missing

moved to pecl

> php_mssql.dll => missing ntwdblib.dll

not available anymore, my mistake I should have disabled it.

> php_oci8.dll => missing OCI.dll

You have to install the OCI client. See the manual.

> php_oci8_11g.dll => missing OCI.dll

Same as oci8 but using the client version 11.x.

> php_pdo_firebird.dll => missing gds32.dll

Not supported yet.

> php_pdo_mssql.dll => missing ntwdblib.dll

not available anymore, my mistake I should have disabled it.

> php_pdo_oci.dll => missing OCI.dll

Same as oci8

> php_pdo_pgsql.dll => missing LIBPQ.dll

It is present in the archive.

> php_pgsql.dll => missing LIBPQ.dll

It is present in the archive.

> php_phar.dll => missing

builtin

> php_pspell.dll => aspell-15.dll

not supported anymore.

> php_snmp.dll => missing

not supported yet.

> php_sybase_ct.dll => missing libcs.dll

You have to install the sybase client.

> php_zip.dll => missing

builtin.

For builtin module: run php -m to see them.


 [2009-05-07 19:13 UTC] pajoye@php.net
php -m output:

[PHP Modules]
bcmath
calendar
com_dotnet
Core
ctype
date
dom
ereg
filter
ftp
hash
iconv
json
libxml
mcrypt
mhash
mysqlnd
odbc
pcre
PDO
Phar
Reflection
session
SimpleXML
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib

And the one I miss:

> php_dba.dll => missing

not supported yet.

> php_exif.dll => missing php_mbstring.dll (weird)

It depends on mbstring, load mbsring first. See the manual.

> php_gmp.dll => missing

not support yet.

> php_intl.dll => missing icuuc36.dll

it is in the archive.

 [2009-05-07 19:14 UTC] pajoye@php.net
In short, I will repackage it without mssql as it makes no sense to bundle it as it is not support anymore in 5.3. Thanks for your quick test&report!
 [2009-05-07 19:26 UTC] tyra3l at gmail dot com
Ok, I know about the db drivers dependency, but if you can mention 
this about the oracle driver, it should be noted for the others too.
The lines about the built-in and the not-supported-yet modules should 
be removed, so the php.ini and the actual extension should be kept in 
sync imho.
If the exif ext depends on the mbstring, then it should be put after 
that.
Could this mean, that we could have some cycle reference error about 
the extensions loading preference, for example:
If A depends on B and B on C and C on A, then it can be loaded?
Sorry for asking stopid questions. :/

ps: Can I get/build somehow the curl module for myself, or it wont 
work with the current RC? 

Tyrael
 [2009-05-07 20:43 UTC] pajoye@php.net
Please retry :)
 [2009-05-07 21:35 UTC] tyra3l at gmail dot com
curl is working with the updated package.
mssql, and pdo_mssql are removed now, but they weren't removed from 
the php.ini.
also it seems that enchant was shipped with RC1(and mentioned on the 
release note), but the php.ini hasn't note it in the extensions, and 
now its gone with RC2.
what happened with it?
Its my biggest problem (after you fixed the curl extension, of course 
:)), that the php.ini isn't reflect the situation about the 
shipped/packaged extensions.

thanks for your time and effort.

Tyrael
 [2009-05-07 22:43 UTC] tyra3l at gmail dot com
About the intl extension:
If I move the following dlls:
icudt36.dll
icuin36.dll
icuio36.dll
icule36.dll
iculx36.dll
icutu36.dll
icuuc36.dll
from the php directory to the apache/bin, then it works.
this is my fault, how/where can I tell the php, that where should it 
search the extensions dll dependecy?

Tyrael
 [2009-05-07 22:47 UTC] pajoye@php.net
Add the php directory to your PATH (first in it :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 01:01:28 2024 UTC