[Bb-trac] [bbPress] #954: function bb__basename is completely broken under Windows

bbPress bb-trac at lists.bbpress.org
Mon Sep 1 18:06:50 GMT 2008


#954: function bb__basename is completely broken under Windows
----------------------+-----------------------------------------------------
 Reporter:  _ck_      |       Owner:                    
     Type:  defect    |      Status:  new               
 Priority:  high      |   Milestone:  1.0-beta & XML-RPC
Component:  Back-end  |     Version:  0.9.0.2           
 Severity:  major     |    Keywords:                    
----------------------+-----------------------------------------------------
 All windows filepaths are improperly processed by `function bb__basename`
 (called by `function bb_plugin_basename`) under 0.9 and 1.0

 This causes silent activation failures as plugins don't fire their
 activation hooks under windows, and possibly other side effects.

 This is regardless of the server, IIS or Apache, it's a Windows issue.

 This is because of mismatched forward vs trailing slashes used in #user
 and #core translations  (I wish you had never invented that pseudo path
 method - incredibly messy).

 Example:

 BBPATH = F:\xampp\htdocs\bbpress/

 BB_PLUGIN_DIR = F:\xampp\htdocs\bbpress/my-plugins/


 `__FILE__` = F:\xampp\htdocs\bbpress\my-plugins\bb-attachments\bb-
 attachments.php

 The paths can never be replaced with #user so the hooks never fire.

 This apparently has caused many people to give up on several plugins under
 windows because they never work right.

-- 
Ticket URL: <http://trac.bbpress.org/ticket/954>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list