I am working on a website with a few friends, and recently, users have complained about a fairly important feature doing nothing but return a blank page. This only happens for some users, while other users are able to use it perfectly fine.
I consulted debug output and it turns out that a function is being declared twice. Once in the feature's main page (foo.php
) and one in a file that gets require_once
'ed. Obviously I'm on the right path to fixing it now, but what confuses me is that many people do not get this problem when visiting the page. Both function declarations are identical; the bodies seem to have been copy+pasted from one file to the other. Neither of these function declarations are conditional; they should both always take place.
Does anybody know of situations where PHP will be able to handle my mistake and make the page work anyway, despite this fatal error?