Re: zippidity do duh!

From: Date: Wed, 09 Jul 2008 22:56:24 +0000
Subject: Re: zippidity do duh!
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-276544@lists.php.net to get a copy of this message
On Wed, Jul 9, 2008 at 6:53 PM, tedd <tedd.sperling@gmail.com> 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@gmail.com>tedd.sperling@gmail.com> >> 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.

« previous php.general (#276544) next »