Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8296805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:09:36+00:00 2026-06-08T15:09:36+00:00

On my production system i get an error in the symfony router: Warning: preg_match()

  • 0

On my production system i get an error in the symfony router:

Warning: preg_match() [function.preg-match]: Compilation
failed: unmatched parentheses at offset 60 in
/mypath/app/cache/prod/appprodUrlMatcher.php line 205

Whereas on the local machine and on another server it works fine.

I digged in the cache and the pattern for the route is different:

Working on my dev server:

#^/hotels/(?<groupId>[^/\\-]+)\\-(?<groupName>[^\\-]+)$#s

Not working on production:

#^/hotels(?:/(?<groupId>[^/\\-]+)(?:\\-(?<groupName>[^\\-]+))?)?)?$#s

the route is:

hotel:
    pattern: /hotels/{groupId}-{groupName}
    defaults: { _controller: "MyBundle:Hotel:hotel", requirements:{ groupName: "[a-zA-Z1-9\+\/]+" } }

I read some issues on github that similar errors are possible when using an old PCRE.
https://github.com/symfony/symfony/issues/4093
Mine seems new enough thou: PHP 5.3.6 with PCRE Version 8.11.
I am on Solaris.

The patterns are generated by symfony, right? So, why are the patterns different?
And after all why doesnt it work? Has somebody any clue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T15:09:37+00:00Added an answer on June 8, 2026 at 3:09 pm

    This was not a symfony issue but rather a bug in the PHP 5.3.6 version on this Solaris machine.
    The constant INF returned float(0) which blew up the routing.

    See more here: php INF has value zero

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When attempting to access /account/manage on the production server I get this error: System.MissingMethodException:
I get a compile error, Cannot implicitly conver type 'System.Collections.ObjectModel.ObservableCollection to ProddataRecsObservable'. An explicit
I get the following error in the production environment Session state can only be
The problem is I regularly get the error at the production site (ASP.NET MVC
We're writing a large production system in Java, and I'm considering whether or not
Source code is present at run time in production system (though it may be
I want to use GenerationType.IDENTITY for primary keys in my production MySQL system. But
I am using NHibernate to connect to a legacy rdbms system. Under high production
I have an asp.net app that uses System.IO.Path.GetTempFileName() for temporary files. In the production
We use ERPConnect in our ASP.NET application but sometimes we get some error messages

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.