For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > August 2004 > ErrorStack: missing methods staticGetErrors('Package'), staticPop()









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author ErrorStack: missing methods staticGetErrors('Package'), staticPop()
Torsten Roehr

2004-08-25, 9:00 am

Hi,

I've been experimenting with PEAR_ErrorStack (PHP 4.3.8) and am quite
impressed with it. I prefer using the static calls and are missing two
static methods:

1. It would be great to only get the errors of a specific stack:
$packageErrors = PEAR_ErrorStack::staticGetStackErrors('P
ackage');

2. A static method for popping off the last error of a specific stack:
$lastError = PEAR_ErrorStack::staticPop('Package');

Have I overlooked something and there is already a way to do this? If not,
should I file this as a feature request?

Thanks for having a look!


Best regards, Torsten Roehr
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com