Visite Webhosting Latino, el site sobre alojamiento web.
#38530 : preg_replace_callback() : Unknown modifier '|' - Mombu the Php Forum
Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > #38530 : preg_replace_callback() : Unknown modifier '|'
User Name
REGISTER NOW! Mark Forums Read

sponsored links

1 19th June 06:18
External User
Posts: 1
Default #38530 : preg_replace_callback() : Unknown modifier '|'

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 '|'

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("{
( # $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
((?=^[ ]{0,$md_tab_width}\\S)|\\Z) # Lookahead for non-space
at line-start, or end of doc
'_DoCodeBlocks_callback', $text);

Edit bug report at
Try a CVS snapshot (PHP 4.4):
Try a CVS snapshot (PHP 5.2):
Try a CVS snapshot (PHP 6.0):
Fixed in CVS:
Fixed in release:
Need backtrace:
Need Reproduce Script:
Try newer version:
Not developer issue:
Expected behavior:
Not enough info:
Submitted twice:
PHP 3 support discontinued:
Daylight Savings:
IIS Stability:
Install GNU Sed:
Floating point limitations:
No Zend Extensions:
MySQL Configuration Error:
  Reply With Quote

  sponsored links


Thread Tools
Display Modes

Copyright 2006 - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -