|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchespecl-cairo-php_streams.patch (last revision 2012-05-18 13:06 UTC by dkozlowski at sevone dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-05-18 13:25 UTC] dkozlowski at sevone dot com
[2021-07-22 12:52 UTC] cmb@php.net
-Status: Open
+Status: Suspended
[2021-07-22 12:52 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 10:00:01 2025 UTC |
Description: ------------ When trying to create multiple font faces from the same font file Cairo will throw the following exception Fatal error: Uncaught exception 'CairoException' with message 'CairoFtFontFace::__construct(): An error occurred opening the file' in /root/test.php:5 Stack trace: #0 /root/test.php(5): CairoFtFontFace->__construct('/root/DroidSans...') #1 {main} thrown in /root/test.php on line 5 Test script: --------------- <? $cairo = new CairoFtFontFace( "/root/DroidSansMono.ttf" ); print_r($cairo); $cairo = new CairoFtFontFace( "/root/DroidSansMono.ttf" ); print_r($cairo); ?> Expected result: ---------------- two CairoFtFontFace Objects should be created Actual result: -------------- One object is created and the second invocation throws an exception CairoFtFontFace Object ( ) Fatal error: Uncaught exception 'CairoException' with message 'CairoFtFontFace::__construct(): An error occurred opening the file' in /root/test.php:5 Stack trace: #0 /root/test.php(5): CairoFtFontFace->__construct('/root/DroidSans...') #1 {main} thrown in /root/test.php on line 5