On Thu, 22 Aug 2002 08:28, [EMAIL PROTECTED] wrote:
> On Wed, 21 Aug 2002, Tim Toohey wrote:
> > Any thoughts? Should I go ahead and commit this? I've never committed to
> > PHP before so go easy on me :-). I've been using essentially the same
> > code on a PHP-4.1.0 installation for a while now and I believe it works
> > OK.
>
> Looking at your patch I see:
>
> PHP_FUNCION()
> {
> #if GD_BUNDLED
> ...code...
> #else
>    zend_error ("does not exist");
> #endif
> }
>
> The preferred way would be not to have these functions available at all
> when GD is not bundled, like:
>
> #if GD_BUNDLED
> PHP_FUNCTION()
> {
> }
> #endif
>
> (but dont forget the function entry struct then).

Wouldn't it be preferable for the function to be there and report the reason 
it doesn't work, ie "this function only works when using the bundled GD 
library"?

>
> Secondly you should use php_error_docref, and not zend_error for
> errormessages and finally please stick to the coding standards as used
> in the rest of the PHP source (well, most of it :).

Apart from the if(){} style in the libgd section and error messages, am I 
missing anything? I tried to be consistent with the existing code in the 
module, so function names don't follow the coding standards by not having "_" 
between words - should I fix this for the new functions and be inconsistant 
with other Image*() functions?

>
> Derick

Tim


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to