Re: [Phpslash-devel] PHP Notice Errors
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2003-10-17 21:10:36
|
On Thu, Oct 16, 2003 at 12:34:42PM -0400, Mike Gifford wrote: > Hello again, > > Just thought I'd as a question about phpSlash's plans for handling php > error messages. > > Is the team working to eliminate php notice errors in upcoming releases? > > One of our developers is dead set against not using notices. We've done > this with Back-End with some of the phpSlash code we've incorporated: > > Index: functions.inc > =================================================================== > RCS file: /cvsroot/back-end/back-end0.5.x/class/functions.inc,v > retrieving revision 1.53 > diff -r1.53 functions.inc > 617c617 > < $templ->set_var('XSITEOBJECT', $metaobject['object']); > --- > > $templ->set_var('XSITEOBJECT', @$metaobject['object']); > 811c811,812 > < > --- > > > > $lastModified = null; I thought this one was fixed by testing if metaobject is an array. > Index: lib.resources.php > =================================================================== > RCS file: /cvsroot/back-end/back-end0.5.x/class/lib.resources.php,v > retrieving revision 1.4 > diff -r1.4 lib.resources.php > 444c444 > < $ans = $GLOBALS['_PSL']['resources'][$urn] ? true : false; > --- > > $ans = @$GLOBALS['_PSL']['resources'][$urn] ? true : false; > This is one of those screwy php things. Anybody got a better way to get rid of the warning? > Note this may have already been squished in the cvs version. > > Mike > -- > Mike Gifford, OpenConcept Consulting > Free Software for Social Change -> http://www.openconcept.ca > Beads of Hope Campaign - http://uc.openconcept.ca/petition.php > Nonconformity is the highest evolutionary attainment of social animals - > Aldo Leopold > |