note 71410 added to function.pdf-fit-textline
| From: | Chris at postal-code dot com | Date: | Mon, 27 Nov 2006 21:47:13 +0000 |
| Subject: | note 71410 added to function.pdf-fit-textline | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-120110@lists.php.net to get a copy of this message | ||
A patch to the code below to handle an array bounds error that arises:
<?php
$nextText = "";
if ( ( count( $tmpTxt ) - 1 ) >= ( $i + 1 ) )
{ $nextText = $tmpTxt[ $i+1 ]; }
if ( ( strlen( $str ) + strlen( $nextText ) ) > $cols )
?>
----
Server IP: 216.235.15.211
Probable Submitter: 24.85.224.21
----
Manual Page -- http://www.php.net/manual/en/function.pdf-fit-textline.php
Edit -- https://master.php.net/note/edit/71410
Del: integrated -- https://master.php.net/note/delete/71410/integrated
Del: useless -- https://master.php.net/note/delete/71410/useless
Del: bad code -- https://master.php.net/note/delete/71410/bad+code
Del: spam -- https://master.php.net/note/delete/71410/spam
Del: non-english -- https://master.php.net/note/delete/71410/non-english
Del: in docs -- https://master.php.net/note/delete/71410/in+docs
Del: other reasons-- https://master.php.net/note/delete/71410
Reject -- https://master.php.net/note/reject/71410
Search -- https://master.php.net/manage/user-notes.php