Re: zippidity do duh!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 9, 2008 at 4:56 PM, Eric Butera <eric.butera@xxxxxxxxx> wrote:

> On Wed, Jul 9, 2008 at 6:53 PM, tedd <tedd.sperling@xxxxxxxxx> wrote:
> > At 4:37 PM -0600 7/9/08, Nathan Nobbe wrote:
> >>
> >> On Wed, Jul 9, 2008 at 3:19 PM, tedd
> >> <<mailto:tedd.sperling@xxxxxxxxx>tedd.sperling@xxxxxxxxx> wrote:
> >>
> >> At 2:00 PM -0600 7/9/08, Nathan Nobbe wrote:
> >>
> >>
> >>
> >> if(class_exists('ZipArchive', false))
> >>  $zip = new ZipArchive();
> >> else
> >>  trigger_error('class ZipArchive does not exist!', E_USER_NOTICE);
> >>
> >> -nathan
> >>
> >>
> >> It works, (thanks) but no error is thrown if it's not there.
> >>
> >>
> >> are you saying the trigger_error() isnt getting hit?  could be an ini /
> >> .htaccess etc. issue.  give die('class ZipArchive does not exist!'); a
> try
> >> or check the error_reporting configuration value in your php
> environment.
> >>
> >> -nathan
> >
> > Yep, while the trigger_error() is being hit, nothing is being shown.
> >
> > The program goes right past it without failing and without anything
> > happening. In other words, it acts the same as a //comment.
> >
> > Cheers,
> >
> > tedd
> > --
> > -------
> > http://sperling.com  http://ancientstones.com  http://earthstones.com
>
>
> Well if display_errors is off, then that should be expected.


right, if you want to  alter the flow of the control there, you use an
exception as Eric suggested earlier.

-nathan

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux