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 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题
  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺
  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn