문제

I am getting this Fatal error: Cannot re-assign auto-global variable _POST error in kohana 3.2 in windows 7 environment but the same script runs with out any error in linux. I have no idea on this. Any solution will be greatly appreciated

도움이 되었습니까?

해결책

If it runs on Linux, but in Win get fail - see PHP version. Since PHP 5.4, you cannot use a superglobal as the parameter to a function. See remark

EDIT

Parameter names that shadow super globals now cause a fatal error. This prohibits code like function foo($_GET, $_POST) {}.

See http://www.php.net/manual/en/migration54.incompatible.php

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