Re: PEAR_Error::userinfo is meant to be only a string?

From: Date: Mon, 19 Feb 2007 05:58:58 +0000
Subject: Re: PEAR_Error::userinfo is meant to be only a string?
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-45673@lists.php.net to get a copy of this message
Justin Patrin wrote: > I had previously thought that userinfo in PEAR_Error objects was > allowed to be any type of variable to allow for arbitrary debug > information to be thrown with the error object but bug #10121 has > pointed out to me that userinfo is used in PEAR_Error::toString() in > sprintf() directly, causing an error. Is the correct usage for > userinfo only a string? There is no "correct usage" but if you use PEAR_ERROR_PRINT mode it will attempt to print userinfo as if it were a string. Basically, the answer is "don't worry about it, do whatever you want, PEAR_Error is obsolete anyways" :) Greg

« previous php.pear.dev (#45673) next »