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

Bug #14641 Shouldn't set() be static?
Submitted: 2008-09-12 15:28 UTC
From: mrsotoole Assigned: till
Status: Closed Package: HTTP_Session2 (version 0.7.2)
PHP Version: 5.2.5 OS: Linux
Roadmaps: 0.7.3, 0.8.0    
Subscription  
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:
MUST BE VALID
Solve the problem : 16 - 13 = ?

 
 [2008-09-12 15:28 UTC] mrsotoole (Janice O'Toole)
Description: ------------ Check the source code on: http://pear.php.net/package/HTTP_Session2/docs/latest/__filesource/fsource_HTTP_Session2__HTTP_Session2-0.7.2HTTPSession2.php.html#a540 Why wouldn't set() be declared static? It's not using any properties, and its sister method get() is declared static. I am getting this error when using set() in my code: Non-static method HTTP_Session2::set() should not be called statically Should be a quick fix, and will keep me from kludging my code. :) Thanks in advance.

Comments

 [2008-09-12 15:56 UTC] till (Till Klampaeckel)
Thanks, good catch. I'll look into it and fix it ASAP.
 [2008-09-16 13:06 UTC] till (Till Klampaeckel)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net 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. We'll do a new release shortly, I also made HTTP_Session2::start() "public static" because I imagine it should have "complained" there as well.