root

Changeset 417

Show
Ignore:
Timestamp:
12/02/08 22:11:50 (2 years ago)
Author:
wbond
Message:

Fixed a bug where an escaped % in an exception class constructor was improperly throwing an error about not enough parameters

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fException.php

    r399 r417 Hide Line Numbers
    165165    { 
    166166        $args          = array_slice(func_get_args(), 1); 
    167         $required_args = preg_match_all('#%(\d+\$)?[\-+]?( |0|\'.)?-?\d*(\.\d+)?[%bcdeufFosxX]#', $message, $matches); 
     167        $required_args = preg_match_all('#(?<!%)%(\d+\$)?[\-+]?( |0|\'.)?-?\d*(\.\d+)?[bcdeufFosxX]#', $message, $matches); 
    168168         
    169169        $code = NULL;