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

Script path detecting doesn't work #489

Closed
MartinMajor opened this issue Jan 24, 2012 · 1 comment
Closed

Script path detecting doesn't work #489

MartinMajor opened this issue Jan 24, 2012 · 1 comment

Comments

@MartinMajor
Copy link

Na me konfiguraci Apache nefunguje spravne autodetekce script path, ackoliv ve starsich verzich Nette fungovala. Problem je zde: https://github.com/nette/nette/blob/master/Nette/Http/RequestFactory.php#L107 , kde je prvni podminka splnena, ale vraci spatny vysledek, pritom druha podminka by vratila spravny vysledek.

Promenne:

$_SERVER['DOCUMENT_ROOT'] = "D:/wamp/www/";
$_SERVER['SCRIPT_FILENAME'] = "D:/wamp/www/nette/sandbox/www/index.php";
$_SERVER['SCRIPT_NAME'] = "/sandbox/www/index.php";

a ke scriptu pristupuji pres:

http://nette.l/sandbox/www/

Poslal bych pull s prohozenymi podminkami, ale nevim, jestli to nerozhodi zase nejake jine konfigurace.

@dg
Copy link
Member

dg commented Jan 25, 2012

Budu doufat, že přehození podmínek nic nerozhodí ;-)

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

No branches or pull requests

2 participants