[wp-trac] [WordPress Trac] #18049: PHP 5.4 compatibility warnings on creating default object from empty value

WordPress Trac wp-trac at lists.automattic.com
Sat Jul 9 13:30:21 UTC 2011


#18049: PHP 5.4 compatibility warnings on creating default object from empty value
------------------------------+-----------------------------
 Reporter:  eko-fr            |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Warnings/Notices  |    Version:  3.2
 Severity:  normal            |   Keywords:  has-patch
------------------------------+-----------------------------
 After installing PHP 5.4 alpha2-dev on my debian server, I had the
 following warnings:

 Warning: Creating default object from empty value in /var/www/blog/wp-
 includes/user.php on line 660

 Warning: Creating default object from empty value in /var/www/blog/wp-
 includes/class-wp-admin-bar.php on line 167

 I made a little diff patch to correct the problem (attached). It's also
 available here:  https://gist.github.com/1073475

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


More information about the wp-trac mailing list