| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2002-06-04 04:28 UTC] mfischer@php.net
  | 
    |||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 11:00:01 2025 UTC | 
this code causes an access violation on IIS5/Windows2000/PHP4.1.2 Reports are that it works fine with apache4.0.6 (OS unknown): <?php $str = "here's some code:\n [code]//yep;\n \$a = 0; if (\$a < 1) { echo 'moo &'; }\n[/code]"; $str = preg_replace('/(\[code\])([^\[]*)(\[\/code\])/ie', "'<br><br>code:<hr size=\"1\"><pre>' . htmlspecialchars('\\2') . '<hr size=\"1\"></pre>'", $str); echo $str; ?> S