@ -2521,8 +2522,6 @@ static int phar_wrapper_unlink(php_stream_wrapper *wrapper, char *url, int optio
php_url_free(resource);
returnFAILURE;
}
/* faulty increment of phar refcount - nothing persists beyond this function */
idata->phar->refcount--;
if(idata->internal_file->fp_refcount>1){
/* more than just our fp resource is open for this file */
php_stream_wrapper_log_error(wrapper,optionsTSRMLS_CC,"phar error: \"%s\" in phar \"%s\", has open file pointers, cannot unlink",internal_file,resource->host);