Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.0RC8

Bug #13920 http_LOCK() expects string, requires int
Submitted: 2008-05-16 21:25 UTC
From: bklang Assigned: hholzgra
Status: Closed Package: HTTP_WebDAV_Server (version CVS)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    

 [2008-05-16 21:25 UTC] bklang (Ben Klang)
Description: ------------ As part of the normal function http_LOCK() calls the subclass's LOCK() method to lock an object. Per the PHPdoc LOCK() is expected to return an integer representing the HTTP status code. However http_LOCK() uses the code as a string array by checking for $http_stat{0} (line 1435) without first casting the int to a string. This causes the comparison to fail and no lock details are sent to the client. One workaround is to ignore the PHPdoc and send the numbers as strings, but this should either be reflected in the PHPdoc or, better, specifically handled in the code.


 [2008-06-15 10:44 UTC] hholzgra (Hartmut Holzgraefe)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on by the end of next Sunday (CET). If this was a problem with the website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.