php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17730 PEAR_Error in HTML_Table
Submitted: 2002-06-12 12:08 UTC Modified: 2002-07-19 11:21 UTC
From: wima at tiscalinet dot ch Assigned:
Status: Closed Package: PEAR related
PHP Version: 4.2.1 OS: All
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
47 - 29 = ?
Subscribe to this entry?

 
 [2002-06-12 12:08 UTC] wima at tiscalinet dot ch
I think its wrong to create an error with return new PEAR_Error("Error"); It shoult be created with PEAR::raiseError().

Sorry about my english. Here is the article from de.comp.lang.php:
> Hallo
> Ich verstehe noch nicht ganz, wie das mit dem Pear-Error gemeint ist. Mit
> PEAR::setErrorHandling(PEAR_ERROR_CALLBACK,'handle_pear_error'); kann ich
> den Error-Handler definieren, das klappt auch. Aber z.B. bei der
> Table-Klasse wird bei einem Fehler ein PEAR_Error Objekt zur?ckgegeben
> (return new PEAR_Error("First parameter to HTML_Table::addRow must be an
> array");). Nun geht das irgendwie an meinem eigenen Handler vorbei, er wird
> gar nicht aufgerufen. Der Konstruktor von PEAR_Error weiss ja gar nicht,
> dass ich das Handling mit PEAR_ERROR_CALLBACK definiert habe.
> Danke f?r eure Hilfe.
> Marco

Hi,
ich w?rde dies als Bug bezeichnen, denn ein PEAR_Error sollte nicht
per "new" erstellt werden, sondern per PEAR::raiseError().
Wende dich entweder an pear-dev oder bugs.php.net ... (Rubrik PEAR-
related)

Christian Dickmann

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-19 11:21 UTC] mansion@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.

As far as I understand German, I hope this is now fixed in 
CVS. You might want to test it to confirm. Thanks for the 
feedback.

Bertrand Mansion
Mamasam
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 22:01:28 2024 UTC