Philip,

On 9 Jul 2002 [EMAIL PROTECTED] wrote:

> 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.

Derick


> 
> 
> Previous Comments:
> ------------------------------------------------------------------------
> 
> [2002-07-08 10:19:16] [EMAIL PROTECTED]
> 
> Rare???  What do you mean, rare???
> 
> Nearly every script I write uses this construct multiple times. 
> Sometimes, it occurs more often than equality comparisons.  Changing
> this would make my life hell!!
> 
> Cheers!
> 
> Mike
> 
> ------------------------------------------------------------------------
> 
> [2002-07-07 18:18:31] [EMAIL PROTECTED]
> 
> on a side note, it is a good practice to swap the 'assignment
> arguments':
> if ('foo' == $bar), since 'foo' = $bar does produce a warning.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> [2002-07-07 17:55:54] [EMAIL PROTECTED]
> 
> right it's legal - but it's so rare that it is usually a mistake, which
> is why most c compilers will generate a warning for it.  would have
> saved me a good 30 minutes tonight spent searching for the cause of a
> bug... :(
> 
>   -benjamin
> 
> ------------------------------------------------------------------------
> 
> [2002-07-07 17:41:10] [EMAIL PROTECTED]
> 
> Not possible: if ($xx = some_function()) {} is perfectly
> legal.
> 
> 
> ------------------------------------------------------------------------
> 
> [2002-07-07 17:40:16] [EMAIL PROTECTED]
> 
> Thank you for taking the time to write to us, but this is not
> a bug. Please double-check the documentation available at
> http://www.php.net/manual/ and the instructions on how to report
> a bug at http://bugs.php.net/how-to-report.php
> 
> ------------------------------------------------------------------------
> 
> The remainder of the comments for this report are too long. To view
> the rest of the comments, please view the bug report online at
>     http://bugs.php.net/18214
> 
> -- 
> Edit this bug report at http://bugs.php.net/?id=18214&edit=1
> 

---------------------------------------------------------------------------
 Derick Rethans                               http://www.derickrethans.nl/ 
 JDI Media Solutions                               http://www.jdimedia.nl/
---------------------------------------------------------------------------



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

Reply via email to