I'm forced to use an older version of php on a server, and it seems to have a bug in the function file_get_contents();
I believe it's a bug because the issue doesn't happen on the current version of php.
$string = 'intraneturl/?really_long_example_query_parameters';
When I pass the $string
into file_get_contents($string);
the part with the query parameters seems to get truncated at some point because the returned information is different than when I run the exact same code on the up-to-date version of php on my dev machine.
My question is: How can I see the exact string that file_get_contents();
processed. I know what I sent in, but I don't believe it's processing it as I sent it. There may be a generic answer for viewing the innards of all functions via debugger or something. Do I need to use a debugger or is there a way to just print the information on the screen?