faqts : Computers : Programming : Languages : PHP : Common Problems : Errors

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

103 of 113 people (91%) answered Yes
Recently 10 of 10 people (100%) answered Yes

Entry

Warning: No ending delimiter found in functions.php3 on line 1561

May 3rd, 2001 09:00
Philip Olson, Anand Patel,


Odds are the function found at around line #1561 uses a preg_ function, 
here's an example that will cause such an error :
  // the following examples result in this error
  $string = preg_split('<foo',$input);
  $string = preg_replace('[^0-9]','',$string);
  // the following produce no such errors
  $string = preg_split('/<foo/',$input);
  $string = preg_replace("/[^0-9]/","",$string);
  LXV. Regular Expression Functions (Perl-Compatible)
  ---------------------------------------------------
  http://php.net/manual/en/ref.pcre.php
Since this is a Perl Compatible Regular Expression, you need the 
delimiters around the expression (slashes) else such an error will 
result.  Have a look at your function at and around this area, isolate 
and fix the problem.