[Xapian-tickets] [Xapian] #372: Function naming conventions in php binding

Xapian nobody at xapian.org
Sat May 16 08:58:18 BST 2009


#372: Function naming conventions in php binding
-----------------------------+----------------------------------------------
 Reporter:  ijansch          |       Owner:  olly
     Type:  defect           |      Status:  new 
 Priority:  normal           |   Milestone:      
Component:  Xapian-bindings  |     Version:      
 Severity:  normal           |   Blockedby:      
 Platform:  Linux            |    Blocking:      
-----------------------------+----------------------------------------------
 The php extension adds functions to php such as 'new_WritableDatabase',
 'new_Document' and 'auto_open_stub'.

 While this is probably a 1:1 mapping to Xapian's C api, it doesn't adhere
 to php coding standards, and might lead to conflicts in the future.

 Suggestion: lowercase and prefix all functions, like this:

 new_WritableDatabase => xapian_create_writabledatabase
 new_Document => xapian_create_document
 auto_open_stub => xapian_auto_open_stub

 etc.

-- 
Ticket URL: <http://trac.xapian.org/ticket/372>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list