-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Reverse routing causes error "preg_match(): Compilation failed: missing closing parenthesis" #7876
Labels
bug
Verified issues on the current code behavior or pull requests that will fix them
Comments
dimtrovich
added
the
bug
Verified issues on the current code behavior or pull requests that will fix them
label
Aug 29, 2023
Try up route as?
|
Thank you for reporting. This is duplicate of #7237 |
The cause seems to be the same, but the error occurs in a different place, so reopen. |
|
kenjis
changed the title
Bug: reverseRoute -- preg_match(): Compilation failed: missing closing parenthesis
Bug: Reverse routing causes error "preg_match(): Compilation failed: missing closing parenthesis"
Aug 29, 2023
5 tasks
Try #7880 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PHP Version
8.1
CodeIgniter4 Version
4.4.0
CodeIgniter4 Installation Method
Git
Which operating systems have you tested for this bug?
Windows
Which server did you use?
cli-server (PHP built-in webserver)
Database
No response
What happened?
Unable to generate a URL attached to a route defined with custom placeholders.
An exception is thrown at SYSTEMPATH\Router\RouteCollection.php at line 1343
Steps to Reproduce
at this level it no longer gives. yet if I don't use the
url_to
function, the text displays normally, so I dare to believe that my regex has no error1st Image: Error when i use
url_to
function in the 1st route2nd Image: The 2nd route is displayed normally
3th Image: The 1st route is displayed normally when the
url_to
function is not usedExpected Output
the display of the corresponding url (http://localhost:8000/docs/10.9/install)
Anything else?
This bug is a continuation of a ticket (feature request) opened on the forum: https://forum.codeigniter.com/showthread.php?tid=88365
The text was updated successfully, but these errors were encountered: