ID: 45194 Updated by: [EMAIL PROTECTED] Reported By: benh at advanceclaims dot com -Status: Open +Status: Wont fix Bug Type: PDF related Operating System: Linux PHP Version: 4.4.8 New Comment:
We are sorry, but we can not support PHP 4 related problems anymore. Momentum is gathering for PHP 6, and we think supporting PHP 4 will lead to a waste of resources which we want to put into getting PHP 6 ready. Previous Comments: ------------------------------------------------------------------------ [2008-06-06 16:58:07] benh at advanceclaims dot com Description: ------------ pdf_show_boxed() normally wraps lines between words. If a string containing unbroken characters is fed to pdf_show_boxed() such that the unbroken characters render to a width wider than the width value supplied to pdf_show_boxed() it will cause a seg fault because it does not know where/how to wrap the lines. I do realise that pdf_show_boxed() is deprecated and that the problem is almost certain to be with the underlying library. Reproduce code: --------------- $string="A string with a lot of unbroken characters QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ"; pdf_show_boxed($pdf,$string,$lmargin,$bottom_margin,$width,$height,"left",""); Expected result: ---------------- I would expect pdf_show_boxed to break the string like so: A string with a lot of unbroken characters QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ Actual result: -------------- Segmentation fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45194&edit=1