Coder Social home page Coder Social logo

请问下能兼容php5.6嘛? about rdebug HOT 6 CLOSED

didi avatar didi commented on August 31, 2024
请问下能兼容php5.6嘛?

from rdebug.

Comments (6)

MingliangT avatar MingliangT commented on August 31, 2024

看错误是在 null 上调用方法导致报错的吧

from rdebug.

testerSunshine avatar testerSunshine commented on August 31, 2024

image
这个是php5.6的语法,在php7上面执行不了
确实最后的报错是在redis的实例上,不知道会不会是上面那个报错导致的

from rdebug.

MingliangT avatar MingliangT commented on August 31, 2024

这是你代码的问题,在 php7 环境下使用 __autoload。

midi 使用 composer 自动加载,不存在 __autoload 调用。

from rdebug.

testerSunshine avatar testerSunshine commented on August 31, 2024

其实不是我想在7环境下使用autoload,midi只有在php7版本可以用,然后我就在7上面试着运行了下,但是我们的php版本是5,所以问问大佬,能不能出个兼容5的版本

from rdebug.

MingliangT avatar MingliangT commented on August 31, 2024

运行 midi 可以用 php7,跑你的代码可以用 php5.6。

试一下在项目目录下 .midi/config.yml 中指定 php 二进制路径:

php:
    bin: /path/to/php5.6/bin/php

更多细节见 https://github.com/didi/rdebug/blob/master/doc/midi/Config.md

from rdebug.

testerSunshine avatar testerSunshine commented on August 31, 2024

收到,我去试试

from rdebug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.