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)    
Comments Add Comment Add patch

Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem : 24 + 21 = ?

 [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.