| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0011491 | CDash | (No Category) | public | 2010-11-22 03:08 | 2010-11-22 10:25 | ||||
| Reporter | Michal Cihar | ||||||||
| Assigned To | Zach Mullen | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | resolved | Resolution | fixed | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | |||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0011491: Double fclose in asynchronous submission | ||||||||
| Description | On asynchronous submission, I get following warning: PHP Warning: fclose(): 67 is not a valid stream resource in /srv/https/cdash.cihar.com/cdash/processsubmissions.php on line 387 The problem is that do_submit which is called just before this line closes the file as well, so this line can be safely removed. | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0023480) David Cole (manager) 2010-11-22 09:46 |
I disagree. Whoever calls fopen should also call fclose. Do not remove the call in processsubmissions.php. Remove the one in do_submit, and make sure all callers of do_submit are doing fopen/fclose as appropriate. do_submit should not be calling fclose: what if it is handed a file stream that is not meant to be fclose-d...? |
|
(0023481) Zach Mullen (developer) 2010-11-22 10:25 |
Implemented the fix as Dave suggested. Rev. 2794 |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2010-11-22 03:08 | Michal Cihar | New Issue | |
| 2010-11-22 03:11 | Julien Jomier | Assigned To | => Zach Mullen |
| 2010-11-22 03:11 | Julien Jomier | Status | new => assigned |
| 2010-11-22 09:46 | David Cole | Note Added: 0023480 | |
| 2010-11-22 10:25 | Zach Mullen | Note Added: 0023481 | |
| 2010-11-22 10:25 | Zach Mullen | Status | assigned => resolved |
| 2010-11-22 10:25 | Zach Mullen | Resolution | open => fixed |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |