Re: Help with class constants
| From: | Elizabeth Smith | Date: | Sat, 28 Jul 2007 19:42:28 +0000 |
| Subject: | Re: Help with class constants | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-8003@lists.php.net to get a copy of this message | ||
Fernando Correa da Conceição wrote:
Some changes in GObject make am error in my app. There is some users with the gtk 2.8 and others with 2.10, the 2.8 uses the beta and 2.10 the cvs. My question: how can I know if a class constant is defined? If I test: if (isset(Gtk::TYPE_STRING)) And the constant do not exist I get a parser error(fatal) . There is any way to do this? Thanks. Fernando Correa da Conceição use defined() to check if any constant is defined - check php.net docs