• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • 位置: php 中文手册 -> php 外部扩展库

    recode库(编码)

    安装

    要使用此模块中定义的函数,必须使用--with recode[=DIR]选项编译PHP解释器。

    在加载mysql或imap的任何扩展后,将recode作为扩展加载时可能会遇到PHP的崩溃和启动问题。在这些扩展被证明可以解决问题之前加载重新编码。这是因为imap和recode使用的c-client库都有自己的hash_lookup()函数,mysql和recode都有自己的hash_insert函数。
    IMAP,recode,YAZ 和 Cyrus 扩展不能同时使用,因为它们共享了相同 的内部符号。注意:Yaz 2.0 及以上版本不存在此问题。
    The warnings on this page are really important.
    If you ever end up with a Segmentation Fault (core dump 11), and have something similar to this in your stack trace:
    Reading symbols from /libexec/ld-elf.so.1...done.
    Loaded symbols for /libexec/ld-elf.so.1
    #0  0x0000000805936da2 in hash_lookup (hashtab=0x8099ad600, key=0x7fffffffe590 "1:3\b\b") at misc.c:349
    349     misc.c: No such file or directory.
            in misc.c
    [New Thread 8016041c0 (LWP 100388)]
    #0  0x0000000805936da2 in hash_lookup (hashtab=0x8099ad600, key=0x7fffffffe590 "1:3\b\b") at misc.c:349
            ret = Variable "ret" is not available.