Re: [PHP4BETA] Adding a function to PHP4
| From: | Paul Dlug | Date: | Thu, 07 Oct 1999 13:34:35 +0000 |
| Subject: | Re: [PHP4BETA] Adding a function to PHP4 | ||
| References: | 1 2 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-5310@lists.php.net to get a copy of this message | ||
Some functions specific to my product, I had originally written a set of
functions that the designers would import using require or include, however
I think things would greatly benefit if I wrote them in C and the designers
were able to call them directly as they would any other function, lower
overhead, plus i"m curious ;)
Andrei Zmievski wrote:
> Paul Dlug wrote:
> > Could someone tell me how I could add a function to PHP4, I assume
> > I would create a source file for it in ext/standard but I don't
> > understand how I can manipulate PHP datastructures so that when called
> > by the PHP script my function would return a PHP array that could be
> > used, if someone could shed some light on this subject I would really
> > appreciate it.
>
> What kind of function is it?
>
> You might want to read apidoc.txt and apidoc-zend.txt.
>
> -Andrei
> * If it's never finished, you can't prove it doesn't work. *
>
> --
> PHP 4 Beta