Comments (6)
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.
The two articles were this one and this other one. There's at least two different pictures concerned.
from phpepub.
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.
I thought so too, but I seem to recall to have var_dumped $iSrcInfo
once without success.
from phpepub.
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.
Works fine.
from phpepub.
Related Issues (20)
- Downloading Images from an https protocol HOT 6
- Cover image thumbnail broken in 3.30
- Encoding special caracters for filename HOT 2
- TOC showing up at end of created eBook HOT 10
- Encrypt epub with a password
- Generated epub file does not display on iBook. HOT 4
- Wrong variable name in buildTOC() V3.30 HOT 1
- Add file in META-INF ? HOT 3
- Error converting markup with svgs HOT 15
- Two first chapters having the same id HOT 9
- remove composer.phar from legacy folder
- How can I force images to be stored in the root of the image directory?
- Warnings in PHP log during an export epub
- How can I generate pages hidden from the toc?
- How can I set reference/landmark type for specific pages/chapters? HOT 1
- Replace each() by foreach() HOT 1
- Can I convert PDF to EPUB using the library? HOT 1
- Call to a member function addIndexPoint() on boolean at vendor/grandt/phpepub/src/PHPePub/Core/EPub.php:383
- Replace each() by foreach() HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpepub.