PHP Notice Errors

Mike Gifford <[email protected]> Thu, 16 Oct 2003 12:34:42 -0400
Newsgroups gmane.comp.cms.phpslash.devel
Organization OpenConcept Consulting http://www.openconcept.ca
Message-ID <[email protected]>
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;
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;

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




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php