hiboshi
V2EX  ›  PHP

看到你们 wp 都跑在 php7 上面,为什么 我的报错

  •  1
     
  •   hiboshi · Dec 5, 2015 · 3889 views
    This topic created in 3832 days ago, the information mentioned may be changed or developed.

    Parse error: syntax error, unexpected 'new' (T_NEW) in /home/wwwroot/xxx.com/wp-content/plugins/db-cache-reloaded-fix/db-module.php on line 214

    还有 我看到 php7 编译教程里面都有 --with-mysql 选项,我的的 ./configure -help 根本没有!

    [root@vultr php-7.0.0]# ./configure -help | grep mysql
    --with-mysqli=FILE Include MySQLi support. FILE is the path
    to mysql_config. If no value or mysqlnd is passed
    --enable-embedded-mysqli
    --with-mysql-sock=SOCKPATH
    --with-pdo-mysql=DIR PDO: MySQL support. DIR is the MySQL base directory
    If no value or mysqlnd is passed as DIR, the
    --enable-mysqlnd Enable mysqlnd explicitly, will be done implicitly
    --disable-mysqlnd-compression-support
    Disable support for the MySQL compressed protocol in mysqlnd
    --with-zlib-dir=DIR mysqlnd: Set the path to libz install prefix

    3 replies    2015-12-05 23:00:40 +08:00
    hiboshi
        1
    hiboshi  
    OP
       Dec 5, 2015
    已经找到问题 DB Cache Reloaded Fix 插件不兼容。禁用就好了。
    fengyqf
        2
    fengyqf  
       Dec 5, 2015
    beta3 时做测试,确实没有,印象中官方也确认移除老旧的 mysql 库了
    iyaozhen
        3
    iyaozhen  
       Dec 5, 2015
    应该是被移除了。需要自己后续编译。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   970 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 20:36 · PVG 04:36 · LAX 13:36 · JFK 16:36
    ♥ Do have faith in what you're doing.