Du rechnest falsch. Für E_ALL ohne E_NOTICE musst du E_ALL AND NOT E_NOTICE rechnen und nicht E_ALL NOT E_NOTICE. Als Ergebnis sollte dann 2039 rauskommen.
Nanu?
// Report all errors except E_NOTICE
// This is the default value set in php.ini
error_reporting(E_ALL ^ E_NOTICE);
http://at.php.net/manual/en/function.error-reporting.php
Gruß
Martin