[Phpmyadmin-devel] Re: trigger_error

Michal Čihař michal at cihar.com
Thu Dec 1 01:03:02 CET 2005


On Thursday 01 December 2005 09:05, Sebastian Mendel wrote:
> But finding errors especially in classes/objects without this make it
> really hard sometimes!

Errors you added are mostly for user and not for developer. And user does not 
care where in class did error happen.

> If trigger_error() is a problem on a system than every error is a
> problem on this system.

Yes, see PMASA-2005-2 [1]

> If PMA would not give out any errors it just need to set his own
> error_handler.
> I do not fully understand what is the problem with trigger_error or what
>   makes the problems with trigger_error bigger than normal errors?

We should not issue any PHP errors nor warnings.

> The real problem is displaying errors to the client, not triggering an
> error - so this is a system setting not an application setting.
> The only way to handle this is that PMA uses his own error handler.

This might be a solution.

1. http://www.phpmyadmin.net/home_page/security.php?issue=PMASA-2005-2

	Michal Čihař | http://cihar.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20051201/31037a25/attachment.sig>

More information about the Developers mailing list