gzdecode()
It looks like with version 5.4 (currently in beta), PHP will include native gzdecode() function. Until now developers were writing their own implementation of this function and usually name it gzdecode(). Now when PHP has a native function, when you upgrade to 5.4 you will get an error: “Cannot redeclare gzdecode()“. If you get this error, find the file and the line number where this function is declared (this information should be in the error message) and surround the whole function with “if” statement:
1 2 3 4 5 | if (! function_exists('gzdecode')) { function gzdecode($data) { // Your function code goes here } } |