Troubleshooting of PHP errors: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
Line 130: Line 130:
** If not, looking for the alternative functions.
** If not, looking for the alternative functions.
* Was the function really executed? Maybe using the __LINE__ to examin the logic.
* Was the function really executed? Maybe using the __LINE__ to examin the logic.
* Disable the logical judgement and just print text
* Disable the logical judgement and just print text using [http://php.net/manual/en/function.var-dump.php var_dump] or [http://php.net/manual/en/function.print-r.php print_r] functions.
* Check the if-else condition was satisfied or not cf: [http://www.leepoint.net/notes-java/data/strings/12stringcomparison.html Java: String Comparison] It's logical (compiler will not show the warning) but wrong.
* Check the if-else condition was satisfied or not cf: [http://www.leepoint.net/notes-java/data/strings/12stringcomparison.html Java: String Comparison] It's logical (compiler will not show the warning) but wrong.


Navigation menu