dpnfxk251524 2018-08-11 21:02
浏览 70

使用MariaDB 10.3.9编译PHP-7.1.20时出错

I am trying to compile php-7.1.20 on ubuntu 16.04 server.

I have also compiled Mariadb 10.3.9 at /opt/mariadb.

I am trying to compile php with the option --with-mysqli=/opt/mariadb/bin/mysql_config.

I have applied this patch

https://bugs.php.net/patch-display.php?bug_id=75612&patch=mysql-mariadb-10.3.patch&revision=latest

After applying the patch I am getting this error:

error: ‘zend_mysqli_globals {aka struct _zend_mysqli_globals}’ has no member named ‘reconnect’

  • 写回答

1条回答 默认 最新

  • dsi36131 2018-08-16 05:08
    关注

    This needs to be fixed in PHP:

    While both MySQL and MariaDB documentation clearly states that the MYSQL structure should be considered as opaque, PHP accesses internal member reconnect of the MYSQL structure, instead of using mysql_options(mysql, MYSQL_OPT_RECONNECT, &value).

    Mea culpa: It was likely me which wrote that code 15 years ago, since the option MYSQL_OPT_RECONNECT didn't exist. It was also me, which added the reconnect option to mysql->options.reconnect when I wrote MariaDB Connector/C from scratch.

    评论

报告相同问题?

悬赏问题

  • ¥15 聚类分析或者python进行数据分析
  • ¥15 逻辑谓词和消解原理的运用
  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥15 js,页面2返回页面1时定位进入的设备
  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号