Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add checks for GD true/free type functions #31

Closed
marijn opened this issue Apr 13, 2011 · 4 comments
Closed

Add checks for GD true/free type functions #31

marijn opened this issue Apr 13, 2011 · 4 comments

Comments

@marijn
Copy link

marijn commented Apr 13, 2011

The GD Drawer implementation should be checking for the existence of the following true/free type functions:

They might not be enabled on some platforms...
As far as I can see it is the result of compiling GD without the correct --with-freetype-dir.

How would you like the test case formatted?

@avalanche123
Copy link
Collaborator

@marijn
Copy link
Author

marijn commented Apr 13, 2011

Apparently not, I run into the issue yesterday, it was not caught by the free type support option.

@avalanche123
Copy link
Collaborator

I see, I will add checks then, thanks

@marijn
Copy link
Author

marijn commented Apr 14, 2011

I have confirmed that it's because of the lacking --with-freetype-dir flag.

I guess it would be best to throw an exception and refer to the fact that one needs to compile php --with-freetype-dir.

romainneutron added a commit that referenced this issue Apr 9, 2014
Fix #31: Check GD function existence before using it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants