Re: Client side fatal PHP error
| From: | Ken | Date: | Wed, 26 Dec 2001 03:46:08 +0000 |
| Subject: | Re: Client side fatal PHP error | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-78752@lists.php.net to get a copy of this message | ||
At 08:53 PM 12/25/01 -0500, jjt wrote:
>Why does this error not show up every time?
It will show up every time PHP attempts to call the (incorrect) function. But the functions
won't be called every time.
For example, due to short-circuit evaluation, if the string is "B" or "P", the
error will never happen.
Also, if your if statement isn't always reached, then the error will not happen. Finally, not
all users will report the error when they get it. But you can deal with that by looking at your PHP
error log file.
I believe there is a way to call PHP from the command line and do a "syntax check" on a
given file. But I have never tried it and I have no idea if it really works. Check the manual.
- Ken
kenzo@free-music.com
> >> if (strtoupper(substr($xmbrcode,11,1)) != "B" &&
> >> strtoupper(substr($xmbrcode,11,1)) != "P" &&
> >> srtoupper(substr($xmbrcode,11,1)) != "H" &&
> >> srtoupper(substr($xmbrcode,11,1)) != "O").... {