You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the gd extension is installed, but FreeType support isn't enabled, ezcGraphGdDriver->getTextBoundings() can return null because neither of the case blocks in this switch block will be executed. This can cause less than intuitive errors like the one below when calls like this one don't check the return value to ensure it's an object. It may be best to have ezcGraphGdDriver->getTextBoundings() throw an exception if no case blocks are matched.
PHP Notice: Trying to get property of non-object in /home/matt/Software/spl-benchmarks/vendor/zetacomponents/graph/src/driver/gd.php on line 565
The text was updated successfully, but these errors were encountered:
I can make the code change, but I'm not sure how to go about updating the tests since the GD driver test suite has a check in setUp() that marks the test skipped if FreeType support isn't enabled. Thoughts?
If the gd extension is installed, but FreeType support isn't enabled,
ezcGraphGdDriver->getTextBoundings()
can returnnull
because neither of thecase
blocks in thisswitch
block will be executed. This can cause less than intuitive errors like the one below when calls like this one don't check the return value to ensure it's an object. It may be best to haveezcGraphGdDriver->getTextBoundings()
throw an exception if nocase
blocks are matched.The text was updated successfully, but these errors were encountered: