|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-04-01 19:34 UTC] tpunt@php.net
-Status: Open
+Status: Wont fix
[2017-04-01 19:34 UTC] tpunt@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 18 17:00:02 2025 UTC |
Description: ------------ When trying to use param_handling to call a simple function to check a link, it crashes and the Apache-log says, that a segmentation fault occured. It only happens in 1.0.3b1, in 1.0.2 it's fine. Reproduce code: --------------- function checkLink($content, $argument) { if(substr($content, 0, 7)) != 'http://') return 'http://'.$content; else return $content; } $pd['url']['type'] = BBCODE_TYPE_OPTARG; $pd['url']['open_tag'] = '<a href="{PARAM}">'; $pd['url']['close_tag'] = '</a>'; $pd['url']['default_arg'] = '{CONTENT}'; $pd['url']['param_handling'] = 'checkLink'; $parser = bbcode_create($pd); echo bbcode_parse($parser, '[url]php.net[/url]'); Expected result: ---------------- <a href="http://php.net">php.net</a> Actual result: -------------- crash