Re: Bug #18214 Updated: Request: Warning on assignment in IF expression.

From: Date: Tue, 09 Jul 2002 07:30:47 +0000
Subject: Re: Bug #18214 Updated: Request: Warning on assignment in IF expression.
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-85850@lists.php.net to get a copy of this message
> 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

« previous php.dev (#85850) next »