Re: Coding standard: API functions

From: Date: Sun, 05 Aug 2001 13:06:51 +0000
Subject: Re: Coding standard: API functions
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-62144@lists.php.net to get a copy of this message
At 07:57 AM 8/5/2001 +0200, jeroen@php.net wrote:
Hi, Some PHPAPI function demand a char* and int when they want a string, others a zval which is expected to be IS_STRING. Which one is preferred?
I think in any case the function should accept a char * and a length so that it'll be binary safe. It doesn't really matter too much if it's a zval or C types. Maybe C-types would be more general. Andi

« previous php.dev (#62144) next »