Stas Bekman wrote:

>Markus Wichitill wrote:
>  
>
>>Steve Hay wrote:
>>
>>    
>>
>>>Almost all OK on Win32 (Apache 2.0.54 and a recent bleadperl).  Main 
>>>tests are all successful, but ModPerl-Registry tests failed 404.t test 
>>>1 and redirect.t test 2.
>>>      
>>>
>>Same here (WinXP, 2.0.54, 5.8.6). modperl_slurp_filename doesn't raise a 
>>ENOENT exception when it should. The
>>
>>    if (!size) {
>>        sv_setpvn(sv, "", 0);
>>        return newRV_noinc(sv);
>>    }
>>
>>part looks fishy to me. size is 0 and therefore we never get to 
>>SLURP_SUCCESS("opening"), which should throw the exception.
>>    
>>
>
>Hmm, please see the comment:
>
>     /* XXX: could have checked whether r->finfo.filehand is valid and
>      * save the apr_file_open call, but apache gives us no API to
>      * check whether filehand is valid. we can't test whether it's
>      * NULL or not, as it may contain garbagea
>      */
>
>how can we test if the filehandle is valid then? may be we should skip 
>that bit altogether? Steve, does it work if you comment out the whole
>
>   if (!size) { ... }
>
>block?
>
No, it doesn't :(

I even did a complete rebuild in case something didn't get relinked 
properly after the change, but it still doesn't fix the two test failures.



------------------------------------------------
Radan Computational Ltd.

The information contained in this message and any files transmitted with it are 
confidential and intended for the addressee(s) only.  If you have received this 
message in error or there are any problems, please notify the sender 
immediately.  The unauthorized use, disclosure, copying or alteration of this 
message is strictly forbidden.  Note that any views or opinions presented in 
this email are solely those of the author and do not necessarily represent 
those of Radan Computational Ltd.  The recipient(s) of this message should 
check it and any attached files for viruses: Radan Computational will accept no 
liability for any damage caused by any virus transmitted by this email.

Reply via email to