[wp-trac] [WordPress Trac] #20953: Users with PHP 5.2.4 or lower will receive notice "wrong parameter count for debug_backtrace()"

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 14 19:04:45 UTC 2012


#20953: Users with PHP 5.2.4 or lower will receive notice "wrong parameter count
for debug_backtrace()"
------------------------------+--------------------
 Reporter:  swekitsune        |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  3.4.1
Component:  Warnings/Notices  |     Version:  3.4
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |
------------------------------+--------------------
Changes (by kurtpayne):

 * cc: kpayne@… (added)
 * keywords:   => has-patch


Comment:

 Replying to [comment:3 nacin]:
 > I think this actually generates an E_WARNING for PHP core functions,
 rather than E_NOTICE, so assigning to 3.4.1.

 Confirmed E_WARNING.  Submitted [[attachment:20953.patch]] for the
 following:
 {{{
 php < 5.2.5 = debug_backtrace
 php 5.2.5 to 5.3.5 = debug_backtrace(false)
 php 5.3.6+ = debug_backtrace(0)
 }}}
 false vs. 0 is semantics, but 0 emphasizes that it's a bitmask field.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20953#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list