> I added an E_STRICT error level today which purists can use to make sure
> that there scripts are using the latest and greatest suggested method of
> coding (according to what we decide).
>
Should E_STRICT halt execution (as with E_ERROR) or simply state a warning
(as with E_NOTICE / E_WARNING)?
Either way main/main.c : php_error_cb() needs something like the following
(Looking for thoughts on exact verbage)
Index: main/main.c
===================================================================
RCS file: /repository/php-src/main/main.c,v
retrieving revision 1.579
diff -u -r1.579 main.c
--- main/main.c 9 Oct 2003 02:58:34 -0000 1.579
+++ main/main.c 19 Nov 2003 05:18:15 -0000
@@ -723,6 +723,9 @@
case E_USER_NOTICE:
error_type_str = "Notice";
break;
+ case E_STRICT:
+ error_type_str = "Strict Standards";
+ break;
default:
error_type_str = "Unknown error";
break;
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php