|  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 (profile)
Status: Closed Package: Reproducible crash
PHP Version: 5.0.3 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: mueller_rainer at gmx dot de
New email:
PHP Version: OS:


 [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-2020 The PHP Group
All rights reserved.
Last updated: Fri Aug 07 19:01:25 2020 UTC