i have a string - LÙH²räâG3Âd\0(anBì this is supposed to be coming from a $_GET variable, called $_GET['info_hash'] however, the null byte "\0" in this string is causing php to read the variable as empty, as using the empty function tells me it is empty even though it is not. what is the workaround for this?
Don't use empty() if you don't have to. It also returns true if value is 0. Use ($str == '') instead.
Yes I have tried isset. It is being caused by a null byte. I am trying to get L%d9H%b2r%e4%e2G3%c2d%05%00%11%28anB%06%ec via the GET variable, any info_hash with a null byte %00 is coming back empty, null, unset when I try and get it using $_GET['info_hash']