From: Colin Viebrock Date: Thu, 1 Feb 2001 20:15:08 +0000 (+0000) Subject: trigger_error() should be ($msg,$level), no? X-Git-Tag: php-4.0.5RC1~396 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e365fc21e9ac625aed196f9cdae454ff03815d97;p=php trigger_error() should be ($msg,$level), no? --- diff --git a/pear/PEAR.php.in b/pear/PEAR.php.in index c58ab56439..354d244d57 100644 --- a/pear/PEAR.php.in +++ b/pear/PEAR.php.in @@ -185,12 +185,12 @@ class PEAR is_object($options[0]) && is_string($options[1]))) { $setcallback = $options; } else { - trigger_error(E_USER_WARNING, "invalid error callback"); + trigger_error("invalid error callback", E_USER_WARNING); } break; default: - trigger_error(E_USER_WARNING, "invalid error mode"); + trigger_error("invalid error mode", E_USER_WARNING); break; } }