I'm using DokuWiki on my PHP5.3 install, and when i use the following code (from the examples):
I get a simple link with text and a warning, here is the HTML i get:
<a href="http://www.php.net" class="urlextern" title="http://www.php.net" rel="nofollow">http://www.php.net</a>
And the warning:
Warning: trim() expects parameter 1 to be string, array given in /Users/hiro/Sites/nfdm/inc/parser/xhtml.php on line 1025
On this line 1025, DokuWiki trims an array (which represents the picture). In PHP 5.2 it works, since the array is casted to the string 'Array'. But it seems in PHP 5.3 the array is casted to an empty string, which results in a warning and the display of the URL, because the $title looks empty.
I suggest DokuWiki tests the $title variable type with is_string before it tries to trim it. The attached simple patch corrects the bug.