1
zoullou
Bug in errorhandler.php
  • 2004/6/3 9:19

  • zoullou

  • Quite a regular

  • Posts: 250

  • Since: 2004/3/2 0


Hello,

I have this message error when enable the PHP debug mode :
le="color: #000000"><?php Warning: Compilation failed: PCRE does not support L, l, N, P, p, U, u, or X at offset 4 in C:Program FilesEasyPHP1-7wwwclasserrorhandler.php on line 196


That is due to the windows path. In windows path, they are \ and produce this error. Contrary, with unix path they aren't this error because they are /.

Thanks for your help

2
zoullou
Re: Bug in errorhandler.php
  • 2004/6/3 9:48

  • zoullou

  • Quite a regular

  • Posts: 250

  • Since: 2004/3/2 0


I found a code to resolve this bug. Replace the line 196 in errorhandler.php by :

le="color: #000000"><?php 'errfile' => preg_replace("|^" . str_replace("\", "\\", XOOPS_ROOT_PATH) . "/|", '', $errFile),


I think this code is good with unix path but i'm not sure.