Giter Site home page Giter Site logo

PHP 5.6 incompatibility about wifidog-auth HOT 5 OPEN

wifidog avatar wifidog commented on September 3, 2024
PHP 5.6 incompatibility

from wifidog-auth.

Comments (5)

benoitg avatar benoitg commented on September 3, 2024

If you send a patch, it will be accepted.

from wifidog-auth.

littlewine avatar littlewine commented on September 3, 2024

I am having the same problem, but downgrading to php 5.4.45 didn't solve the problem.
diegohdk , are you sure this is the issue and disabling runtime notices is the solution?

from wifidog-auth.

diegohdk avatar diegohdk commented on September 3, 2024

Yes @littlewine. I had this type of issue in other situations and disabling the notices solved. But this is not a real solution, because the problem is still there. With the time I realized that I really had to fix my classes, and so changed their methods signatures.

Anyway, in that case my PHP version was 5.4.12. Maybe you have to downgrade even more for this to work.

from wifidog-auth.

littlewine avatar littlewine commented on September 3, 2024

@diegohdk could you please share the updated code with the method signatures?
Could you also provide more info on how to disable notices?
will a simple block of code do the trick ?
error_reporting(0);
Unfortunately I am unable to set up the server so it is not really easy for me to go ahead and change the php classes or explore the functionality of the script to check if it covers my needs.
Thank you in advance ,
Tony

from wifidog-auth.

diegohdk avatar diegohdk commented on September 3, 2024

Hello @littlewine. I don't have an updated version of these classes. The fix that I mentioned was on another project.

I could make a fix for this project too but I don't have time at this moment.

But to help you, on my other project I disabled these errors by changing error_reporting on .htaccess, like this:

<IfModule mod_php5.c>
    php_value error_reporting "E_ALL ^ E_STRICT"
</IfModule>

The .htaccess must to be at your project's root.

Note: this will only work if your web server is Apache. For other servers you might find another way.

from wifidog-auth.

Related Issues (15)

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.