Re: cvs: pear /HTML_Progress Progress.php
| From: | Klaus Guenther | Date: | Wed, 05 May 2004 18:25:25 +0000 |
| Subject: | Re: cvs: pear /HTML_Progress Progress.php | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-28860@lists.php.net to get a copy of this message | ||
Laurent Laville wrote:
farell Wed May 5 14:20:14 2004 EDTModified files: /pear/HTML_Progress Progress.php Log:fixed returns error add new option _pushCallback on HTML_Progress error stack initialize snip
@@ -810,7 +810,7 @@I was under the impression that returning things this way breaks php5. I thought you first must asign to a variable before returning... or is that only for objects... Could someone clear this up? Klaus$_ui = new $ui();if (!is_a($_ui, 'html_progress_ui')) { - $this->raiseError(HTML_PROGRESS_ERROR_INVALID_INPUT, 'error', + return $this->raiseError(HTML_PROGRESS_ERROR_INVALID_INPUT, 'error', array('var' => '$ui', 'was' => $ui, 'expected' => 'HTML_Progress_UI extends',