Giter Site home page Giter Site logo

Pathinfo extension undefined about phpepub HOT 6 CLOSED

grandt avatar grandt commented on August 15, 2024
Pathinfo extension undefined

from phpepub.

Comments (6)

Grandt avatar Grandt commented on August 15, 2024

Do you happen to have an example of a path leading to an undefined return from pathinfo?
I'm adding $iSrcInfo != null && to the if statement following the call, that should protect it if pathinfo returns an undefined result.

from phpepub.

tcitworld avatar tcitworld commented on August 15, 2024

The two articles were this one and this other one. There's at least two different pictures concerned.

from phpepub.

Grandt avatar Grandt commented on August 15, 2024

So the issue is not that pathinfo returns an undefined result, but that $iSrcInfo['extension'] is undefined as the link doesn't always have an extension.

I'll apply a fix for that assumption, and post 4.0.7 in a few minutes.

from phpepub.

tcitworld avatar tcitworld commented on August 15, 2024

I thought so too, but I seem to recall to have var_dumped $iSrcInfo once without success.

from phpepub.

Grandt avatar Grandt commented on August 15, 2024

pathinfo shouldn't return an undefined at all. Try 4.0.7 I just posted to packagist, if that fails, I'll have to check further.

from phpepub.

tcitworld avatar tcitworld commented on August 15, 2024

Works fine. 👍

from phpepub.

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.