Kevin Thorpe wrote:
Pedro Graca wrote: Kevin Thorpe wrote:Any pointers?
http://www.php.net/error_reporting
Unfortunately that's only at runtime. ...
There's no saying where a uninitialized variable can be used ...
It can be on the right side of an assignment; as a parameter to a
function call; on the left side of a test; ...
Good luck in finding a script that finds them all :)
You might want to try installing the scripts in a test directory and set
auto_prepend_file in that directory to a script that sets error_handler
to a function that logs all notices to a file (or database, or ...).
Make a few test runs, examine the log, and (manually) correct the
errors.
Skeleton auto_prepend_file
<?php
function Notice_Handler($n, $d, $f, $l) {
if ($n == 8) {
// log $d, $f, and $l somewhere
}
}
set_error_handler('Notice_Handler');
?>
--
USENET would be a better place if everybody read: | to email me: use |
http://www.catb.org/~esr/faqs/smart-questions.html | my name in "To:" |
http://www.netmeister.org/news/learn2quote2.html | header, textonly |
http://www.expita.com/nomime.html | no attachments. |