Re: cvs: php4 /pear/DB common.php

From: Date: Thu, 01 Feb 2001 20:53:30 +0000
Subject: Re: cvs: php4 /pear/DB common.php
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-1237@lists.php.net to get a copy of this message
Is this what was decided for PEAR? Because usually these kind of functions are: func(error_level, error_message). I don't really mind but it's something to consider. It looks odd to me this way around :) Andi At 08:16 PM 2/1/2001 +0000, Colin Viebrock wrote:
cmv             Thu Feb  1 12:16:53 2001 EDT
Modified files:
    /php4/pear/DB       common.php
Log: fix here too Index: php4/pear/DB/common.php diff -u php4/pear/DB/common.php:1.35 php4/pear/DB/common.php:1.36
--- php4/pear/DB/common.php:1.35        Tue Jan  9 17:01:53 2001
+++ php4/pear/DB/common.php     Thu Feb  1 12:16:53 2001
@@ -242,13 +242,13 @@
                      is_object($options[0]) && is_string($options[1]))) {
                     $this->error_callback = $options;
                 } else {
-                    trigger_error(E_USER_WARNING, "invalid error callback");
+                    trigger_error("invalid error callback", E_USER_WARNING);
                 }
                 $this->error_level = PEAR_ERROR_RETURN;
                 break;
             default:
-                trigger_error(E_USER_WARNING, "invalid error mode");
+                trigger_error("invalid error mode", E_USER_WARNING);
                 break;
         }
     }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-cvs-unsubscribe@lists.php.net For additional commands, e-mail: php-cvs-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.pear (#1237) next »