Git Product home page Git Product logo

Comments (8)

JanSlabon avatar JanSlabon commented on July 26, 2024

I just executed our internal tests against PHP 7.1.0RC1 and previous beta3 release and both went through. Could you please verify that all related classes are up to date?

from fpdi.

JanSlabon avatar JanSlabon commented on July 26, 2024

Simey, as we are not able to reproduce this, could you offer more details on that issue?

from fpdi.

lameze avatar lameze commented on July 26, 2024

Hi, we are still trying to figure out why we are getting errors...have you checked your error.log to see if there's any error there? Something like callling non-static methods statically?

from fpdi.

JanSlabon avatar JanSlabon commented on July 26, 2024

Tests ran with E_ALL. Again: Please verify that ALL related classes are up to date.

from fpdi.

marinaglancy avatar marinaglancy commented on July 26, 2024

Hello Jan, we are investigating why we are having a failure in moodle - see https://tracker.moodle.org/browse/MDL-55848
It is definitely a problem with opcache caching file/class before TCPDF is available but we still can't understand why it's happening and why is it a problem on php7.1 only
If the line https://github.com/Setasign/FPDI/blob/master/fpdi_bridge.php#L19 is replaced with "if (false)" everything works.

from fpdi.

JanSlabon avatar JanSlabon commented on July 26, 2024

That behaviour is very strange. It would mean that fpdi_bridge would never extend TCPDF but a call of is_subclass_of($this, 'TCPDF') would return true? I guess you should report this, after some more validation, on https://bugs.php.net/

from fpdi.

marinaglancy avatar marinaglancy commented on July 26, 2024

yes, I don't believe this is a bug in FPDI. If it won't resolve itself in RC2 or stable release of php7.1 we'll have to patch the library included in moodle in order to hide this error. We already have another report of opcache messing with class definitions and it's hard to report to php because we can't provide reliable reproduction steps.

Thank you for the prompt reply and your help. Feel free to close this issue and, if you are interested, follow bug in our tracker.

from fpdi.

JanSlabon avatar JanSlabon commented on July 26, 2024

Ok, perfect, thanks for reporting anyway!

from fpdi.

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.