|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32021 Crash caused by range('', 'z')
Submitted: 2005-02-18 14:06 UTC Modified: 2005-02-18 14:41 UTC
From: mueller_rainer at gmx dot de Assigned: derick
Status: Closed Package: Reproducible crash
PHP Version: 5.0.3 OS:
Private report: No CVE-ID:
 [2005-02-18 14:06 UTC] mueller_rainer at gmx dot de
If you use '' as the first parameter and a non-empty string as second parameter for range() PHP crashes/produces a segfault.

Tested on Windows with 5.0.3 and also on Linux with CVS Snapshot PHP 5.0.4-dev.

Reproduce code:
$foo = range('', 'z');

Expected result:
range() should return an empty array.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-18 14:41 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Mon Nov 30 20:01:36 2015 UTC