A reminder to myself: Do not use “empty” in PHP in conjunction with POST requests…

I just stumbled over a silly bug in my code that took quite I while until I at last found the cause. I had several if (isset($var) && (!empty($var)) { …. } to process input that came via HTTP POST requests. This worked quite well, but there was one case where the code block was… Continue reading A reminder to myself: Do not use “empty” in PHP in conjunction with POST requests…

Published
Categorized as Misc Tagged