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.

    评论

报告相同问题?

悬赏问题

  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波
  • ¥15 针对曲面部件的制孔路径规划,大家有什么思路吗
  • ¥15 钢筋实图交点识别,机器视觉代码
  • ¥15 如何在Linux系统中,但是在window系统上idea里面可以正常运行?(相关搜索:jar包)
  • ¥50 400g qsfp 光模块iphy方案
  • ¥15 两块ADC0804用proteus仿真时,出现异常