Red Hat Bugzilla – Bug 106755
recode support in php
Last modified: 2009-02-05 07:28:09 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031003
Description of problem:
recode support in php is not included in RedHat or Fedora rpms. I routinely
rebuild such rpms without problems but it is hardly convenient and it seems a
very minor and trivial addition. Is there a reason?
Version-Release number of selected component (if applicable):
Steps to Reproduce:
I just tried enabling it, but httpd crashes on startup, librecode.so was using
the hash_insert from libmysqlclient.so not the hash_insert from librecode.so.
#0 0x00001f91 in ?? ()
#1 0x4013d6e0 in hash_insert () from /usr/lib/mysql/libmysqlclient.so.10
#2 0x4039aee8 in find_alias (outer=0x81a6d30, name=0x40452b31 "data",
#3 0x4039cb0f in register_all_modules (outer=0x81a6d30) at outer.c:457
#4 0x4039d21c in recode_new_outer (auto_abort=false) at outer.c:550
#5 0x40215e91 in zm_startup_recode (type=1, module_number=11)
#6 0x402bdf3a in zend_startup_module (module=0x4032bf00)
Have you tried compiling recode as shared extension? Debian has been packaging
recode, imap and mysql extensions for ages.
If redhat and fedora does not include recode support in PHP, it stops possible
improvements in some PHP script packages (for example - SquirrelMail). PHP
recode extension provides character set conversion functions that are more
stable than functions provided by iconv extension.
Using a shared extension this should now be feasible since RTLD_DEEPBIND was
Done for Raw Hide.