From: jmazzi at gmail dot com
Operating system: Centos 3 (linux 2.4)
PHP version: 5.1.5
PHP Bug Type: PCRE related
Bug description: preg_replace_callback() [function.preg-replace-callback]:
Unknown modifier '|'
Description:
------------
When I updated from php 4 to php 5, one of my apps is giving this error:
Warning: preg_replace_callback() [function.preg-replace-callback]: Unknown
modifier '|'
Reproduce code:
---------------
$text = preg_replace_callback("{
(?:\\n\\n|\\A)
( # $1 = the code block -- one or more lines,
starting with a space/tab
(?:
(?:[ ]\{$md_tab_width} | \\t) # Lines must start with a
tab or a tab-width of spaces
.*\\n+
)+
)
((?=^[ ]{0,$md_tab_width}\\S)|\\Z) # Lookahead for non-space
at line-start, or end of doc
}xm",
'_DoCodeBlocks_callback', $text);
--
Edit bug report at http://bugs.php.net/?id=38530&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=38530&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=38530&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=38530&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38530&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=38530&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38530&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38530&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38530&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38530&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38530&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=38530&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=38530&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38530&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38530&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38530&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38530&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38530&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38530&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38530&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38530&r=mysqlcfg