Mantis - Quercus
Viewing Issue Advanced Details
2066 major always 10-12-07 15:24 10-15-07 12:53
mo  
mo  
normal  
closed 3.1.4  
fixed  
none    
none 3.1.4  
0002066: PHP fseek and ftell functions return incorrect values
fseek and ftell as described in the PHP manual:

http://us2.php.net/manual/en/function.fseek.php [^]
http://us2.php.net/manual/en/function.ftell.php [^]

Both of these methods return incorrect results in
the quercus implementation. For example, the
fseek method should return 0 on success or -1
on failure, but in quercus it returns the new
file offset.

The attached QA test checks for these problems.

 The following QA
regression test checks for these cases.
 161t.qa [^] (1,446 bytes) 10-12-07 15:24

Notes
(0002344)
mo   
10-15-07 12:51   
Patched FileModule.java so that fseek and ftell return the correct
values (rev 3238).
(0002345)
mo   
10-15-07 12:52   
Test case is php/161s.qa