note 81710 added to function.isset

From: Date: Mon, 10 Mar 2008 19:08:51 +0000
Subject: note 81710 added to function.isset
Groups: php.notes 
Request: Send a blank email to php-notes+get-136912@lists.php.net to get a copy of this message
I was attempting to use isset to detect if a class existed or not and kept having an error... Call to a member function get() on a non-object... For example I have some pages where I want to disable my own error reporting for non-existent HTTP queries. The HTTP query error handling file was merely included in my templates though now I can declare a class that uses that template system, declare an error class, and have the template system not serve the error handling when I will be using a large array of queries that I will not be tracking... <?php if (!class_exists('error')) {include("includes.php");} ?> ---- Server IP: 208.69.120.35 Probable Submitter: 68.56.168.246 ---- Manual Page -- http://www.php.net/manual/en/function.isset.php Edit -- https://master.php.net/note/edit/81710 Del: integrated -- https://master.php.net/note/delete/81710/integrated Del: useless -- https://master.php.net/note/delete/81710/useless Del: bad code -- https://master.php.net/note/delete/81710/bad+code Del: spam -- https://master.php.net/note/delete/81710/spam Del: non-english -- https://master.php.net/note/delete/81710/non-english Del: in docs -- https://master.php.net/note/delete/81710/in+docs Del: other reasons-- https://master.php.net/note/delete/81710 Reject -- https://master.php.net/note/reject/81710 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#136912) next »