php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #47249 ext/idn and ext/intl incompatible
Submitted: 2009-01-30 15:49 UTC Modified: 2009-11-20 10:15 UTC
From: dams@php.net Assigned: pajoye (profile)
Status: Closed Package: Documentation problem
PHP Version: * OS: OSX 10.5
Private report: No CVE-ID: None
 [2009-01-30 15:49 UTC] dams@php.net
Description:
------------
When compiling PHP 5.3.0 beta1 with both libidn and intl, I get this 
error message : 

ld: duplicate symbol _zif_idn_to_ascii in ext/intl/idn/idn.o and 
ext/idn/idn.o
collect2: ld returned 1 exit status

PHP 5.3.0.beta1 compile nicely when only one of them is enabled. 

Reproduce code:
---------------
./configure --enable-intl --with-idn
make


Expected result:
----------------
Compilation successful.

Actual result:
--------------
ld: duplicate symbol _zif_idn_to_ascii in ext/intl/idn/idn.o and 
ext/idn/idn.o
collect2: ld returned 1 exit status




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-01-30 16:36 UTC] pajoye@php.net
One has nothing to do with the other. The first is certainly the pecl extension while the other is a new core function (via intl for 5.3, and as ICU is always present in 6.x, the function will always be enabled).

I already asked in #php-doc how to solve the problem in the documentation and so far I got no answer. We have to find a solution asap.
 [2009-01-31 09:33 UTC] bjori@php.net
Read the report again Pierre. It has nothing todo with docs.
Its about getting useful errormessage from ./configure when trying to enable them both.


 [2009-01-31 09:37 UTC] pajoye@php.net
It is a documentation problem.

You can't have two function with the same name at the same in PHP. So the short version is:

do not compile pecl/idn with 5.3 statically, or even shared as the error will happen at runtime then.


 [2009-01-31 16:16 UTC] crrodriguez at opensuse dot org
patch for intl

http://stuff.cristianrodriguez.net/patches/php-intl-conflicts.patch
 [2009-02-03 13:24 UTC] pajoye@php.net
I would rather add that to pecl/idn first.

Also how will ext/standard conflict with external ext? That's really a problem to be solved pecl/idn.
 [2009-02-07 15:41 UTC] crrodriguez at opensuse dot org
Did you actully read the patch Pierre ? ext/standard is ZEND_MOD_REQUIRED **NOT** ZEND_MOD_CONFLICTS ;-)
 [2009-06-18 15:13 UTC] pajoye@php.net
Doc issue, not a bug in 5.3 itself.
 [2009-11-20 10:15 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2009-11-20 10:15 UTC] svn@php.net
Automatic comment from SVN on behalf of vrana
Revision: http://svn.php.net/viewvc/?view=revision&revision=291054
Log: Not compatible with intl (bug #47249)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jul 03 03:01:29 2024 UTC