Re: [PHP-DEV] Undefined constants producing E_NOTICE

2008-12-20 Thread Steph Fox
Hi Kuba, For the moment some unexpected behaviour caused by use of undefined constant may be hard to fix with low error reporting level. So don't use a low error reporting level. Moreover, treating an undefined constant as a string does not make sense. I know that PHP is intended to be a fle

Re: [PHP-DEV] Undefined constants producing E_NOTICE

2008-12-20 Thread Stan Vassilev | FM
Hi Kuba, For the moment some unexpected behaviour caused by use of undefined constant may be hard to fix with low error reporting level. So don't use a low error reporting level. Moreover, treating an undefined constant as a string does not make sense. I know that PHP is intended to be a fle

Re: [PHP-DEV] Undefined constants producing E_NOTICE

2008-12-20 Thread Cristian Rodríguez
Kuba Wieczorek escribió: > Hello everyone, > > Currently when an undefined constant is called, E_NOTICE is produced and > the name of the constant is assumed to be a string. In my opinion this > behaviour is strange and problematic for most developers. Maybe it would > be good if invoking undefine

Re: [PHP-DEV] Undefined constants producing E_NOTICE

2008-12-20 Thread Greg Beaver
Cristian Rodríguez wrote: > Kuba Wieczorek escribió: >> Hello everyone, >> >> Currently when an undefined constant is called, E_NOTICE is produced and >> the name of the constant is assumed to be a string. In my opinion this >> behaviour is strange and problematic for most developers. Maybe it woul