#40 closed defect (fixed)
PHP_MAPSCRIPT - shapefileObj->free() does not close file
Reported by: | dmorissette | Owned by: | dmorissette |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | MapScript-PHP | Version: | 3.5 |
Severity: | normal | Keywords: | |
Cc: |
Description
With PHP 4.0.6, a call to shpfile->free() does not close the file immediately, and this has the side-effect that a script that creates a temporary shapefile cannot reuse it until the next script execution. This can be reproduced using test_writeshape.phtml, after adding error_log() messages in the PHP script, and a msDebug() call in mapscript_i.c: shapefileObj_destroy() Note: doing 2 calls in a row to shapefile->free() will actually close the file... so this is definitely related to the reference counts that were added internally in PHP4.
Note:
See TracTickets
for help on using tickets.