Hi,
just trying to canvass support for the ability to enforce declaration of variables as with perl's use strict:
http://bugs.php.net/bug.php?id=39091
--
Alain Williams
Parliament Hill Computers Ltd.
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
#include <std_disclaimer.h
If you want to emulate perl's "strict" mode just add an error_handler
() that will catch E_NOTICE
relating to undefined variable, constant,
array key usage and convert them to fatal errors.
Hi,
just trying to canvass support for the ability to enforce
declaration of variables as with perl's use strict:
Ilia Alshanetsky
If you want to emulate perl's "strict" mode just add an error_handler
() that will catchE_NOTICE
relating to undefined variable, constant,
array key usage and convert them to fatal errors.
No, it doesn't do the same thing, it won't pick up the following:
$fo0 = 'bill';
...
$foo = 'ben';
One is a typeo.
--
Alain Williams
Parliament Hill Computers Ltd.
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
#include <std_disclaimer.h
If you want to emulate perl's "strict" mode just add an error_handler
() that will catchE_NOTICE
relating to undefined variable, constant,
array key usage and convert them to fatal errors.No, it doesn't do the same thing, it won't pick up the following:
$fo0 = 'bill';
...
$foo = 'ben';
Both of these represent valid syntax as far as I am concerned and
should not generate errors.
Ilia Alshanetsky