Re: Notes affecting manual contributors
| From: | Andrei Zmievski | Date: | Mon, 27 Mar 2006 17:28:20 +0000 |
| Subject: | Re: Notes affecting manual contributors | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.gtk.doc |
| Request: | Send a blank email to php-gtk-doc+get-2009@lists.php.net to get a copy of this message | ||
Of course it returns 2047 and not E_ALL. But how do you use it? Do you do this:
ini_get('error_reporting') & 256
Or this:
ini_get('error_reporting') & E_USER_ERROR
Seriously, have you ever used numerical values of constants explicitly?
-Andrei
On Mar 27, 2006, at 4:28 AM, Steph Fox wrote:
We're talking about whether people should be able to look up 'what the numbers mean' when there are GTK enum/flag values returned, and you're saying no? That makes absolutely no sense to me. Might as well drop all those get_* methods then... It's like not being allowed to know that error_reporting=E_ALL is the same as error_reporting=2047. When you call ini_get() to find out the setting, 2047 comes back, not E_ALL. Funnily enough, the PHP docs list those values twice - once in http://www.php.net/error_reporting and again under 'Errors and Logging' http://www.php.net/manual/en/ref.errorfunc.php#errorfunc.configuration. Why should we suddenly not list them?