[wp-trac] Re: [WordPress Trac] #8701: WordPress throws E_DEPRECATED
notices all over the place with newer PHP 5 installs
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 23 21:38:52 GMT 2009
#8701: WordPress throws E_DEPRECATED notices all over the place with newer PHP 5
installs
-------------------------------------+--------------------------------------
Reporter: Otto42 | Owner: anonymous
Type: defect (bug) | Status: reopened
Priority: high | Milestone: 2.7.1
Component: General | Version: 2.7
Severity: blocker | Resolution:
Keywords: has-patch tested commit |
-------------------------------------+--------------------------------------
Comment (by jacobsantos):
'''PHP 6:'''
{{{
#!php
<?php
// int(32767)
var_dump(E_ALL);
// int(2048)
var_dump(E_STRICT);
// int(31735)
var_dump( (E_ALL ^ E_NOTICE ^ E_USER_NOTICE) );
// int(30709)
var_dump((E_ALL ^ E_STRICT ^ E_WARNING ^ E_NOTICE));
// int(0)
var_dump( ( E_ALL & E_STRICT & E_WARNING & E_NOTICE ) );
// int(2048)
var_dump( ( (E_ALL ^ E_NOTICE ^ E_USER_NOTICE) & E_STRICT) );
// int(29687)
var_dump( ( (E_ALL ^ E_NOTICE ^ E_USER_NOTICE) ^ E_STRICT) );
// int(31735)
var_dump( ( (E_ALL ^ E_NOTICE ^ E_USER_NOTICE) | E_STRICT) );
// int(29687)
var_dump( ( (E_ALL ^ E_NOTICE ^ E_USER_NOTICE) & ~E_STRICT) );
// int(-1)
var_dump( ( (E_ALL ^ E_NOTICE ^ E_USER_NOTICE) | ~E_STRICT) );
// int(8192)
var_dump(E_DEPRECATED);
// int(23543)
var_dump( (E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE) );
// int(22517)
var_dump((E_ALL ^ E_DEPRECATED ^ E_STRICT ^ E_WARNING ^ E_NOTICE));
// int(32767)
var_dump( ( E_ALL ^ E_DEPRECATED & E_STRICT & E_WARNING & E_NOTICE ) );
// int(2048)
var_dump( ( (E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE) & E_STRICT)
);
// int(21495)
var_dump( ( (E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE) ^ E_STRICT)
);
// int(23543)
var_dump( ( (E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE) | E_STRICT)
);
// int(21495)
var_dump( ( (E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE) & ~E_STRICT)
);
// int(-1)
var_dump( ( (E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE) | ~E_STRICT)
);
}}}
'''PHP 5.3:'''
{{{
#!php
<?php
// int(30719)
var_dump(E_ALL);
// int(2048)
var_dump(E_STRICT);
// int(29687)
var_dump( (E_ALL ^ E_NOTICE ^ E_USER_NOTICE) );
// int(32757)
var_dump((E_ALL ^ E_STRICT ^ E_WARNING ^ E_NOTICE));
// int(0)
var_dump( ( E_ALL & E_STRICT & E_WARNING & E_NOTICE ) );
// int(0)
var_dump( ( (E_ALL ^ E_NOTICE ^ E_USER_NOTICE) & E_STRICT) );
// int(31735)
var_dump( ( (E_ALL ^ E_NOTICE ^ E_USER_NOTICE) ^ E_STRICT) );
// int(31735)
var_dump( ( (E_ALL ^ E_NOTICE ^ E_USER_NOTICE) | E_STRICT) );
// int(29687)
var_dump( ( (E_ALL ^ E_NOTICE ^ E_USER_NOTICE) & ~E_STRICT) );
// int(-2049)
var_dump( ( (E_ALL ^ E_NOTICE ^ E_USER_NOTICE) | ~E_STRICT) );
// int(8192)
var_dump(E_DEPRECATED);
// int(21495)
var_dump( (E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE) );
// int(24565)
var_dump((E_ALL ^ E_DEPRECATED ^ E_STRICT ^ E_WARNING ^ E_NOTICE));
// int(30719)
var_dump( ( E_ALL ^ E_DEPRECATED & E_STRICT & E_WARNING & E_NOTICE ) );
// int(0)
var_dump( ( (E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE) & E_STRICT)
);
// int(23543)
var_dump( ( (E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE) ^ E_STRICT)
);
// int(23543)
var_dump( ( (E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE) | E_STRICT)
);
// int(21495)
var_dump( ( (E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE) & ~E_STRICT)
);
// int(-2049)
var_dump( ( (E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_USER_NOTICE) | ~E_STRICT)
);
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/8701#comment:25>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list