View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005694 | mantisbt | bugtracker | public | 2005-06-01 10:02 | 2005-07-23 02:12 |
Reporter | morganparry | Assigned To | grangeway | ||
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Product Version | 0.19.0 | ||||
Summary | 0005694: Long URLs cause crashes in string_insert_hrefs() | ||||
Description | We're running Apache v2.0.53, PHP v4.3.11 and MySQL v4.1.10. Attempting to view a bug where the description or bugnote contains a very long URL will crash Apache, seemingly where it's trying to do some regular expression stuff inside string_insert_hrefs(). The particular URL we saw this on was around 500 characters in length and is a POST style form URL, containing many (around 60) fields. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
This is related to 0005695. Replacing the relevant section of code with the latest CVS version either did not fix the problem or was identical anyway. |
|
Hi Morgan, I've just tried calling string_insert_href's from a command line php script with a 1000 character url: echo string_insert_hrefs($foo); PHP 5.0.5-dev (cli) (built: Apr 2 2005 10:19:49) |
|
Try the attached file. Oddly it only causes a crash when run with PHP under Apache. If I try running it via a command-line PHP, it appears to work ok... |
|
Out of interest, |
|
Windows 2000 SP4. |
|
ok, that test script works for me under: XP, Apache/2.0.53 (Win32) PHP/5.0.5-dev. |
|
I could try upgrading to PHP 5. However, was Mantis v0.19.x compatible with PHP 5 or were there fixes made since? |
|
Upgrading to PHP v5.0.4 fixed this. |
|
I think for now, this can be closed. It's only ever been reported once, and looks like it's a php issue which does not exist in latest php versoins. |
|