문제

here's a weird one:

I have a PHP-CLI script that runs just fine when called from a shell.

But when I have apache execute it via system() it seems to forget about all the superglobals (or at least $_SERVER) (they are 1/true).

Any ideas on where that's coming from?

도움이 되었습니까?

해결책

The readline extension was the badguy.

Deactivated it and it works.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top