Loading SVG files in HHVM (or maybe even php as fcgi)
PHP class for PDF
Brought to you by:
nicolaasuni
The changes in TCPDF::fileGetContents() introduced in 354433 causes an error if $SERVER['SCRIPTURI'] is set.
if (isset($_SERVER['SCRIPT_URI']) && !preg_match('%^(https?|ftp)://%', $file) && !preg_match('%^//%', $file) ) { $urldata = @parse_url($_SERVER['SCRIPT_URI']); return $urldata['scheme'].'://'.$urldata['host'].(($file[0] == '/') ? '' : '/').$file; }
I assume that instead of return $alt[] = should be used because the function returns an url, not a svg string.
The error message in issue #1088 might be related.
Bug $1088 is related to the public static function fileGetContents()
Last edit: Liam Vans 2015-10-21