Empty regular expression

Anonymous avatarAnonymous created an issue

Hello Soren!

I was trying to implement this into my website. When running your script as a standalone - it worked fine, but as soon as I tried to put it into my website i'm getting this error, and I can't figure out what is wrong.

Warning: preg_match() [function.preg-match]: Empty regular expression in D:\Server\xampp\htdocs\zendtest\public\UrlLinker.php on line 51


Comments (3)

  1. Michael Gotiashvili

    I beg you a pardon for creating this issue, the problem was that variable $rexUrlLinker wasn't received through global I suppose, and that's why the function htmlEscapeAndLinkUrls($text) had this error. I simply moved those variables into the function and it worked correctly. Don't know why it had the problem, but it's solved and works great!

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.