Welcome Guest, Not a member yet? Register   Sign In
Strange Behavior
#1

I have a ..../public/test.php file:
<?php print_r(getallheaders()); ?>

and I have a CI app where in a before() function of a custom filter I have:
 log_message('debug', print_r(getallheaders(), true));

I'm getting different results for the 'Host' header. The first prints the domain name of my server and the second prints the IP address.
Does anyone know why this would happen?
Simpler is always better
Reply
#2

(This post was last modified: 02-23-2022, 08:03 AM by Gary.)

Not sure of your exact "different" results, but recently I've also found some anomalous behavior in several of my long-time-tested-and-trusted custom Filters, that I have also yet to explain.

Sorry, I know that doesn't answer your question... but perhaps points to some sort of change in the framework (I've only noticed the changes in my site since I upgraded from v4.15 to v4.18... so either I was drunk the whole time... or something else happened).
Reply




Theme © iAndrew 2016 - Forum software by © MyBB