> What are some other potential "strict" mode watches?  Some people
> ask for an optional "strict" mode with various options, this could
> be a good start?  Imagine a strict mode directive where when on,
> various > options could be set at runtime, like
> assignment_inside_expression = true :)
> 
> You can better do this discussion on php-dev, as not a lot people 
> read the bug list.

Here are a few related feature requests (with summary):

  #14285 - Wants strict mode, similar to:
              'option explicit' in VBScript
              'use strict'      in Perl

  #14405 - Wants 'require strict argument' option, that 
           affects all PHP functions.  The name E_TYPE 
           is suggested.
  
  #18214 - Wants warning option for assignment inside of an 
           expression.  Possible runtime option of 
           assignment_inside_expression = true if in strict 
           mode.

How possible would it be to create an optional strict 
mode in PHP?  This might help "strict" programmers feel 
more comfortable.  error_reporting(E_ALL) is a start, 
using === vs == too.  Some functions, like in_array(), 
have strict options now as well.

Regards,
Philip Olson


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to