[wp-trac] [WordPress Trac] #16756: PHP5-port - Access Violations on wpdb::$prefix

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 5 12:01:09 UTC 2011


#16756: PHP5-port - Access Violations on wpdb::$prefix
--------------------------+-----------------------------
 Reporter:  hakre         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.1
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 The to be accessed privately member {{{wpdb::$prefix}}} is accessed
 publicly in multiple places.

 This ''would'' do fatal errors ''if'' the property would be ported to PHP
 5 ''with the documented behavior''.

 The errorneous usage in the places in question ''might'' reveal that
 implementation details were missed because the prefix can differ on multi-
 site setups which is not technically guaranteed when accessing the private
 member.

 The private member was only used "read-only" inside the class. Probably
 this is a documentation issue. It's set {{{set_prefix()}}} and
 {{{set_blog_id()}}} functions (only) and always to the result of
 {{{wpdb::get_blog_prefix()}}}.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16756>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list