Skip to content
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

Improvements of command line tool #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

AndreyMZ
Copy link

  1. Separate Unix domain socket filepath and script filepath into two command line arguments. This is absolutely needed because the regular expression used before is not able to separate socket path and URL path correctly.

    Steps to reproduce:
    Try the following argument value
    unix:/var/run/php-fpm/web.sock.1/path.sock/?query=.sock/#segment=.sock/

    Actual result:
    https://regex101.com/r/gG7jO2/3
    Socket path: (1st capture group): unix:/var/run/php-fpm/web.sock.1/path.sock/?query=.sock/#segment=.sock
    URL path (2nd capture group): /

    Expected result:
    Socket path: unix:/var/run/php-fpm/web.sock.1
    URL path: /path.sock/?query=.sock/#segment=.sock/

  2. Show full script path in log and send full script path in SCRIPT_NAME, REQUEST_URI and DOCUMENT_URI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant