rfc:inconsistent-behaviors

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
rfc:inconsistent-behaviors [2014/02/05 03:09] – created yohgakirfc:inconsistent-behaviors [2014/02/05 03:16] yohgaki
Line 6: Line 6:
   * Status: Draft (or Under Discussion or Accepted or Declined)   * Status: Draft (or Under Discussion or Accepted or Declined)
   * First Published at: http://wiki.php.net/rfc/comparison_inconsistency   * First Published at: http://wiki.php.net/rfc/comparison_inconsistency
-  * Renamed to: https://wiki.php.net/rfc/inconsiste-behaviors+  * Renamed to: https://wiki.php.net/rfc/inconsistent-behaviors
  
 This RFC is to discuss comparison and conversion inconsistencies in PHP.  This RFC is to discuss comparison and conversion inconsistencies in PHP. 
Line 216: Line 216:
 ===== Function/Method ===== ===== Function/Method =====
  
-==== is_numeric ====+==== assert ====
  
-https://bugs.php.net/bug.php?id=66399+assert() does not accept closure while it accepts functions.
  
 +<code>
 +php > function f() {return FALSE;}
 +php > assert(f());
 +
 +Warning: assert(): Assertion failed in php shell code on line 1
 +php > assert(function() {return FALSE;});
 +</code>
 +
 +https://wiki.php.net/rfc/expectations
  
 ==== base_convert ==== ==== base_convert ====
Line 225: Line 234:
 https://wiki.php.net/rfc/base-convert https://wiki.php.net/rfc/base-convert
  
-==== assert ==== 
  
-assert() does not accept closure while it accepts functions.+==== is_numeric ====
  
-https://wiki.php.net/rfc/expectations+https://bugs.php.net/bug.php?id=66399
  
  
-==== min() function ====+ 
 +==== min ====
  
 https://bugs.php.net/bug.php?id=53104 https://bugs.php.net/bug.php?id=53104
  
 This is not a bug. If one of operand is BOOL(or NULL), both operands are converted to BOOL and evaluated as BOOL. It may be good idea that document this behavior in min() manual. This is not a bug. If one of operand is BOOL(or NULL), both operands are converted to BOOL and evaluated as BOOL. It may be good idea that document this behavior in min() manual.
 +
 +**Status**
 +Documented.
 +
 +http://jp2.php.net/min
 +
  
 ==== Return value of wrong internal function/method parameters ==== ==== Return value of wrong internal function/method parameters ====
rfc/inconsistent-behaviors.txt · Last modified: 2021/03/27 14:31 by ilutov