From:             mahesh dot vemula at in dot ibm dot com
Operating system: RHEL 4
PHP version:      5CVS-2007-04-17 (snap)
PHP Bug Type:     Compile Failure
Bug description:  range() function produces an error for values 2147483646 & 
2147483647 as low & 

Description:
------------
range() function throws a fatal error message when low = 2147483646, high
= 2147483647 & step is default (i.e 1). These values gives range of 1 step
and the values are valid integers. 

Environment:
Operating System: RHEL 4
Linux Kernel : Linux 2.6.9
PHP Version: PHP 5.2 (Built on Apr 17, 2007 from snaps.php.net)
PHP Configure Setup: ./configure

I will be attaching a patch for this as soon as possible.


Reproduce code:
---------------
<?php
var_dump( range(2147483646, 2147483647) );
?>


Expected result:
----------------
array(2) {
  [0]=>
  int(2147483646)
  [1]=>
  int(2147483647)
}


Actual result:
--------------
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to
allocate 34 bytes) in %s on line %d

-- 
Edit bug report at http://bugs.php.net/?id=41121&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41121&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41121&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41121&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41121&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41121&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41121&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41121&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41121&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41121&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41121&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41121&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41121&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41121&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41121&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41121&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41121&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41121&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41121&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41121&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41121&r=mysqlcfg

Reply via email to