[Solar-talk] Solar_Markdown_Plugin_Html crashes apache
Andrew Shell
andrew at andrewshell.org
Mon Sep 18 16:24:59 PDT 2006
I'm on windows/apache with php 5.1.6 and during the test
Test_Solar_Markdown::test_Markdown_Documentation_Syntax apache crashes.
I narrowed down where the crash is happening and it is in
Solar_Markdown_Plugin_Html::parse($text) at the first preg_replace_callback
the first match of:
<ul id="ProjectSubmenu">
<li><a href="/projects/markdown/" title="Markdown Project
Page">Main</a></li>
<li><a href="/projects/markdown/basics" title="Markdown
Basics">Basics</a></li>
<li><a class="selected" title="Markdown Syntax
Documentation">Syntax</a></li>
<li><a href="/projects/markdown/license" title="Pricing and License
Information">License</a></li>
<li><a href="/projects/markdown/dingus" title="Online Markdown Web
Form">Dingus</a></li>
</ul>
makes it into Solar_Markdown_Plugin_Html::_parse($matches) and it
crashes on return.
If I inject code to catch the output of $this->_toHtmlToken before the
return it returns it is "\x0E0\x0F".
Which seems like that's what it's supposed to be doing.
So it's not crashing in $this->_toHtmlToken it's crashing when we return
the result.
This is as far as I could track the bug.
Is this a bug in php or in solar?
Andrew Shell
More information about the solar-talk
mailing list