R: [Phplib-users] OOHforms floods error_log
Brought to you by:
nhruby,
richardarcher
From: Gaetano G. <giu...@se...> - 2002-09-16 14:10:21
|
>=20 > Hi, >=20 > I noticed that oohforms floods my error_log of the apache with Notices > like: >=20 > [Mon Sep 16 14:39:50 2002] [error] PHP Notice: Undefined=20 > property: icase > in /usr/local/lib/php/of_text.inc on line 98 > [Mon Sep 16 14:39:50 2002] [error] PHP Notice: Undefined=20 > index: frozen > in /usr/local/lib/php/oohforms.inc on line 284 >=20 > Hundreds of them... >=20 > It's really a mess. >=20 > Looks like its implementation is not really clean. I noticed=20 > that newer > versions of PHP get more picky concerning undefined variables=20 > or wrongly > defined constants.=20 True. IMHO a very good thing: train developers to write clean code! Unfortunately will break or give a lot of warnings w. old libraries = written carelessly. > Or, do I miss a special switch to get rid=20 > of all this. In ini file: error_reporting =3D E_ALL & ~E_NOTICE=20 > But nevertheless it looks not so nice... Would be better to have some > possibility to disable this notice messages locally for only=20 > the oohform's > *.inc files. :) I know the code is working well, but I would=20 > like not to > see all these notices, since they hide my own error messages... ;) >=20 > OK, any idea about this? >=20 Use function error_reporting(). You could put it at the top of = local.inc... Bye, Gaetano |