Fatal error: Cannot re-assign auto-global variable _POST in kohana 3.2 [closed]

StackOverflow https://stackoverflow.com/questions/21101490

  •  27-09-2022
  •  | 
  •  

Pergunta

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

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top